閱讀590 返回首頁    go 財經資訊


Zeppelin 使用說明__開源組件介紹_用戶指南_E-MapReduce-阿裏雲

目前 E-MapReduce 中支持了 Appache Zeppelin,選擇支持 Zeppelin 的鏡像創建集群並且開啟公網 IP 即可以在 E-MapReduce 訪問和使用 Zeppelin。

準備工作

在集群建立出來之後,需要打通 ssh 隧道,詳細步驟請參考:https://help.aliyun.com/document_detail/28187.html

這裏以 Mac 環境為例,使用 Chrome 瀏覽器實現端口轉發(假設集群 master 節點公網 IP 為xx.xx.xx.xx):

  1. 登錄到 master 節點。

    1. ssh root@xx.xx.xx.xx
  2. 輸入密碼。

  3. 查看本機的 id_rsa.pub 內容(注意在本機執行,不要在遠程的 master 節點上執行)。

    1. cat ~/.ssh/id_rsa.pub
  4. 將本機的 id_rsa.pub 內容寫入到遠程 master 節點的 ~/.ssh/authorized_keys 中(在遠端 master 節點上執行)。

    1. mkdir ~/.ssh/
    2. vim ~/.ssh/authorized_keys
  5. 將步驟 2 中看到的內容粘貼進來。現在就可以直接使用 sshroot@xx.xx.xx.xx 免密登錄 master 節點了。

  6. 在本機執行以下命令進行端口轉發。

    1. ssh -i ~/.ssh/id_rsa -ND 8157 root@xx.xx.xx.xx
  7. 啟動 Chrome(在本機新開 terminal 執行)。

    1. /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --proxy-server="socks5://localhost:8157" --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" --user-data-dir=/tmp

訪問 Zeppelin

在進行端口轉發的 Chrome 瀏覽器中訪問:xx.xx.xx.xx:8080

最後更新:2016-11-23 16:04:09

  上一篇:go Presto 使用說明__開源組件介紹_用戶指南_E-MapReduce-阿裏雲
  下一篇:go ZooKeeper 使用說明__開源組件介紹_用戶指南_E-MapReduce-阿裏雲