2017-11-22 24 views
0

azure cli를 사용하여 HDInsight에서 클러스터를 만들려고하지만 클러스터를 만들 때 노드 유형을 선택하는 방법을 찾을 수 없습니다.azure cli를 사용하여 HDInsight 클러스터를 만들 때 노드 유형을 선택하는 방법은 무엇입니까?

az group deployment create --name $deploymentName --resource-group $resourceGroupName --template-file $templateFilePath \ 
--parameters clusterName=$deploymentName \ 
      clusterLoginPassword=$loginPassword \ 
      location=$resourceGroupLocation \ 
      clusterWorkerNodeCount=$wNodes \ 
      clusterKind=$clusterKind \ 
      clusterVersion=$clusterVersion \ 
      containerName=$containerName \ 
      sshPassword=$loginPassword 

템플릿 파일에서 관련 부분은 다음과 같습니다 : 푸른 hdinsight 클러스터 create 명령을 사용하는 경우

"computeProfile": { 
       "roles": [ 
        { 
         "name": "headnode", 
         "minInstanceCount": 1, 
         "targetInstanceCount": 2, 
         "hardwareProfile": { 
          "vmSize": "Large" 
         }, 
         "osProfile": { 
          "linuxOperatingSystemProfile": { 
           "username": "[parameters('sshUserName')]", 
           "password": "[parameters('sshPassword')]" 
          } 
         }, 
         "virtualNetworkProfile": null, 
         "scriptActions": [] 
        }, 
+0

여기 템플릿을 공유해주세요. –

+0

@ JasonYe-MSFT가 질문을 편집하여 template.json의 관련 부분을 갖습니다. – Sarah

답변

0

, 당신은 크기를 설정할 수 있습니다 내가 클러스터를 만드는 데 사용하고 명령은 다음과 같이이다 --headNodeSize, --workerNodeSize- zookeeperNodeSize 매개 변수를 사용하여 머리, 작업자 및 ZooKeeper 노드의 크기를 조정할 수 있습니다.

참고 : Azure CLI 2.0은 HDInsight 클러스터 생성을 지원하지 않습니다.

AzIn CLI 1.0을 사용하여 HDInsight 클러스터를 만들어야합니다.

자세한 내용은 "Create HDInsight clusters using the Azure CLI"을 참조하십시오.