SE の雑記

SQL Server の情報をメインに Microsoft 製品の勉強内容を日々投稿

SQL Server 2016 CTP 2.0 の PolyBase をインストールする際の照合順序について

leave a comment

CTP 3.0 では、照合順序の制約はなくなりました。
PolyBase

In SQL16 CTP2.4, the PolyBase feature will support all SQL Server collations.

 
SQL Server 2016 CTP 2.0 では Hadoop や、Azure の BLOB ストレージに対して SQL によりデータを取得することができる PolyBase を使うことができますが、インストール時の照合順序に注意する必要があります。
詳細については SQL Server 2016 PolyBase won’t work on every collation! で紹介されています。

冒頭で紹介した記事に書かれているように PolyBase を使用する際には、照合順序を「Latin1_General_100_CI_AS_KS_WS」または、「SQL_Latin1_General_CP1_CI_AS」にして、SQL Server をインストールしておく必要があります。
PolyBase をインストールした場合、

  • SQL Server PolyBase Data Movement
  • SQL Server PolyBase Engine

という二種類のサービスがインストールされるのですが、照合順序が適していない場合には、「SQL Server PolyBase Engine」のサービスを起動することができません。
既定のインスタンスでインストールした場合「C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Log\Polybase」にログが出力されているのですが、「DWEngine_server.log」に以下のような例外が出力されているかと思います。

2015/06/10 23:17:41 [Thread:5284] [EngineServer:InformationEvent] (Info, Normal): Engine Server shutting down with PID:6112.
2015/06/10 23:17:42 [Thread:5284] [DMSManager:InformationEvent] (Info, Normal): Stop DMS Service
2015/06/10 23:17:42 [Thread:5284] [DMSManager:InformationEvent] (Info, Normal): Cancelling all the DMS movement
2015/06/10 23:17:42 [Thread:1224] [DMSManager:InformationEvent] (Info, Normal): DMSManager control process exiting...
2015/06/10 23:17:42 [Thread:1224] [DMSManager:InformationEvent] (Info, Normal): DMS is not running any more
2015/06/10 23:17:42 [Thread:5284] [ControlNodeMessenger:InformationEvent] (Info, Normal): Stopping all the connections
2015/06/10 23:17:42 [Thread:5284] [DMSManager:InformationEvent] (Info, Normal): ControlMessenger state : STOPPING
2015/06/10 23:17:42 [Thread:5284] [DMSManager:InformationEvent] (Info, Normal): ControlMessenger state : STOPPED
2015/06/10 23:17:42 [Thread:5284] [DMSManager:InformationEvent] (Info, Normal): ControlMessenger state : SHUTDOWN
2015/06/10 23:17:42 [Thread:5284] [DMSManager:InformationEvent] (Info, Normal): Control Node Messenger shut down
2015/06/10 23:35:16 [Thread:3368] [EngineInstrumentation:EngineInitializationBeginEvent] (Info, Low): EngineService is initializing
2015/06/10 23:35:16 [Thread:3368] [EngineInitializer:InformationEvent] (Info, Normal): PDWBulkCopySupport is NOT enabled.
2015/06/10 23:35:22 [Thread:3368] [EngineInstrumentation:EngineInitializationErrorEvent] (Fatal, Critical):
値を Null にすることはできません。
パラメーター名:Unsupported appliance collation encountered Japanese_CI_AS.
System.ArgumentNullException: 値を Null にすることはできません。
パラメーター名:Unsupported appliance collation encountered Japanese_CI_AS.
   場所 Microsoft.SqlServer.DataWarehouse.Utilities.Collation.CollationInfo.set_ApplianceCollationName(String value)
   場所 Microsoft.SqlServer.DataWarehouse.Catalog.Schema.Schema.Initialize(SqlConnection connection)
   場所 Microsoft.SqlServer.DataWarehouse.Engine.Server.EngineInitializer.FullModeEngineInitializer.EagerInit()
   場所 Microsoft.SqlServer.DataWarehouse.Engine.Server.EngineInitializer.FullModeEngineInitializer.InitializeEngine()
   場所 Microsoft.SqlServer.DataWarehouse.Engine.Server.EngineInitializer.Initialize()
   場所 Microsoft.SqlServer.DataWarehouse.Engine.Server.EngineServer.Run()
2015/06/10 23:36:02 [Thread:9308] [EngineServer:InformationEvent] (Info, Normal): Engine Server shutting down with PID:1788.

 
このようなメッセージが表示されている場合、照合順序を確認したほうがよさそうですね。
# インストール時にメッセージが表示されたような気もちょっとするのですが。

Share

Written by Masayuki.Ozawa

6月 11th, 2015 at 12:19 am

Posted in SQL Server

Tagged with ,

Leave a Reply