共用方式為


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

必要參數

--cluster-name

叢集的名稱。

--name -n

應用程式名稱的常數值。

--resource-group -g

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

--script-action-name

腳本動作的名稱。

屬性
參數群組: Script Action Arguments
--script-uri

腳本的 URI。

屬性
參數群組: Script Action Arguments

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--access-mode

應用程式的存取模式。

屬性
參數群組: HTTPS Endpoint Arguments
預設值: WebPage
--destination-port

要連接的目的地埠。

屬性
參數群組: HTTPS Endpoint Arguments
預設值: 8080
--disable-gateway-auth

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

屬性
參數群組: HTTPS Endpoint Arguments
接受的值: false, true
--edgenode-size

節點的大小。 另請參閱: https://learn.microsoft.com/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size

屬性
參數群組: Node Arguments
預設值: Standard_D3_V2
--marketplace-id

市集標識碼。

--no-validation-timeout

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

屬性
預設值: False
--script-parameters

腳本的參數。

屬性
參數群組: Script Action Arguments
--ssh-password -P

叢集節點的 SSH 密碼。

屬性
參數群組: SSH Arguments
--ssh-public-key -K

叢集節點的 SSH 公鑰。

屬性
參數群組: SSH Arguments
--ssh-user -U

叢集節點的 SSH 用戶名稱。

屬性
參數群組: SSH Arguments
預設值: sshuser
--sub-domain-suffix

應用程式的子域後綴。

屬性
參數群組: HTTPS Endpoint Arguments
--subnet

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

屬性
參數群組: Network Arguments
--tags

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

--type -t

應用程式類型。

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

虛擬網路的名稱。

屬性
參數群組: Network Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

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

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az hdinsight application list

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

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

必要參數

--cluster-name

叢集的名稱。

--resource-group -g

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

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

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

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

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' 建立。

屬性
參數群組: Wait Condition Arguments
預設值: False
--custom

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

屬性
參數群組: Wait Condition Arguments
--deleted

等到刪除為止。

屬性
參數群組: Wait Condition Arguments
預設值: False
--exists

等候資源存在。

屬性
參數群組: Wait Condition Arguments
預設值: False
--interval

輪詢間隔以秒為單位。

屬性
參數群組: Wait Condition Arguments
預設值: 30
--timeout

以秒為單位的等候上限。

屬性
參數群組: Wait Condition Arguments
預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

屬性
參數群組: Wait Condition Arguments
預設值: False
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False