# Data Fabric Windows Client ## Windows 環境配置 本教學參考[官方連結](https://docs.datafabric.hpe.com/62/AdvancedInstallation/SettingUptheClient-windows.html) ### 安裝JDK Data Fabric 6.2使用的是 JDK11 [支援列表](https://docs.datafabric.hpe.com/62/InteropMatrix/r_jdk_matrix.html) 下載[JDK11](https://www.oracle.com/tw/java/technologies/javase-jdk11-downloads.html)並安裝 ![](https://i.imgur.com/Ypxlx3F.png) ```shell= C:\opt\mapr>java --version java 11.0.10 2021-01-19 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.10+8-LTS-162) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.10+8-LTS-162, mixed mode) ``` ### 設置環境變數 ![](https://i.imgur.com/rOGwbKN.png) ![](https://i.imgur.com/awTjAnU.png) ![](https://i.imgur.com/6nlICri.png) ![](https://i.imgur.com/UpsBZjQ.png) ```shell= setx MAPR_TICKETFILE_LOCATION "c:\maprticket\user" ``` ### 設置MapR Client 下載 MapR Client[下載連結](https://package.mapr.com/releases/v6.2.0/windows/) ![](https://i.imgur.com/v6eySdH.png) 解壓縮MapR Client ![](https://i.imgur.com/JnGwSjt.png) ### 新增opt資料夾在C槽 ![](https://i.imgur.com/hVVZH3C.png) ![](https://i.imgur.com/FaJKVia.png) ### 連線到CLDB #### 取得 Host Name ![](https://i.imgur.com/6yUqAxE.png) #### 取得 Cluster Name ![](https://i.imgur.com/7yRdN1V.png) 打開`命令提示字元` ![](https://i.imgur.com/FKlCyH2.png) 加入每個Node資訊 ```shell= cd C:\opt\mapr server\configure.bat -N my.cluster.com -c -secure -C node1.hpe-taiwan-cic.net:7222,node2.hpe-taiwan-cic.net:7222,node3.hpe-taiwan-cic.net:7222 ``` ### 使用`MapR Client`登入`MapR` 複製`ssl_truststore`到Windows的`C:\opt\mapr\conf` ```shell= $ scp root@20.6.0.111:/opt/mapr/conf/ssl_truststore ``` ![](https://i.imgur.com/JauUlnv.png) ![](https://i.imgur.com/VxtFa7H.png) ### 驗證登入訊息 ```shell= C:\opt\mapr>bin\maprlogin.bat password -user mapr -cluster my.cluster.com WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.mapr.fs.ShimLoader (file:/C:/opt/mapr/lib/maprfs-6.2.0.0-mapr.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.mapr.fs.ShimLoader WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [Password for user 'mapr' at cluster 'my.cluster.com': ] MapR credentials of user 'mapr' for cluster 'my.cluster.com' are written to 'c:\maprticket\user' ``` ```shell= C:\opt\mapr>bin\maprlogin.bat print WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.mapr.fs.ShimLoader (file:/C:/opt/mapr/lib/maprfs-6.2.0.0-mapr.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.mapr.fs.ShimLoader WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Opening keyfile c:\maprticket\user my.cluster.com: user = mapr, created = 'Thu Jan 28 00:32:08 CST 2021', expires = 'Thu Feb 11 00:32:08 CST 2021', RenewalTill = 'Sat Feb 27 00:32:08 CST 2021', uid = 5000, gids = 5000, 5001, CanImpersonate = true, isExternal = true ``` ```shell= C:\opt\mapr>bin\maprlogin.bat authtest WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.mapr.fs.ShimLoader (file:/C:/opt/mapr/lib/maprfs-6.2.0.0-mapr.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.mapr.fs.ShimLoader WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Attempting to pick up default credentials for cluster my.cluster.com Successfully obtained credentials. ```