0

Google Cloud Dataproc クラスタで Jupyter を実行するための SSH トンネルを作成しようとしています。

このチュートリアルでは、トンネルを作成するための次のテンプレートを提供します。それは言います:

"port1 を使用する Cloud Shell ポート (8080 ~ 8084) に置き換え、port2 をクラスター マスター ノードの Web インターフェイス ポートに置き換えます。"

gcloud compute ssh master-host-name \
    --project=project-id --zone master-host-zone  -- \
    -4 -N -L port1:master-host-name:port2

スタックしているのはポート 2 です。VPC 設定、VM 設定などを調べましたが、「Web インターフェイス ポート」が見つかりません。私が見るべき特定の場所はありますか?

4

1 に答える 1

3

You may find this article helpful: https://cloud.google.com/dataproc/docs/concepts/accessing/cluster-web-interfaces

You're likely looking for Yarn resource manager on port 8088. However, if you want to drill down into your applications (which do not run on master node) you may find setting up SSH tunnel easier to work with:

gcloud compute ssh master-host-name ... -- -D 1080 -N

Then start the browser pointed at the proxy:

/usr/bin/google-chrome \
  --proxy-server="socks5://localhost:1080" \
  --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" \
  --user-data-dir=/tmp/master-host-name

You can now enter http://master-host-name:8088 in browser's address bar.

于 2018-06-08T15:05:19.197 に答える