共用方式為


az hdinsight application

管理 HDInsight 應用程式。

命令

名稱 Description 類型 狀態
az hdinsight application create

建立 HDInsight 叢集的應用程式。

核心 加語
az hdinsight application delete

刪除 HDInsight 叢集上的指定應用程式。

核心 加語
az hdinsight application list

列出 HDInsight 叢集的所有應用程式。

核心 加語
az hdinsight application show

取得指定之應用程式的屬性。

核心 加語
az hdinsight application wait

將 CLI 置於等候狀態,直到作業完成為止。

核心 加語

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

必要參數

--cluster-name

叢集的名稱。

--name -n

應用程式名稱的常數值。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--script-action-name

腳本動作的名稱。

--script-uri

腳本的 URI。

選擇性參數

--access-mode

應用程式的存取模式。

預設值: WebPage
--destination-port

要連接的目的地埠。

預設值: 8080
--disable-gateway-auth

指出是否要停用閘道驗證。 預設值為啟用閘道驗證。 默認值:false。

接受的值: false, true
--edgenode-size
--marketplace-id

市集標識碼。

--no-validation-timeout

允許在自變數驗證階段期間發生逾時錯誤。 如果省略,則會允許驗證逾時錯誤。

預設值: False
--script-parameters

腳本的參數。

--ssh-password -P

叢集節點的 SSH 密碼。

--ssh-public-key -K

叢集節點的 SSH 公鑰。

--ssh-user -U

叢集節點的 SSH 用戶名稱。

預設值: sshuser
--sub-domain-suffix

應用程式的子域後綴。

--subnet

子網的名稱或標識碼。 如果提供名稱,則必須提供 --vnet-name

--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「清除現有的標記」。

--type -t

應用程式類型。

接受的值: CustomApplication, RServer
預設值: CustomApplication
--vnet-name

虛擬網路的名稱。

全域參數
--debug

增加記錄詳細信息以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 針對完整偵錯記錄使用 --debug。

az hdinsight application delete

刪除 HDInsight 叢集上的指定應用程式。

az hdinsight application delete --cluster-name
                                --name
                                --resource-group
                                [--no-wait]
                                [--yes]

必要參數

--cluster-name

叢集的名稱。

--name -n

應用程式名稱的常數值。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

選擇性參數

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--yes -y

請勿提示確認。

預設值: False
全域參數
--debug

增加記錄詳細信息以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 針對完整偵錯記錄使用 --debug。

az hdinsight application list

列出 HDInsight 叢集的所有應用程式。

az hdinsight application list --cluster-name
                              --resource-group

必要參數

--cluster-name

叢集的名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

全域參數
--debug

增加記錄詳細信息以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 針對完整偵錯記錄使用 --debug。

az hdinsight application show

取得指定之應用程式的屬性。

az hdinsight application show --cluster-name
                              --name
                              --resource-group

必要參數

--cluster-name

叢集的名稱。

--name -n

應用程式名稱的常數值。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

全域參數
--debug

增加記錄詳細信息以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 針對完整偵錯記錄使用 --debug。

az hdinsight application wait

將 CLI 置於等候狀態,直到作業完成為止。

az hdinsight application wait --cluster-name
                              --name
                              --resource-group
                              [--created]
                              [--custom]
                              [--deleted]
                              [--exists]
                              [--interval]
                              [--timeout]
                              [--updated]

必要參數

--cluster-name

叢集的名稱。

--name -n

應用程式名稱的常數值。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

選擇性參數

--created

請等候在 'Succeeded' 使用 'provisioningState' 建立。

預設值: False
--custom

等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--interval

輪詢間隔以秒為單位。

預設值: 30
--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

預設值: False
全域參數
--debug

增加記錄詳細信息以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 針對完整偵錯記錄使用 --debug。