Skip to content

Commit ed9335f

Browse files
authored
Merge pull request #4396 from MicrosoftDocs/master
12/21 PM Publish
2 parents b603dca + 9c5f02a commit ed9335f

13 files changed

Lines changed: 268 additions & 177 deletions

docs/advanced-analytics/TOC.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@
122122

123123
### [Avoid errors with user package libraries for R](r/packages-installed-in-user-libraries.md)
124124

125-
### [Add SQLRUserGroup as a database user](r/add-sqlrusergroup-to-database.md)
126-
127125
## Data exploration and modeling
128126

129127
### [R libraries and data types](r/r-libraries-and-data-types.md)
@@ -155,7 +153,10 @@
155153
### [Security considerations for the R runtime in SQL Server](r/security-considerations-for-the-r-runtime-in-sql-server.md)
156154
### [Modify the user account pool for SQL Server Machine Learning Services](r/modify-the-user-account-pool-for-sql-server-r-services.md)
157155

156+
### [Add SQLRUserGroup as a database user](r/add-sqlrusergroup-to-database.md)
157+
158158
### [Deploy and consume models using web services](operationalization-with-mrsdeploy.md)
159+
159160
### [Managing and monitoring machine learning solutions](r/managing-and-monitoring-r-solutions.md)
160161
### [Resource governance for Machine Learning Services](r/resource-governance-for-r-services.md)
161162
### [Create a resource pool for machine learning](r/how-to-create-a-resource-pool-for-r.md)

docs/advanced-analytics/getting-started-with-machine-learning-services.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Getting started with machine learning in SQL Server| Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "11/09/2017"
4+
ms.date: "12/20/2017"
55
ms.prod: "machine-learning-services"
66
ms.prod_service: "machine-learning-services"
77
ms.service: ""
@@ -79,7 +79,7 @@ You can also install [!INCLUDE[rsql-platform-md](../includes/rsql-platform-md.md
7979

8080
+ [Machine learning tutorials](../advanced-analytics/tutorials/machine-learning-services-tutorials.md)
8181

82-
Start here to find a list of all resources for learning about machine learning solutions using [!INCLUDE[sscurrent-md](../includes/sscurrent-md.md)] or [!INCLUDE[sssql15-md](../includes/sssql15-md.md)].
82+
Start here to find a list of all resources for learning about machine learning solutions using SQL Server 2016 and SQL Server 2017.
8383

8484
### R tutorials
8585

@@ -91,7 +91,7 @@ You can also install [!INCLUDE[rsql-platform-md](../includes/rsql-platform-md.md
9191

9292
+ [Explore R and ScaleR in 25 short functions](https://docs.microsoft.com/r-server/r/tutorial-r-to-revoscaler)
9393

94-
New to R? Wondering how Microsoft R (or RevoScaleR) compares to standard R? See these quick-starts for R Server.
94+
New to R? Wondering how Microsoft R (or RevoScaleR) compares to standard R? See these quick-starts for R Server and Machine Learning Server.
9595

9696
### Python tutorials
9797

docs/advanced-analytics/python/setup-python-machine-learning-services.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Setup and configuration for Python Machine Learning Services | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "07/31/2017"
4+
ms.date: "12/20/2017"
55
ms.reviewer:
66
ms.suite: sql
77
ms.prod: machine-learning-services
@@ -18,7 +18,7 @@ ms.workload: "On Demand"
1818
---
1919
# Set up Python Machine Learning Services (In-Database)
2020

21-
You install the components required for Python by running the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] setup wizard, and following the interactive prompts as described in this topic.
21+
This article describes how to install the components required for Python by running the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] setup wizard, and following the interactive prompts.
2222

2323
## Machine learning options in SQL Server setup
2424

@@ -38,11 +38,12 @@ After the installation is complete, reconfigure the instance to allow execution
3838
As a workaround, you can use replication to copy necessary tables to a standalone SQL Server instance that uses Python services. Alternatively, you can install machine learning with Python services on a standalone computer that uses the AlwaysOn setting, and is part of an availability group.
3939

4040
+ Side-by-side installation with other versions of Python is possible, because the SQL Server instance uses its own copy of the Anaconda distribution. However, running code that uses Python on the SQL Server computer outside SQL Server can lead to various problems:
41-
+ You use a different library and different executable, and get different results, than you do when you are running in SQL Server.
42-
+ Python scripts running in external libraries cannot be managed by SQL Server, leading to resource contention.
41+
42+
- You use a different library and different executable, and get different results, than you do when you are running in SQL Server.
43+
- Python scripts running in external libraries cannot be managed by SQL Server, leading to resource contention.
4344

4445
> [!IMPORTANT]
45-
> After setup is complete, be sure to complete the additional post-configuration steps described in this topic. These include enabling SQL Server to use external scripts, and adding accounts required for SQL Server to run Python jobs on your behalf.
46+
> After setup is complete, be sure to complete the additional post-configuration steps described in this article. These steps include enabling SQL Server to use external scripts, and adding accounts required for SQL Server to run Python jobs on your behalf.
4647
4748
### Unattended installation
4849

@@ -102,7 +103,12 @@ To perform an unattended installation, use the command-line options for SQL Serv
102103

103104
## <a name="bkmk_enableFeature"></a> Step 2: Enable Python script execution
104105

105-
1. Open [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)]. If it is not already installed, you can run the SQL Server setup wizard again to open a download link and install it.
106+
1. Open [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)].
107+
108+
> [!TIP]
109+
> You can download and install the appropriate version from this page: [Download SQL Server Management Studio (SSMS)](https://docs.microsoft.com/sql/ssms/download-sql-server-management-studio-ssms).
110+
>
111+
> You can also try out the preview release of [SQL Operations Studio](https://docs.microsoft.com/sql/sql-operations-studio/what-is), which supports administrative tasks and queries against SQL Server.
106112
107113
2. Connect to the instance where you installed Machine Learning Services, and run the following command:
108114

@@ -119,7 +125,7 @@ To perform an unattended installation, use the command-line options for SQL Serv
119125
RECONFIGURE WITH OVERRIDE
120126
```
121127

122-
If you have already enabled the feature for the R language, you don't need to run reconfigure a second time for Python. The underlying extensibility platform supports both languages.
128+
If you have already enabled the feature for the R language, don't run reconfigure a second time for Python. The underlying extensibility platform supports both languages.
123129
124130
4. Restart the SQL Server service for the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] instance. Restarting the SQL Server service also automatically restarts the related [!INCLUDE[rsql_launchpad](../../includes/rsql-launchpad-md.md)] service.
125131

docs/advanced-analytics/r/add-sqlrusergroup-to-database.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Add SQLRUserGroup as a database user | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "11/13/2017"
4+
ms.date: "12/21/2017"
55
ms.reviewer:
66
ms.suite: sql
77
ms.prod: machine-learning-services
@@ -23,11 +23,17 @@ ms.workload: "Active"
2323
---
2424
# Add SQLRUserGroup as a database user
2525

26-
During setup of [!INCLUDE[rsql-productnamenew-md](../../includes/rsql-productnamenew-md.md)] or [!INCLUDE[rsql-productname-md](../../includes/rsql-productname-md.md)], new Windows user accounts are created for running tasks under the security token of the [!INCLUDE[rsql_launchpad_md](../../includes/rsql-launchpad-md.md)] service. When a user sends a machine learning script from an external client, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] activates an available worker account, maps it to the identity of the calling user, and runs the script on behalf of the user. This new service of the database engine supports the secure execution of external scripts, called *implied authentication*.
26+
This article explains how to give the group of worker accounts used by machine learning services in SQL Server the permissions required to connect to the database and run R or Python jobs on behalf of the user.
2727

28-
You can view these accounts in the Windows user group **SQLRUserGroup**. By default, 20 worker accounts are created, which is usually more than enough for running R jobs.
28+
## What is SQLRUserGroup?
2929

30-
However, if you need to run R scripts from a remote data science client and are using Windows authentication, you must grant these worker accounts permission to sign in to the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] instance on your behalf.
30+
During setup of [!INCLUDE[rsql-productnamenew-md](../../includes/rsql-productnamenew-md.md)] or [!INCLUDE[rsql-productname-md](../../includes/rsql-productname-md.md)], new Windows user accounts are created to support execution of R or Python script tasks under the security token of the [!INCLUDE[rsql_launchpad_md](../../includes/rsql-launchpad-md.md)] service.
31+
32+
You can view these accounts in the Windows user group **SQLRUserGroup**. By default, 20 worker accounts are created, which is usually more than enough for running machine learning jobs.
33+
34+
When a user sends a machine learning script from an external client, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] activates an available worker account, maps it to the identity of the calling user, and runs the script on behalf of the user. This new service of the database engine supports the secure execution of external scripts, called *implied authentication*.
35+
36+
However, if you need to run R or Python scripts from a remote data science client, and you are using Windows authentication, you must give these worker accounts permission to sign in to the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] instance on your behalf.
3137

3238
## Add SQLRUserGroup as a SQL Server login
3339

@@ -51,8 +57,8 @@ However, if you need to run R scripts from a remote data science client and are
5157

5258
5. Scroll through the list of group accounts on the server until you find one beginning with `SQLRUserGroup`.
5359

54-
+ The name of the group that's associated with the Launchpad service for the _default instance_ is always just **SQLRUserGroup**. Select this account only for the default instance.
55-
+ If you are using a _named instance_, the instance name is appended to the default name `SQLRUserGroup`. Hence, if your instance is named "MLTEST", the default user group name for this instance would be **SQLRUserGroupMLTest**.
60+
+ The name of the group that's associated with the Launchpad service for the _default instance_ is always **SQLRUserGroup**, regardless of whether you installed R or Python or both. Select this account for the default instance only.
61+
+ If you are using a _named instance_, the instance name is appended to the name of the default worker group name, `SQLRUserGroup`. Hence, if your instance is named "MLTEST", the default user group name for this instance would be **SQLRUserGroupMLTest**.
5662

5763
![Example of groups on server](media/implied-auth-login5.png "Example of groups on server")
5864

@@ -71,4 +77,4 @@ If you intend to make heavy use of machine learning, you can increase the number
7177

7278
+ [Modify the user account pool for machine learning](modify-the-user-account-pool-for-sql-server-r-services.md)
7379

74-
By default, 20 accounts are created, which supports 20 concurrent sessions. Parallelized tasks do not consume additional accounts. For example, if a user runs a scoring task that uses parallel processing, the same worker account is reused for all threads.
80+
By default, 20 accounts are created, which supports 20 concurrent sessions. Parallelized tasks do not consume additional accounts. For example, if a user runs a scoring task that uses parallel processing, the same worker account is reused for all threads.

0 commit comments

Comments
 (0)