我尝试使用边缘节点部署HDInsight群集 . 我使用https://github.com/Azure/azure-quickstart-templates/blob/master/101-hdinsight-linux-with-edge-node/azuredeploy.json进行部署 .
部署完成后,我使用以下命令尝试了ssh:
ssh sshuser@new-edgenode.myclustertest-ssh.azurehdinsight.net:22
[myclustertest是群集的名称] .
它给出以下错误:
ssh: Could not resolve hostname new-edgenode.myclustertest-ssh.azurehdinsight.net:22: Name or service not known
我是否需要在azuredeploy.json中添加一些内容才能启用ssh访问?
看着https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-linux-use-ssh-unix我以为
<edgenodename>.<clustername>-ssh.azurehdinsight.net
默认情况下启用外部访问 .
1 回答
问题出现在ssh命令中 .
我使用了azure portal提供的ssh命令,希望它能无缝地工作 . 我不得不从命令中删除:22以使其工作 .
修改后的命令如下所示: