az hdinsight application
管理 HDInsight 應用程式。
在 2.30.0 版之前,我們不再維護模組。 建議升級至至少 2.30.0 版。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az hdinsight application create |
建立 HDInsight 叢集的應用程式。 |
Core | GA |
| az hdinsight application delete |
刪除 HDInsight 叢集上的指定應用程式。 |
Core | GA |
| az hdinsight application list |
列出 HDInsight 叢集的所有應用程式。 |
Core | GA |
| az hdinsight application show |
取得指定之應用程式的屬性。 |
Core | GA |
| az hdinsight application wait |
將 CLI 置於等候狀態,直到作業完成為止。 |
Core | GA |
az hdinsight application create
建立 HDInsight 叢集的應用程式。
az hdinsight application create --cluster-name
--name
--resource-group
--script-action-name
--script-uri
[--access-mode]
[--destination-port]
[--disable-gateway-auth {false, true}]
[--edgenode-size]
[--marketplace-id]
[--no-validation-timeout]
[--script-parameters]
[--ssh-password]
[--ssh-public-key]
[--ssh-user]
[--sub-domain-suffix]
[--subnet]
[--tags]
[--type {CustomApplication, RServer}]
[--vnet-name]
範例
使用文稿 URI 建立應用程式。
az hdinsight application create -g MyResourceGroup -n MyApplication \
--cluster-name MyCluster \
--script-uri https://hdiconfigactions.blob.core.windows.net/linuxhueconfigactionv02/install-hue-uber-v02.sh \
--script-action-name MyScriptAction \
--script-parameters '"-version latest -port 20000"'
建立具有腳本 URI 和指定邊緣節點大小的應用程式。
az hdinsight application create -g MyResourceGroup -n MyApplication \
--cluster-name MyCluster \
--script-uri https://hdiconfigactions.blob.core.windows.net/linuxhueconfigactionv02/install-hue-uber-v02.sh \
--script-action-name MyScriptAction \
--script-parameters "-version latest -port 20000" \
--edgenode-size Standard_D4_v2
使用 HTTPS 端點建立應用程式。
az hdinsight application create -g MyResourceGroup -n MyApplication \
--cluster-name MyCluster \
--script-uri https://hdiconfigactions.blob.core.windows.net/linuxhueconfigactionv02/install-hue-uber-v02.sh \
--script-action-name MyScriptAction \
--script-parameters "-version latest -port 20000" \
--destination-port 8888 \
--sub-domain-suffix was
必要參數
叢集的名稱。
應用程式名稱的常數值。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
腳本動作的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Script Action Arguments |
腳本的 URI。
| 屬性 | 值 |
|---|---|
| 參數群組: | Script Action Arguments |
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
應用程式的存取模式。
| 屬性 | 值 |
|---|---|
| 參數群組: | HTTPS Endpoint Arguments |
| 預設值: | WebPage |
要連接的目的地埠。
| 屬性 | 值 |
|---|---|
| 參數群組: | HTTPS Endpoint Arguments |
| 預設值: | 8080 |
指出是否要停用閘道驗證。 預設值為啟用閘道驗證。 預設:false。
| 屬性 | 值 |
|---|---|
| 參數群組: | HTTPS Endpoint Arguments |
| 接受的值: | false, true |
節點的大小。 另請參閱: https://learn.microsoft.com/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size。
| 屬性 | 值 |
|---|---|
| 參數群組: | Node Arguments |
| 預設值: | Standard_D3_V2 |
市集標識碼。
允許在自變數驗證階段期間發生逾時錯誤。 如果省略,則會允許驗證逾時錯誤。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
腳本的參數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Script Action Arguments |
叢集節點的 SSH 密碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | SSH Arguments |
叢集節點的 SSH 公鑰。
| 屬性 | 值 |
|---|---|
| 參數群組: | SSH Arguments |
叢集節點的 SSH 用戶名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | SSH Arguments |
| 預設值: | sshuser |
應用程式的子域後綴。
| 屬性 | 值 |
|---|---|
| 參數群組: | HTTPS Endpoint Arguments |
子網的名稱或標識碼。 如果提供名稱, --vnet-name 則必須提供 。
| 屬性 | 值 |
|---|---|
| 參數群組: | Network Arguments |
以空格分隔的標記:key[=value] [key[=value] ...]。使用 「清除現有的標記」。
應用程式類型。
| 屬性 | 值 |
|---|---|
| 預設值: | CustomApplication |
| 接受的值: | CustomApplication, RServer |
虛擬網路的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Network Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az hdinsight application delete
刪除 HDInsight 叢集上的指定應用程式。
az hdinsight application delete --cluster-name
--name
--resource-group
[--no-wait]
[--yes]
必要參數
叢集的名稱。
應用程式名稱的常數值。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az hdinsight application list
列出 HDInsight 叢集的所有應用程式。
az hdinsight application list --cluster-name
--resource-group
必要參數
叢集的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az hdinsight application show
取得指定之應用程式的屬性。
az hdinsight application show --cluster-name
--name
--resource-group
必要參數
叢集的名稱。
應用程式名稱的常數值。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az hdinsight application wait
將 CLI 置於等候狀態,直到作業完成為止。
az hdinsight application wait --cluster-name
--name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
必要參數
叢集的名稱。
應用程式名稱的常數值。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
請等候在 'Succeeded' 使用 'provisioningState' 建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
等到刪除為止。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等候資源存在。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
輪詢間隔以秒為單位。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 30 |
以秒為單位的等候上限。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 3600 |
等到 provisioningState 更新為 'Succeeded'。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |