PolyBase Service Account Permissions and Common Errors Observed When They Are Missing

Published 02-03-2021 06:55 AM 1,131 Views
Microsoft

We have seen a number of PolyBase cases in SQL Server Support related to logins or permissions created and set during installation that are missing. It is quite common for organizations to want to lock down their environment from a security perspective in order to comply with principal of least privilege. Unfortunately, this has resulted in the removal of logins and permissions that are required for PolyBase to function properly.

 

I want to give a brief overview of the logins and permissions that are required and then highlight a couple of the common issues we've seen when these logins and permissions are removed.

 

Permissions Assigned During Installation

When you install SQL Server 2019 with PolyBase feature you must assign the service account for the two PolyBase services (PolyBase Engine, PolyBase Data Movement). The default account is NT AUTHORITY\NETWORK SERVICE. If you wish to use PolyBase scale-out groups, you must use a domain account. For the purposes of this post, I did a fresh installation of SQL Server 2019 with PolyBase feature and used the account 'SQLPB\PolyBaseSvcAcct' for the services.

 

It's important to point out that there are three databases that get created when installing the PolyBase feature:

 

  • DWConfiguration
  • DWDiagnostics
  • DWQueue

 

The specific ways these databases function in PolyBase are outside the scope of this post, but in order for PolyBase to function properly, the service account must have permissions within these databases. The needed permissions are achieved by database role membership assigned to the service account.

 

After installation, you'll see that the domain login is added to SQL Server, but does not have sysadmin role (or any server role, aside from public).

 

You'll also see that the account has the following database roles in the previously mentioned databases:

 

{DWConfiguration}

  • db_datareader
  • db_datawriter
  • public

 

{DWDiagnostics}

  • db_datareader
  • db_datawriter
  • db_ddladmin
  • public

 

{DWQueue}

  • db_datareader
  • db_datawriter
  • public

 

{tempdb}

  • public

 

After troubleshooting some of the issues I'll mention later, I learned that there are two certificates (_##PDW_SmDetachSigningCertificate## and _##PDW_PolyBaseAuthorizeSigningCertificate##) created in master database and two logins (l_certSignSmDetach and l_certSignPolyBaseAuthorize) that are also created during installation of the PolyBase feature. These security objects help maintain the principals of least privilege for the service accounts while facilitating some of the PolyBase functionality that requires sysadmin role on the SQL Server instance. During installation, the certificates are created and then the logins are created from the certificates. In short, these two logins must exist and must be members of the sysadmin server role. If they do not exist or are missing sysadmin role membership, you may see issues I outline below.

 

Common Issues

Data Movement Service won't start - Shared memory segment has not been created or attached

 

Symptom

SQL Server PolyBase Data Movement service fails to start. If you're starting it from SQL Server Configuration Manager, you'll see that it enters the Running state, but after a short time, it is no longer running. If you check the Dms_errors.log file in the PolyBase logs directory (default instance: C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Log\Polybase), you'll see:

 

8/14/2020 1:07:52 PM [Thread:2724] [CommandManager:ErrorEvent] (Error, High):

Microsoft.SqlServer.DataWarehouse.DataMovement.SharedMemory.NativeSharedMemoryException: Shared memory segment has not been created or attached.

   at Microsoft.SqlServer.DataWarehouse.DataMovement.SharedMemory.NativeSharedMemory.ThrowIfInvalid()

   at Microsoft.SqlServer.DataWarehouse.DataMovement.SharedMemory.NativeSharedMemory.SetDistributionCount(Int32 distrCount)

   at Microsoft.SqlServer.DataWarehouse.DataMovement.Nodes.DMSChannelMap.UpdateSharedMemoryDistributionCount()

   at Microsoft.SqlServer.DataWarehouse.DataMovement.Nodes.DMSChannelMap.AddDataChannelReceiver(String nodeName, DataChannelReceiver dataChannelReceiver)

   at Microsoft.SqlServer.DataWarehouse.DataMovement.CommandManager.StartDataChannel(Int32 senderQueueSize, Int32 tcpBufferSize, HashSet`1 nodesToConnect)

   at Microsoft.SqlServer.DataWarehouse.DataMovement.CommandManager.ProcessStartDataChannel(IMessage message)

   at Microsoft.SqlServer.DataWarehouse.DataMovement.CommandManager.ProcessBaseMessage(IBaseMessage message)

   at Microsoft.SqlServer.DataWarehouse.DataMovement.CommandManager.Run()

   at Microsoft.SqlServer.DataWarehouse.Common.ThreadManager.ThreadFactory.ExecuteCallback(Delegate callback, Object state, Boolean throwException, String name)

 

If you capture a profiler trace, you'll find the following Profiler events:

 

SP:Starting - exec DWConfiguration.dbo.sp_pdw_sm_detach N'Global\{GUID}'

SP:StmtStarting - EXEC [sp_sm_detach] @FileName

User Error Message - Only sysadmin can execute this stored procedure 'sp_sm_detach'.

 

Cause

This occurs because either the l_certSignSmDetach login doesn't exist or it isn't a member of the sysadmin server role.

 

Resolution

If the login is missing, recreate it from certificate.

 

CREATE LOGIN [l_certSignSmDetach] FROM CERTIFICATE [_##PDW_SmDetachSigningCertificate##]

GO

 

If login exists, but doesn't have sysadmin role, add it

 

ALTER SERVER ROLE [sysadmin] ADD MEMBER [l_certSignSmDetach]

GO

 

Windows authentication failed. Possible network configuration issue. Please contact your system administrator.

 

Symptom

Executing a query to an external table gives the following error:

 

Msg 110064, Level 16, State 1, Line 36

110064;Windows authentication failed. Possible network configuration issue. Please contact your system administrator.

 

If you execute a query to any of the PolyBase DMVs, you'll see the following (slightly different) error:

 

Msg 44528, Level 16, State 1, Line 1

110064;Windows authentication failed. Possible network configuration issue. Please contact your system administrator.

 

If you check the DWEngine_errors.log file, you'll find:

 

8/14/2020 1:48:05 PM [Thread:5340] [TdsServiceClient:ErrorEvent] (Error, High):

Microsoft.SqlServer.DataWarehouse.Common.ErrorHandling.LoginFailedException[110064:1]: 110064;Windows authentication failed. Possible network configuration issue. Please contact your system administrator. ---> Microsoft.SqlServer.DataWarehouse.Common.ErrorHandling.MppSqlException[110064:1]: 110064;Windows authentication failed. Possible network configuration issue. Please contact your system administrator. ---> Microsoft.SqlServer.DataWarehouse.Common.ErrorHandling.MppSqlException[110064:1]: 110064;Windows authentication failed. Possible network configuration issue. Please contact your system administrator. ---> System.Data.SqlClient.SqlException[40104:1]: Only sysadmin can execute this stored procedure 'sp_polybase_authorize'.

 

If you gather a profiler trace during the attempted query execution, you'll see:

 

SP:Starting - exec DWConfiguration.dbo.sp_pdw_polybase_authorize @AppName=N'6CF2B44E-A0CF-53B2-5245-F6F7995AEE0B'

SP:StmtStarting - EXEC [sp_polybase_authorize] @AppName

User Error Message - Only sysadmin can execute this stored procedure 'sp_polybase_authorize'.

 

Cause

This occurs because either the l_certSignPolyBaseAuthorize login doesn't exist or it isn't a member of the sysadmin server role.

 

Resolution

If the login is missing, recreate it from certificate.

 

CREATE LOGIN [l_certSignPolyBaseAuthorize] FROM CERTIFICATE [_##PDW_PolyBaseAuthorizeSigningCertificate##]

GO

 

If login exists but doesn't have sysadmin role, add it

 

ALTER SERVER ROLE [sysadmin] ADD MEMBER [l_certSignPolyBaseAuthorize]

GO

%3CLINGO-SUB%20id%3D%22lingo-sub-2112711%22%20slang%3D%22en-US%22%3EPolyBase%20Service%20Account%20Permissions%20and%20Common%20Errors%20Observed%20When%20They%20Are%20Missing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2112711%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20seen%20a%20number%20of%20PolyBase%20cases%20in%20SQL%20Server%20Support%20related%20to%20logins%20or%20permissions%20created%20and%20set%20during%20installation%20that%20are%20missing.%20It%20is%20quite%20common%20for%20organizations%20to%20want%20to%20lock%20down%20their%20environment%20from%20a%20security%20perspective%20in%20order%20to%20comply%20with%20principal%20of%20least%20privilege.%20Unfortunately%2C%20this%20has%20resulted%20in%20the%20removal%20of%20logins%20and%20permissions%20that%20are%20required%20for%20PolyBase%20to%20function%20properly.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20want%20to%20give%20a%20brief%20overview%20of%20the%20logins%20and%20permissions%20that%20are%20required%20and%20then%20highlight%20a%20couple%20of%20the%20common%20issues%20we've%20seen%20when%20these%20logins%20and%20permissions%20are%20removed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1269121925%22%20id%3D%22toc-hId-1268978518%22%3E%3CFONT%20size%3D%225%22%3EPermissions%20Assigned%20During%20Installation%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3EWhen%20you%20install%20SQL%20Server%202019%20with%20PolyBase%20feature%20you%20must%20assign%20the%20service%20account%20for%20the%20two%20PolyBase%20services%20(PolyBase%20Engine%2C%20PolyBase%20Data%20Movement).%20The%20default%20account%20is%20NT%20AUTHORITY%5CNETWORK%20SERVICE.%20If%20you%20wish%20to%20use%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Frelational-databases%2Fpolybase%2Fpolybase-scale-out-groups%3Fview%3Dsql-server-ver15%23%3A~%3Atext%3DPolyBase%2520Scale%252Dout%2520Groups%252C%2520a%2Cwith%2520PolyBase%2520and%2520PolyBase%2520Guide.%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPolyBase%20scale-out%20groups%3C%2FA%3E%2C%20you%20must%20use%20a%20domain%20account.%20For%20the%20purposes%20of%20this%20post%2C%20I%20did%20a%20fresh%20installation%20of%20SQL%20Server%202019%20with%20PolyBase%20feature%20and%20used%20the%20account%20'SQLPB%5CPolyBaseSvcAcct'%20for%20the%20services.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20important%20to%20point%20out%20that%20there%20are%20three%20databases%20that%20get%20created%20when%20installing%20the%20PolyBase%20feature%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDWConfiguration%3C%2FLI%3E%0A%3CLI%3EDWDiagnostics%3C%2FLI%3E%0A%3CLI%3EDWQueue%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20specific%20ways%20these%20databases%20function%20in%20PolyBase%20are%20outside%20the%20scope%20of%20this%20post%2C%20but%20in%20order%20for%20PolyBase%20to%20function%20properly%2C%20the%20service%20account%20must%20have%20permissions%20within%20these%20databases.%20The%20needed%20permissions%20are%20achieved%20by%20database%20role%20membership%20assigned%20to%20the%20service%20account.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20installation%2C%20you'll%20see%20that%20the%20domain%20login%20is%20added%20to%20SQL%20Server%2C%20but%20does%20not%20have%20sysadmin%20role%20(or%20any%20server%20role%2C%20aside%20from%20public).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou'll%20also%20see%20that%20the%20account%20has%20the%20following%20database%20roles%20in%20the%20previously%20mentioned%20databases%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%7BDWConfiguration%7D%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Edb_datareader%3C%2FLI%3E%0A%3CLI%3Edb_datawriter%3C%2FLI%3E%0A%3CLI%3Epublic%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%7BDWDiagnostics%7D%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Edb_datareader%3C%2FLI%3E%0A%3CLI%3Edb_datawriter%3C%2FLI%3E%0A%3CLI%3Edb_ddladmin%3C%2FLI%3E%0A%3CLI%3Epublic%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%7BDWQueue%7D%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Edb_datareader%3C%2FLI%3E%0A%3CLI%3Edb_datawriter%3C%2FLI%3E%0A%3CLI%3Epublic%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%7Btempdb%7D%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Epublic%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20troubleshooting%20some%20of%20the%20issues%20I'll%20mention%20later%2C%20I%20learned%20that%20there%20are%20two%20certificates%20(_%23%23PDW_SmDetachSigningCertificate%23%23%20and%20_%23%23PDW_PolyBaseAuthorizeSigningCertificate%23%23)%20created%20in%20master%20database%20and%20two%20logins%20(l_certSignSmDetach%20and%20l_certSignPolyBaseAuthorize)%20that%20are%20also%20created%20during%20installation%20of%20the%20PolyBase%20feature.%20These%20security%20objects%20help%20maintain%20the%20principals%20of%20least%20privilege%20for%20the%20service%20accounts%20while%20facilitating%20some%20of%20the%20PolyBase%20functionality%20that%20requires%20sysadmin%20role%20on%20the%20SQL%20Server%20instance.%20During%20installation%2C%20the%20certificates%20are%20created%20and%20then%20the%20logins%20are%20created%20from%20the%20certificates.%20In%20short%2C%20these%20two%20logins%20must%20exist%20and%20must%20be%20members%20of%20the%20sysadmin%20server%20role.%20If%20they%20do%20not%20exist%20or%20are%20missing%20sysadmin%20role%20membership%2C%20you%20may%20see%20issues%20I%20outline%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--538332538%22%20id%3D%22toc-hId--538475945%22%3ECommon%20Issues%3C%2FH1%3E%0A%3CH2%20id%3D%22toc-hId-152228936%22%20id%3D%22toc-hId-152085529%22%3EData%20Movement%20Service%20won't%20start%20-%20Shared%20memory%20segment%20has%20not%20been%20created%20or%20attached%3C%2FH2%3E%0A%3CH3%20id%3D%22toc-hId-842790410%22%20id%3D%22toc-hId-842647003%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--964664053%22%20id%3D%22toc-hId--964807460%22%3ESymptom%3C%2FH3%3E%0A%3CP%3ESQL%20Server%20PolyBase%20Data%20Movement%20service%20fails%20to%20start.%20If%20you're%20starting%20it%20from%20SQL%20Server%20Configuration%20Manager%2C%20you'll%20see%20that%20it%20enters%20the%20Running%20state%2C%20but%20after%20a%20short%20time%2C%20it%20is%20no%20longer%20running.%20If%20you%20check%20the%20Dms_errors.log%20file%20in%20the%20PolyBase%20logs%20directory%20(default%20instance%3A%20C%3A%5CProgram%20Files%5CMicrosoft%20SQL%20Server%5CMSSQL15.MSSQLSERVER%5CMSSQL%5CLog%5CPolybase)%2C%20you'll%20see%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E8%2F14%2F2020%201%3A07%3A52%20PM%20%5BThread%3A2724%5D%20%5BCommandManager%3AErrorEvent%5D%20(Error%2C%20High)%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EMicrosoft.SqlServer.DataWarehouse.DataMovement.SharedMemory.NativeSharedMemoryException%3A%20%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EShared%20memory%20segment%20has%20not%20been%20created%20or%20attached.%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%20at%20Microsoft.SqlServer.DataWarehouse.DataMovement.SharedMemory.NativeSharedMemory.ThrowIfInvalid()%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%20at%20Microsoft.SqlServer.DataWarehouse.DataMovement.SharedMemory.NativeSharedMemory.SetDistributionCount(Int32%20distrCount)%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%20at%20Microsoft.SqlServer.DataWarehouse.DataMovement.Nodes.DMSChannelMap.UpdateSharedMemoryDistributionCount()%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%20at%20Microsoft.SqlServer.DataWarehouse.DataMovement.Nodes.DMSChannelMap.AddDataChannelReceiver(String%20nodeName%2C%20DataChannelReceiver%20dataChannelReceiver)%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%20at%20Microsoft.SqlServer.DataWarehouse.DataMovement.CommandManager.StartDataChannel(Int32%20senderQueueSize%2C%20Int32%20tcpBufferSize%2C%20HashSet%601%20nodesToConnect)%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%20at%20Microsoft.SqlServer.DataWarehouse.DataMovement.CommandManager.ProcessStartDataChannel(IMessage%20message)%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%20at%20Microsoft.SqlServer.DataWarehouse.DataMovement.CommandManager.ProcessBaseMessage(IBaseMessage%20message)%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%20at%20Microsoft.SqlServer.DataWarehouse.DataMovement.CommandManager.Run()%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%20at%20Microsoft.SqlServer.DataWarehouse.Common.ThreadManager.ThreadFactory.ExecuteCallback(Delegate%20callback%2C%20Object%20state%2C%20Boolean%20throwException%2C%20String%20name)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20capture%20a%20profiler%20trace%2C%20you'll%20find%20the%20following%20Profiler%20events%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ESP%3AStarting%20-%20exec%20DWConfiguration.dbo.sp_pdw_sm_detach%20N'Global%5C%7BGUID%7D'%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ESP%3AStmtStarting%20-%20EXEC%20%5Bsp_sm_detach%5D%20%40FileName%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EUser%20Error%20Message%20-%20Only%20sysadmin%20can%20execute%20this%20stored%20procedure%20'sp_sm_detach'.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1522848780%22%20id%3D%22toc-hId-1522705373%22%3ECause%3C%2FH3%3E%0A%3CP%3EThis%20occurs%20because%20either%20the%20l_certSignSmDetach%20login%20doesn't%20exist%20or%20it%20isn't%20a%20member%20of%20the%20sysadmin%20server%20role.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--284605683%22%20id%3D%22toc-hId--284749090%22%3EResolution%3C%2FH3%3E%0A%3CP%3EIf%20the%20login%20is%20missing%2C%20recreate%20it%20from%20certificate.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ECREATE%20LOGIN%20%5Bl_certSignSmDetach%5D%20FROM%20CERTIFICATE%20%5B_%23%23PDW_SmDetachSigningCertificate%23%23%5D%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EGO%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20login%20exists%2C%20but%20doesn't%20have%20sysadmin%20role%2C%20add%20it%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EALTER%20SERVER%20ROLE%20%5Bsysadmin%5D%20ADD%20MEMBER%20%5Bl_certSignSmDetach%5D%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EGO%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--295108787%22%20id%3D%22toc-hId--295252194%22%3EWindows%20authentication%20failed.%20Possible%20network%20configuration%20issue.%20Please%20contact%20your%20system%20administrator.%3C%2FH2%3E%0A%3CH3%20id%3D%22toc-hId-395452687%22%20id%3D%22toc-hId-395309280%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1412001776%22%20id%3D%22toc-hId--1412145183%22%3ESymptom%3C%2FH3%3E%0A%3CP%3EExecuting%20a%20query%20to%20an%20external%20table%20gives%20the%20following%20error%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EMsg%20110064%2C%20Level%2016%2C%20State%201%2C%20Line%2036%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E110064%3BWindows%20authentication%20failed.%20Possible%20network%20configuration%20issue.%20Please%20contact%20your%20system%20administrator.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20execute%20a%20query%20to%20any%20of%20the%20PolyBase%20DMVs%2C%20you'll%20see%20the%20following%20(slightly%20different)%20error%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EMsg%2044528%2C%20Level%2016%2C%20State%201%2C%20Line%201%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E110064%3BWindows%20authentication%20failed.%20Possible%20network%20configuration%20issue.%20Please%20contact%20your%20system%20administrator.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20check%20the%20DWEngine_errors.log%20file%2C%20you'll%20find%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E8%2F14%2F2020%201%3A48%3A05%20PM%20%5BThread%3A5340%5D%20%5BTdsServiceClient%3AErrorEvent%5D%20(Error%2C%20High)%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EMicrosoft.SqlServer.DataWarehouse.Common.ErrorHandling.LoginFailedException%5B110064%3A1%5D%3A%20110064%3BWindows%20authentication%20failed.%20Possible%20network%20configuration%20issue.%20Please%20contact%20your%20system%20administrator.%20---%26gt%3B%20Microsoft.SqlServer.DataWarehouse.Common.ErrorHandling.MppSqlException%5B110064%3A1%5D%3A%20110064%3BWindows%20authentication%20failed.%20Possible%20network%20configuration%20issue.%20Please%20contact%20your%20system%20administrator.%20---%26gt%3B%20Microsoft.SqlServer.DataWarehouse.Common.ErrorHandling.MppSqlException%5B110064%3A1%5D%3A%20110064%3BWindows%20authentication%20failed.%20Possible%20network%20configuration%20issue.%20Please%20contact%20your%20system%20administrator.%20---%26gt%3B%20System.Data.SqlClient.SqlException%5B40104%3A1%5D%3A%20%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EOnly%20sysadmin%20can%20execute%20this%20stored%20procedure%20'sp_polybase_authorize'.%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20gather%20a%20profiler%20trace%20during%20the%20attempted%20query%20execution%2C%20you'll%20see%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ESP%3AStarting%20-%20exec%20DWConfiguration.dbo.sp_pdw_polybase_authorize%20%40AppName%3DN'6CF2B44E-A0CF-53B2-5245-F6F7995AEE0B'%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ESP%3AStmtStarting%20-%20EXEC%20%5Bsp_polybase_authorize%5D%20%40AppName%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EUser%20Error%20Message%20-%20Only%20sysadmin%20can%20execute%20this%20stored%20procedure%20'sp_polybase_authorize'.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-380347578%22%20id%3D%22toc-hId-380204171%22%3ECause%3C%2FH3%3E%0A%3CP%3EThis%20occurs%20because%20either%20the%20l_certSignPolyBaseAuthorize%20login%20doesn't%20exist%20or%20it%20isn't%20a%20member%20of%20the%20sysadmin%20server%20role.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1427106885%22%20id%3D%22toc-hId--1427250292%22%3EResolution%3C%2FH3%3E%0A%3CP%3EIf%20the%20login%20is%20missing%2C%20recreate%20it%20from%20certificate.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ECREATE%20LOGIN%20%5Bl_certSignPolyBaseAuthorize%5D%20FROM%20CERTIFICATE%20%5B_%23%23PDW_PolyBaseAuthorizeSigningCertificate%23%23%5D%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EGO%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20login%20exists%20but%20doesn't%20have%20sysadmin%20role%2C%20add%20it%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EALTER%20SERVER%20ROLE%20%5Bsysadmin%5D%20ADD%20MEMBER%20%5Bl_certSignPolyBaseAuthorize%5D%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EGO%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Feb 03 2021 06:56 AM
Updated by: