你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az hdinsight application

管理 HDInsight 应用程序。

命令

名称 说明 类型 状态
az hdinsight application create

为 HDInsight 群集创建应用程序。

核心 GA
az hdinsight application delete

删除 HDInsight 群集上的指定应用程序。

核心 GA
az hdinsight application list

列出 HDInsight 群集的所有应用程序。

核心 GA
az hdinsight application show

获取指定应用程序的属性。

核心 GA
az hdinsight application wait

将 CLI 置于等待状态,直到操作完成。

核心 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-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

子网的名称或 ID。 如果提供名称, --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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。