简体   繁体   English

使用Jupyter安装Google Dataproc时出现SSH错误

[英]SSH error when installing Google Dataproc with Jupyter

I have installed a Google DataProc Cluster with Jupyter ( https://cloud.google.com/dataproc/tutorials/jupyter-notebook ). 我已经使用Jupyter( https://cloud.google.com/dataproc/tutorials/jupyter-notebook )安装了Google DataProc群集。 By using the following command: 通过使用以下命令:

gcloud dataproc clusters create reco-test --zone=europe-west1-d  --master-machine-type n1-standard-2 --master-boot-disk-size 100 --num-workers 2 --worker-machine-type n1-standard-2 --worker-boot-disk-size 50 --project *project* --bucket *bucket* --initialization-actions  gs://dataproc-initialization-actions/jupyter/jupyter.sh`

Witch worked as a charm. 巫婆是一种魅力。 Afterwards I am trying to do the SSH forwarding, but errors appear: 之后,我尝试进行SSH转发,但是出现错误:

gcloud compute ssh --zone=europe-west1-d --ssh-flag="-D 10000" --ssh-flag="-N" --ssh-flag="-n" "reco-test-m" &

The error that was given can be find in the picture below as Error 1. 所给的错误可以在下面的图片中找到,作为错误1。

If I remove the "-D" 如果我删除“ -D”

gcloud compute ssh --zone=europe-west1-d --ssh-flag="10000" --ssh-flag="-N" --ssh-flag="-n" "reco-test-m" &

The error that was given can be find in the picture below as Error 2. 给出的错误可以在下面的图片中找到,错误2。

If I delete "--ssh-flag= "-n"" 如果我删除“ --ssh-flag =”-n“”

gcloud compute ssh --zone=europe-west1-d --ssh-flag="10000" --ssh-flag="-N" --ssh-flag="-n" "reco-test-m" &`

The error that was given can be find in the picture below as Error 3. 给出的错误可以在下面的图片中找到,错误3。

Is there somebody who can help me resolving this problem? 有没有人可以帮助我解决这个问题?

enter image description here 在此处输入图片说明

Looks like you're hitting this known issue about the way the arguments are parsed in windows: https://github.com/GoogleCloudPlatform/dataproc-initialization-actions/issues/22 似乎您遇到了有关Windows中参数解析方式的此已知问题: https : //github.com/GoogleCloudPlatform/dataproc-initialization-actions/issues/22

Try splitting the -D 10000 into two separate flags: 尝试将-D 10000分为两个单独的标志:

--ssh-flag="-D" --ssh-flag="10000"

Additionally, the -n flag is only necessary for running it in the background, and doesn't appear supported in Windows. 此外, -n标志仅在后台运行时才需要,并且在Windows中似乎不受支持。 In general it may be more convenient to keep it running in the foreground anyways, so you can easily ctrl+C the the process to kill the tunnel when you're done using it without dealing with background processes (though running it in the background will still terminate automatically when the cluster is deleted). 通常,将其始终保持在前台运行可能更方便,因此您可以在不使用后台进程的情况下轻松地按住ctrl+C杀死隧道的进程(尽管在后台运行它会删除群集后仍会自动终止)。

Update: Since splitting the flag also works in posix systems, I've updated the documentation to now use the separate --ssh-flag arguments and also better explain leaving off the -n flag when running in the foreground. 更新:由于拆分标志在posix系统中也适用,因此我更新了文档 ,现在使用单独的--ssh-flag参数,并且还更好地解释了在前台运行时--ssh-flag -n标志。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google DataProc Spark - 尝试通过 SSH 连接到工作节点时出现“权限被拒绝(公钥)”错误 - Google DataProc Spark - getting “permission denied (publickey)” error when trying to SSH to a worker node 安装Kojoney(SSH Honeypot)时出现海螺错误 - Error with Conch when installing Kojoney (SSH Honeypot) 无法通过 ssh 连接到 Google Cloud Dataproc 的主节点,但可以通过 ssh 连接到 Compute Engine VM - Unable to ssh to master node of Google Cloud Dataproc, but can ssh to Compute Engine VM 无法在群集中使用SSH Dataproc Master - Cannot SSH Dataproc Master in Cluster 尝试 ssh 进入 Google Cloud Platform VM 时出现错误公钥 - Error Public Key when trying to ssh into Google Cloud Platform VM Jupyter笔记本SSH隧道错误“签名数据库无法打开” - Jupyter notebook SSH Tunneling error “The signatures database cannot be opened” 当 SSH 在本地机器上终止时,让 jupyter lab notebook 保持运行? - Keep jupyter lab notebook running when SSH is terminated on local machine? 安装 MySQL 后无法 SSH 到 Google Cloud VM - Can't SSH to Google Cloud VM After Installing MySQL 尝试通过SSH连接到Google Cloud Shell时出现权限被拒绝(公钥)错误 - Permission denied (publickey) error when trying to connect to Google Cloud Shell via SSH 当 ssh 到谷歌云计算引擎中新添加的用户时,权限被拒绝错误 - Permission denied error when ssh to a newly added user in google cloud compute engine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM