You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -44,6 +46,18 @@ This issue is fixed in the release version. If you encounter this issue, as a wo
44
46
45
47
**Applies to:** SQL Server 2017 with Python
46
48
49
+
### Unable to install SQL Server machine learning features on a domain controller
50
+
51
+
If you try to install SQL Server 2016 R Services or SQL Server 2017 Machine Learning Services on a domain controller, setup fails, with these errors:
52
+
53
+
>*"An error occurred during the setup process of the feature."*
54
+
>
55
+
>*"Cannot find group with identity..."*
56
+
>
57
+
>*"Component error code: 0x80131509"*
58
+
59
+
The failure occurs because, on a domain controller, the service cannot create the 20 local accounts required to run machine learning. In general, we do not recommend installing SQL Server on a domain controller. For more information, see [Support bulletin 2032911](https://support.microsoft.com/en-us/help/2032911/you-may-encounter-problems-when-installing-sql-server-on-a-domain-cont).
60
+
47
61
### Install the latest service release to ensure compatibility with Microsoft R Client
48
62
49
63
If you install the latest version of Microsoft R Client and use it to run R on SQL Server in a remote compute context, you might get an error like the following:
@@ -24,7 +24,8 @@ This article describes how to install new R packages to an instance of SQL Serve
24
24
> [!IMPORTANT]
25
25
> The process for adding new packages differs depending on the version of SQL Server you are running, and the tools you are using.
26
26
27
-
**Applies to:** SQL Server 2016 R Services, SQL Server 2017 Machine Learning Services
27
+
**Applies to:**[!INCLUDE[sssql15-md](../../includes/sssql15-md.md)][!INCLUDE[rsql-productname-md](../../includes/rsql-productname-md.md)] and [!INCLUDE[sssql17-md](../../includes/sssql17-md.md)]
@@ -34,7 +35,9 @@ This article describes how to install new R packages to an instance of SQL Serve
34
35
35
36
Be sure to check for package dependencies and get any related packages that might be needed during installation. To prepare a collection of packages and their dependencies, we recommend the [miniCRAN package](#bkmk_packageDependencies).
36
37
37
-
3. Package installation methods differ depending on whether the server has internet access, and on your version of SQL Server. The recommended processes are as follows:
38
+
If you get download or installation errors, try a different mirror site.
39
+
40
+
3. How you install the package depends on whether the server has internet access, and on your version of SQL Server. The recommended processes are as follows:
38
41
39
42
**Package installation for SQL Server 2016**
40
43
@@ -56,13 +59,13 @@ This article describes how to install new R packages to an instance of SQL Serve
56
59
57
60
## Install new packages
58
61
59
-
This section provide detailed procedures for the following key package installation scenarios. The best method for you to use depends on these factores:
62
+
This section provide detailed procedures for key package installation scenarios. Choose the best method, depending on:
60
63
61
64
- The version of SQL Server you are using
62
65
63
-
- Whether you are the sole owner of the instance, or are trying to mamaneg packages for multiple people using database roles.
66
+
- Whether you are the sole owner of the instance, or are trying to manage packages for multiple people using database roles.
64
67
65
-
- Whether you are installing one packages, or multiple packages with dependencies
68
+
- Whether you are installing one package, or multiple packages with dependencies
66
69
67
70
**Use SQL Server package management**
68
71
@@ -80,7 +83,7 @@ If your instance supports package management features, you can use either T-SQL
80
83
81
84
[Install multiple packages from a miniCRAN repository](#bkmk_minicran)
82
85
83
-
**Use conventional R rools**
86
+
**Use conventional R tools**
84
87
85
88
If you are using an earlier version of SQL Server R services, follow these instructions to install packages using conventional R tools. Optionally, use miniCRAN to prepare a collection of packages for installation.
86
89
@@ -100,15 +103,15 @@ If you are using an earlier version of SQL Server R services, follow these instr
100
103
101
104
2. Connect to the server using an account that has permissions to install new packages, using one of the supported database roles described in this topic: [R package management for SQL Server](r-package-management-for-sql-server-r-services.md)
102
105
103
-
3. Copy the zipped file containing the R package you want to install to a folder on the server computer, such as your **Users** or **Documents** folder. You cannot add a package from a networked drive or from a folder on the client computer. If you have used miniCRAN to create a package repository, copy the package repository in its entirety to any local folder on the server: i.e., not on a networked drive.
106
+
3. Copy the zipped file containing the R package you want to install to a folder on the server computer, such as your **Users** or **Documents** folder. You cannot add a package from a networked drive or from a folder on the client computer. If you have used miniCRAN to create a package repository, copy the package repository in its entirety to any local folder on the server: that is, not on a networked drive.
104
107
105
108
If you don't have access to any folders on the server, you can pass the package contents in binary format. See [CREATE EXTERNAL LIBRARY](https://docs.microsoft.com/sql/t-sql/statements/create-external-library-transact-sql) for an example.
106
109
107
110
4. From the database where you want to use the package, run the [CREATE EXTERNAL
For this example, we'll assume that your account has permission to upload new packages to the server and install them to shared scope in the database.
114
+
For this example, we assume that your account has permission to upload new packages to the server and install them to **shared** scope in the database.
112
115
113
116
The following statement adds the release version of the [zoo](https://cran.r-project.org/web/packages/zoo/index.html) package into the current database context, from a local fileshare.
114
117
@@ -132,7 +135,7 @@ If you are using an earlier version of SQL Server R services, follow these instr
132
135
library(zoo)'
133
136
```
134
137
135
-
If successful, the **Messages** window should report a message such as"package 'zoo' successfully unpacked and MD5 sums checked". If a required package is already installed, the installation process will attachandload the required package.
138
+
If successful, the **Messages** window should report a message such as"package 'zoo' successfully unpacked and MD5 sums checked." If a required package is already installed, the installation process then attachesandloads the required package.
136
139
137
140
> [!NOTE]
138
141
> If a required package is not available, an error is returned: "there is no package called \<required_package\>".
@@ -145,7 +148,7 @@ If you have already enabled package management on the instance, you can install
145
148
146
149
1. Before you start, ensure that these conditions are met:
147
150
148
-
+The R client has the latest version of RevoScale. Pre-release versions did not include some package management functions.
151
+
+Use the latest version of Microsoft R Client, which includes updates to RevoScale.
149
152
+ Package management has been enabled on the instance andon the database.
150
153
+ You have permission to one of the database management roles.
151
154
@@ -215,7 +218,7 @@ You can use R tools to install new packages on both SQL Server 2016 and SQL Serv
215
218
216
219
When asked for a mirror site, select any site that is convenient for your location.
217
220
218
-
If the target package depends on additional packages, the R installer will automatically download the dependencies andinstall them for you.
221
+
If the target package depends on additional packages, the R installer automatically downloads the dependencies andinstalls them for you.
219
222
220
223
**Install package manually oron a computer with no Internet access**
221
224
@@ -231,7 +234,7 @@ You can use R tools to install new packages on both SQL Server 2016 and SQL Serv
231
234
232
235
### <a name="bkmk_minicran"></a> Install multiple packages from a miniCRAN repository
233
236
234
-
If you are installing packages from a miniCRAN repository, the overall process is very similar to installing a package from a single zipped file. However, rather than uploading an individual package in zipped format, the miniCRAN repository contains the target package as well as any related required packages.
237
+
The overall process of installing packages from a miniCRAN repository is similar to installing a package from a single zipped file. However, rather than uploading an individual package in zipped format, the miniCRAN repository contains the target package as well as any related required packages.
235
238
236
239
1. Prepare the miniCRAN repository and then copy the zipped file to a local folder on the server.
237
240
@@ -255,19 +258,19 @@ If you are installing packages from a miniCRAN repository, the overall process i
255
258
library(randomForest)'
256
259
```
257
260
258
-
If successful, the **Messages** window should report a message such as"package 'randomForest' successfully unpacked and MD5 sums checked"andalso "Finished chained execution".
261
+
If successful, the **Messages** window should report a message such as"package 'randomForest' successfully unpacked and MD5 sums checked"and"Finished chained execution".
259
262
260
263
## Package installation tips
261
264
262
265
This section provides assorted tips and sample code related to R package installation on SQL Server.
263
266
264
267
### <a name="packageVersion"></a> Get the correct package version and format
265
268
266
-
There are multiple sources for R packages, the best known among them being CRAN and Bioconductor. The official site for the R language (<https://www.r-project.org/>) lists many of these resources. Many packages are also published to GitHub, where you can obtain the source code. However, you may also have been given R packages that were developed by someone in your company.
269
+
There are multiple sources for R packages, the best known among them being CRAN and Bioconductor. The official site for the R language (<https://www.r-project.org/>) lists many of these resources. Many packages are published to GitHub, where you can obtain the source code. However, you may have been given R packages that were developed by someone in your company.
267
270
268
271
Regardless of the source, you must ensure that the package you want to install has a binary format for the Windows platform. Otherwise the downloaded package cannot run in the SQL Server environment.
269
272
270
-
You should also determine whether the package is compatible with the version of R that is running in SQL Server.
273
+
Before downloading, you should also check whether the package is compatible with the version of R that is running in SQL Server.
271
274
272
275
### <a name="bkmk_zipPreparation"></a> Download package as zipped file
273
276
@@ -285,7 +288,7 @@ For example, the following procedure describes now to get the correct version of
285
288
286
289
This process creates a local copy of the package. You can then install the package, or copy the zipped package to a server that does not have internet access.
287
290
288
-
For more information about the contents of the zip file format, and how to create an R package, we recommend this tutorial, which you can download in PDF format from the R project site: [Freidrich Leisch: Creating R Packages](http://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf).
291
+
For more information about the contents of the zip file format, and how to create an R package, we recommend this tutorial, which you can download in PDF format from the R project site: [Creating R Packages](http://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf).
289
292
290
293
### <a name="bkmk_packageDependencies"></a> Get package dependencies
For example, to enable use of the latest version of the pretrained models for R, in a default instance of SQL Server 2017, you would run this statement:
For example, to enable use of the latest version of the pretrained models for Python, in a default instance of SQL Server 2017, you would run this statement:
Copy file name to clipboardExpand all lines: docs/advanced-analytics/r/security-considerations-for-the-r-runtime-in-sql-server.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,11 @@ To minimize dependency on ODBC calls to external data sources, you might also pe
54
54
55
55
## No support for encryption at rest
56
56
57
-
Transparent Data Encryption is not supported for data sent to or received from the external script runtime. As a consequence, encryption at rest **is not** applied to any data that you use in R or Python scripts, any data saved to disk, or any persisted intermediate results.
57
+
[Transparent Data Encryption (TDE)](https://docs.microsoft.com/sql/relational-databases/security/encryption/transparent-data-encryption) is not supported for data sent to or received from the external script runtime. The reason is that R (or Python) runs outside the SQL Server process and thus data used by the external runtime is not protected by the encryption features of the database engine. This behavior is no different than any other client running on the SQL Server computer that reads data from the database and makes a copy.
58
+
59
+
As a consequence, TDE **is not** applied to any data that you use in R or Python scripts, or to any data saved to disk, or to any persisted intermediate results. However, other types of encryption, such as Windows BitLocker encryption or third-party encryption applied at hte file or folder level, still apply.
60
+
61
+
In case of [Always Encrypted](https://docs.microsoft.com/sql/relational-databases/security/encryption/overview-of-key-management-for-always-encrypted), external runtimes do not have access to the encryption keys; therefore, data cannot be sent to the scripts.
Copy file name to clipboardExpand all lines: docs/advanced-analytics/r/set-up-sql-server-r-services-in-database.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Set up SQL Server Machine Learning Services (In-Database) | Microsoft Docs"
3
3
ms.custom: ""
4
-
ms.date: "10/31/2017"
4
+
ms.date: "11/15/2017"
5
5
ms.prod:
6
6
- "sql-server-2016"
7
7
- "sql-server-2017"
@@ -14,6 +14,8 @@ ms.topic: "article"
14
14
keywords:
15
15
- "installing SQL Server R Services"
16
16
- "installing SQL Server Machine Learning Services"
17
+
- "Set up R Services"
18
+
- "install SQL machine learning"
17
19
ms.assetid: 4d773c74-c779-4fc2-b1b6-ec4b4990950d
18
20
caps.latest.revision: 36
19
21
author: "jeannt"
@@ -33,7 +35,7 @@ This topic describes how to install and configure the following machine learning
33
35
34
36
[Set up machine learning in SQL Server 2017](#bkmk_2017top)
35
37
36
-
+Machine learning server with **no** SQL Server
38
+
+A machine learning server with **no** SQL Server
37
39
38
40
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] setup also includes the option to install a "standalone" version of the machine learning components that does not require the database engine, and does not run in SQL Server. We generally recommend that you install this option on a different computer than the computer that hosts SQL Server.
39
41
@@ -62,7 +64,9 @@ This article describes the process of setup that uses the [!INCLUDE[ssNoVersion]
62
64
63
65
+ If you used any earlier versions of the Revolution Analytics development environment or the RevoScaleR packages, or if you installed any pre-release versions of SQL Server 2016, you must uninstall them. Side-by-side installation is not supported. For help removing previous versions, see [Upgrade and Installation FAQ for SQL Server Machine Learning Services](../r/upgrade-and-installation-faq-sql-server-r-services.md).
64
66
65
-
+ Currently, you cannot install the machine learning features on a failover cluster. The reason is that the security mechanism that's used for isolating external script processes is not compatible with a Windows Server failover cluster environment. As a workaround, you can do either of the following:
67
+
+ You cannot install SQL Server 2016 R Services or SQL Server 2017 Machine Learning Services on a domain controller. The R Services or Machine Learning Services portion of setup will fail.
68
+
69
+
+ You cannot install the machine learning features on a failover cluster. The security mechanism that's used for isolating external script processes is not compatible with a Windows Server failover cluster environment. As a workaround, you can do either of the following:
66
70
* Use replication to copy necessary tables to a SQL Server instance with machine learning enabled.
67
71
* Install machine learning on a standalone computer that uses AlwaysOn and is part of an availability group.
0 commit comments