目錄: Prerequisites 集群配置規劃 創建域控伺服器 polybase install firewall config 集群配置 刪除計算節點 install Prerequisites Microsoft .NET Framework 4.5 Oracle Java SE RunTim ...
目錄:
- Prerequisites
- 集群配置規劃
- 創建域控伺服器
- polybase install
- firewall config
- 集群配置
- 刪除計算節點
install Prerequisites
- Microsoft .NET Framework 4.5
- Oracle Java SE RunTime Environment (JRE) version 7.51 or higher (64-bit) (Either JRE or Server JRE will work)
- Minimum memory: 4GB
- Minimum hard disk space: 2GB
- TCP/IP connectivity must be enabled
- SQL Server (starting with 2016)
- JRE下載地址: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- sqlserver2016: https://www.microsoft.com/en-us/evalcenter/evaluate-sql-server-2016?i=1
- ssms2016(SQL Server Management Studio): https://msdn.microsoft.com/en-us/library/mt238290.aspx
集群配置規劃:
- 3台Azure A3 虛擬機(polybase0、polybase1、polybase2),虛擬機在同一虛擬子網
- polybase0:域控伺服器
- polybase1、polybase2 同一域內二台測試機
- 域帳戶: jn\zhushy
- 說明: 在polybase1、polybase2安裝sqlserver2016 with polybase
創建域控伺服器
- polybase 集群要求所有節點的 PolyBase engine 和 polybase DMS 訪問使用相同的 domain account
- 打開server manager Dashboard --> Add Roles and Features
- Server Roles 項,配置如下:
- 按嚮導預設安裝完畢後,配置域控伺服器
- 設置信息如下:
- 安裝配置成功後,系統會重啟,自動會加入到域,如圖:
- 域控伺服器不能安裝polybase
讓其他電腦加入該域
- 登陸要加入該域的電腦,先更改IP地址,把首選DNS設置成域控伺服器的IP地址
- 然後打開電腦屬性,選擇更改設置,選擇加入域控jn.com,如下圖:
- 點擊確定,然後輸入此台電腦的管理員賬戶和密碼, 後重啟電腦後生效
polybase install
- 啟動安裝嚮導,在如下的界面選擇"New Standalone SQL Server installation or add features",如圖:
- 在執行“ feature selection page” 時,選擇“PolyBase Query Service for External Data”
- PolyBase Configuration Page 項,配置如下:
- Server Configuration Page 項,configure the SQL Server PolyBase Engine Service and SQL Server PolyBase Data Movement Service to run under the same account
- 安裝完成後,如下
- 在上面鏈接下載的sqlserver2016未集成ssms,需單獨安裝,通過下麵的sql判斷是否安裝正常
SELECT SERVERPROPERTY ('IsPolybaseInstalled') AS IsPolybaseInstalled
-
返回“1”則表示安裝成功,如下
firewall config
- SQL Server PolyBase setup creates the following firewall rules on the machine
- SQL Server PolyBase – Database Engine - <SQLServerInstanceName> (TCP-In)
- SQL Server PolyBase – PolyBase Services - <SQLServerInstanceName> (TCP-In)
- SQL Server PolyBase - SQL Browser - (UDP-In)
- To enable the firewall rules
- Open the Control Panel
- Click System and Security, and click Windows Firewall
- click Advanced Settings, and click Inbound rules
- Right-click the disabled rule, then click Enable rule
- 如下圖:
集群配置
- 選擇polybase1作為headnode
- Connect to SQL Server on polybase2. Run the stored procedure sp_polybase_join_group.
-- Enter head node details: -- head node machine name, head node dms control channel port, head node sql server name EXEC sp_polybase_join_group 'polybase1', 16450, 'MSSQLSERVER';
-
Shutdown the PolyBase engine and restart the PolyBase data movement service
- 連接到sqlserver on polybase1, 查看集群節點狀況,如下: select * from sys.dm_exec_compute_nodes
刪除計算節點:
- Connect to the compute node SQL Server (polybase2).
- Run the stored procedure sp_polybase_leave_group.
EXEC sp_polybase_leave_group;
- on polybase2 : Start PolyBase Engine. Restart PolyBase data movement service.
- Now polybase2 will function as a standalone head node