我正在使用elastic-mapreduce
从命令行旋转新集群。看完this教程,我有:
elastic-mapreduce --create --alive \
--instance-type m1.xlarge\
--num-instances 5 \
--supported-product mapr \
--name m7 \
--args "--edition,m7"
将创建一个包含 6 个节点(1 个主节点 + 5 个从节点)的新集群。所以我尝试ssh
进入master:
elastic-mapreduce --jobflow j-3FLVMX9CYE5L6 --ssh
我得到权限被拒绝(公钥)
permissions.json
文件位于 elastic_mapreduce
主目录中,也是 my_key.pem
文件的路径。
另外,通过这样做:
ssh -i my_key.pem hadoop@masternode
我还收到权限被拒绝(公钥)
。 my_key.pem 已被授予 400
权限。老实说,我不知道接下来我可以尝试什么......有什么线索吗?
当我转到 EC2
控制台并单击连接
时,我收到以下错误消息:
Instance is not associated with a key pair.
This instance is not associated with a Key Pair. Without a Key Pair you will need to log into this instance using a valid username and password combination.
最佳答案
创建 EMR 集群时,请确保启用 key 对。在 EMR 控制台上您可以看到如下所示:
关于hadoop - 无法 ssh 进入 Elastic MapReduce,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21446492/