az hdinsight
管理 HDInsight 资源。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az hdinsight application |
管理 HDInsight 应用程序。 |
Core | GA |
| 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 autoscale |
管理 HDInsight 群集的自动缩放配置。 |
Core | GA |
| az hdinsight autoscale condition |
管理启用了基于计划的自动缩放的 HDInsight 群集的计划条件。 |
Core | GA |
| az hdinsight autoscale condition create |
添加新的计划条件。 |
Core | GA |
| az hdinsight autoscale condition delete |
删除计划条件。 |
Core | GA |
| az hdinsight autoscale condition list |
列出所有计划条件。 |
Core | GA |
| az hdinsight autoscale condition update |
更新计划条件。 |
Core | GA |
| az hdinsight autoscale condition wait |
将 CLI 置于等待状态,直到操作完成。 |
Core | GA |
| az hdinsight autoscale create |
为正在运行的群集启用自动缩放。 |
Core | GA |
| az hdinsight autoscale delete |
为正在运行的群集禁用自动缩放。 |
Core | GA |
| az hdinsight autoscale list-timezones |
列出启用基于计划的自动缩放时可用的时区名称。 |
Core | GA |
| az hdinsight autoscale show |
获取指定群集的自动缩放配置。 |
Core | GA |
| az hdinsight autoscale update |
更新自动缩放配置。 |
Core | GA |
| az hdinsight autoscale wait |
将 CLI 置于等待状态,直到操作完成。 |
Core | GA |
| az hdinsight azure-monitor |
管理 HDInsight 群集上的 Azure Monitor 日志集成。 |
Core | GA |
| az hdinsight azure-monitor-agent |
管理 HDInsight 群集上的 Azure Monitor 代理日志集成。 |
Core | GA |
| az hdinsight azure-monitor-agent disable |
禁用 HDInsight 群集上的 Azure Monitor 代理日志集成。 |
Core | GA |
| az hdinsight azure-monitor-agent enable |
在 HDInsight 群集上启用 Azure Monitor 代理日志集成。 |
Core | GA |
| az hdinsight azure-monitor-agent show |
获取 HDInsight 群集上的 Azure Monitor 代理日志集成的状态。 |
Core | GA |
| az hdinsight azure-monitor disable |
禁用 HDInsight 群集上的 Azure Monitor 日志集成。 |
Core | GA |
| az hdinsight azure-monitor enable |
在 HDInsight 群集上启用 Azure Monitor 日志集成。 |
Core | GA |
| az hdinsight azure-monitor show |
获取 HDInsight 群集上的 Azure Monitor 日志集成的状态。 |
Core | GA |
| az hdinsight create |
创建新群集。 |
Core | GA |
| az hdinsight delete |
删除指定的 HDInsight 群集。 |
Core | GA |
| az hdinsight host |
管理 HDInsight 群集的虚拟主机。 |
Core | GA |
| az hdinsight host list |
列出指定 HDInsight 群集的主机。 |
Core | GA |
| az hdinsight host restart |
重启指定 HDInsight 群集的特定主机。 |
Core | GA |
| az hdinsight list |
列出资源组或订阅中的 HDInsight 群集。 |
Core | GA |
| az hdinsight list-usage |
列出指定位置的用法。 |
Core | GA |
| az hdinsight monitor |
管理 HDInsight 群集上的经典 Azure Monitor 日志集成。 |
Core | GA |
| az hdinsight monitor disable |
禁用 HDInsight 群集上的经典 Azure Monitor 日志集成。 |
Core | GA |
| az hdinsight monitor enable |
在 HDInsight 群集上启用经典 Azure Monitor 日志集成。 |
Core | GA |
| az hdinsight monitor show |
获取 HDInsight 群集上的经典 Azure Monitor 日志集成的状态。 |
Core | GA |
| az hdinsight resize |
将指定的 HDInsight 群集调整为指定大小。 |
Core | GA |
| az hdinsight rotate-disk-encryption-key |
轮换指定的 HDInsight 群集的磁盘加密密钥。 |
Core | GA |
| az hdinsight script-action |
管理 HDInsight 脚本操作。 |
Core | GA |
| az hdinsight script-action delete |
删除群集的指定持久化脚本作。 |
Core | GA |
| az hdinsight script-action execute |
在指定的 HDInsight 群集上执行脚本操作。 |
Core | GA |
| az hdinsight script-action list |
列出指定群集的所有持久化脚本作。 |
Core | GA |
| az hdinsight script-action list-execution-history |
列出指定群集的所有脚本执行历史记录。 |
Core | GA |
| az hdinsight script-action promote |
将指定的即席脚本执行提升为持久化脚本。 |
Core | GA |
| az hdinsight script-action show-execution-details |
获取给定脚本执行 ID 的脚本执行详细信息。 |
Core | GA |
| az hdinsight show |
获取指定的群集。 |
Core | GA |
| az hdinsight update |
更新指定 HDInsight 群集的标记或标识。 设置标识属性将替代群集的现有标识配置。 |
Core | GA |
| az hdinsight wait |
将 CLI 置于等待状态,直到操作完成。 |
Core | GA |
az hdinsight create
创建新群集。
az hdinsight create --name
--resource-group
--type
[--assign-identity]
[--autoscale-count --autoscale-workernode-count]
[--autoscale-max-count --autoscale-max-workernode-count]
[--autoscale-min-count --autoscale-min-workernode-count]
[--autoscale-type {Load, Schedule}]
[--cluster-admin-account]
[--cluster-admin-password]
[--cluster-configurations]
[--cluster-tier {Premium, Standard}]
[--cluster-users-group-dns]
[--component-version]
[--compute-isolation --enable-compute-isolation {false, true}]
[--days {Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday}]
[--domain]
[--edgenode-size]
[--enable-private-link {false, true}]
[--encryption-algorithm {RSA-OAEP, RSA-OAEP-256, RSA1_5}]
[--encryption-at-host {false, true}]
[--encryption-in-transit {false, true}]
[--encryption-key-name]
[--encryption-key-version]
[--encryption-vault-uri]
[--esp]
[--headnode-size]
[--host-sku]
[--http-password]
[--http-user]
[--idbroker]
[--kafka-client-group-id]
[--kafka-client-group-name]
[--kafka-management-node-count]
[--kafka-management-node-size]
[--ldaps-urls]
[--location]
[--minimal-tls-version {1.2}]
[--no-validation-timeout]
[--no-wait]
[--outbound-dependencies-managed-type --outbound-managed-type {External, Managed}]
[--private-link-config --private-link-configurations]
[--public-ip-tag-type]
[--public-ip-tag-value]
[--resource-provider-connection --rp-connection {Inbound, Outbound}]
[--ssh-password]
[--ssh-public-key]
[--ssh-user]
[--storage-account]
[--storage-account-key]
[--storage-account-managed-identity]
[--storage-container]
[--storage-filesystem]
[--subnet]
[--tags]
[--time]
[--timezone]
[--version]
[--vnet-name]
[--workernode-count]
[--workernode-data-disk-size]
[--workernode-data-disk-storage-account-type {premium_lrs, standard_lrs}]
[--workernode-data-disks-per-node]
[--workernode-size]
[--zones]
[--zookeepernode-size]
示例
使用现有存储帐户创建群集。
az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount
使用最低 tls 版本创建群集。
az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount --minimal-tls-version 1.2
创建启用传输中加密的群集。
az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount --encryption-in-transit true
在主机上创建具有加密的群集。
az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount --encryption-at-host true
使用企业安全性套餐(ESP)创建群集。
az hdinsight create --esp -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount \
--subnet "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyRG/providers/Microsoft.Network/virtualNetworks/MyVnet/subnets/subnet1" \
--domain "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyRG/providers/Microsoft.AAD/domainServices/MyDomain.onmicrosoft.com" \
--assign-identity "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MyMsiRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MyMSI" \
--cluster-admin-account MyAdminAccount@MyDomain.onmicrosoft.com \
--cluster-users-group-dns MyGroup
使用企业安全性套餐(ESP)创建群集并启用 HDInsight ID Broker。
az hdinsight create --esp --idbroker -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount \
--subnet "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyRG/providers/Microsoft.Network/virtualNetworks/MyVnet/subnets/subnet1" \
--domain "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyRG/providers/Microsoft.AAD/domainServices/MyDomain.onmicrosoft.com" \
--assign-identity "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MyMsiRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MyMSI" \
--cluster-admin-account MyAdminAccount@MyDomain.onmicrosoft.com \
--cluster-users-group-dns MyGroup
使用磁盘加密创建 Kafka 群集。 请参见https://free.blessedness.top/azure/hdinsight/kafka/apache-kafka-byok.
az hdinsight create -t kafka -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --workernode-data-disks-per-node 2 \
--storage-account MyStorageAccount \
--encryption-key-name kafkaClusterKey \
--encryption-key-version 00000000000000000000000000000000 \
--encryption-vault-uri https://MyKeyVault.vault.azure.net \
--assign-identity MyMSI
使用 kafka rest 代理创建 kafka 群集。
az hdinsight create -t kafka -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --workernode-data-disks-per-node 2 \
--storage-account MyStorageAccount \
--kafka-management-node-size "Standard_D4_v2" \
--kafka-client-group-id MySecurityGroupId \
--kafka-client-group-name MySecurityGroupName
--component-version kafka=2.1
创建包含 Azure Data Lake Storage Gen2 的群集
az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount \
--storage-account-managed-identity MyMSI
使用 JSON 字符串配置创建群集。
az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount \
--cluster-configuration {'gateway':{'restAuthCredential.username':'admin'}}
从本地文件创建配置群集。
az hdinsight create -t spark -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" \
--storage-account MyStorageAccount \
--cluster-configuration @config.json
创建基于负载的自动缩放的群集。
az hdinsight create -t spark --version 3.6 -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --storage-account MyStorageAccount \
--autoscale-type Load --autoscale-min-workernode-count 3 --autoscale-max-workernode-count 5
创建基于计划的自动缩放的群集。
az hdinsight create -t spark --version 3.6 -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --storage-account MyStorageAccount \
--autoscale-type Schedule --timezone "Pacific Standard Time" --days Monday \
--time 09:00 --autoscale-workernode-count 5
使用中继出站和专用链接功能创建群集。
az hdinsight create -t spark --version 3.6 -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --storage-account MyStorageAccount \
--subnet "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/fakevnet/subnets/default" \
--resource-provider-connection Outbound --enable-private-link
创建具有计算隔离功能的群集。
az hdinsight create -t spark --version 3.6 -g MyResourceGroup -n MyCluster \
-p "HttpPassword1234!" --storage-account MyStorageAccount \
--enable-compute-isolation --workernode-size "Standard_E8S_V3" --headnode-size "Standard_E8S_V3"
必需参数
群集的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
HDInsight 群集的类型,例如:hadoop、interactivehive、hbase、kafka、storm、spark、rserver、mlservices。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#cluster-types。
| 属性 | 值 |
|---|---|
| Parameter group: | Cluster Arguments |
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
用户分配标识的名称或 ID。 当assign_identity_type为 SystemAssigned 时跳过此字段。
| 属性 | 值 |
|---|---|
| Parameter group: | Managed Service Identity Arguments |
计划的辅助节点计数。
| 属性 | 值 |
|---|---|
| Parameter group: | Autoscale Configuration Arguments |
基于负载的 atuoscale 的最大辅助节点计数。
| 属性 | 值 |
|---|---|
| Parameter group: | Autoscale Configuration Arguments |
基于负载的 atuoscale 的最小辅助节点计数。
| 属性 | 值 |
|---|---|
| Parameter group: | Autoscale Configuration Arguments |
自动缩放类型。
| 属性 | 值 |
|---|---|
| Parameter group: | Autoscale Configuration Arguments |
| 接受的值: | Load, Schedule |
将在群集上具有管理员权限的域用户帐户。 仅当创建具有企业安全性包的群集时才是必需的。
| 属性 | 值 |
|---|---|
| Parameter group: | Domain Service Arguments |
域管理员密码。 仅当创建具有企业安全性包的群集时才是必需的。
| 属性 | 值 |
|---|---|
| Parameter group: | Domain Service Arguments |
各种组件的额外配置。 可以使用语法或 JSON 字符串从文件 @{path} 提供配置。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-customize-cluster-bootstrap。
| 属性 | 值 |
|---|---|
| Parameter group: | Cluster Arguments |
群集的层。
| 属性 | 值 |
|---|---|
| Parameter group: | Cluster Arguments |
| 接受的值: | Premium, Standard |
群集用户组的可分辨名称的空格分隔列表。 仅当创建具有企业安全性包的群集时才是必需的。
| 属性 | 值 |
|---|---|
| Parameter group: | Domain Service Arguments |
各种 Hadoop 组件的版本,采用“component=version”格式的空格分隔版本。 示例:Spark=2.0 Hadoop=2.7.3 另请参阅: https://free.blessedness.top/azure/hdinsight/hdinsight-component-versioning#hadoop-components-available-with-different-hdinsight-versions
| 属性 | 值 |
|---|---|
| Parameter group: | Cluster Arguments |
指示是否启用计算隔离。
| 属性 | 值 |
|---|---|
| Parameter group: | Compute Isolation Arguments |
| 接受的值: | false, true |
以空格分隔的计划日期列表。
| 属性 | 值 |
|---|---|
| Parameter group: | Autoscale Configuration Arguments |
| 接受的值: | Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday |
用户的 Azure Active Directory 域 服务的名称或资源 ID。 仅当创建具有企业安全性包的群集时才是必需的。
| 属性 | 值 |
|---|---|
| Parameter group: | Domain Service Arguments |
节点的大小。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size。
| 属性 | 值 |
|---|---|
| Parameter group: | Node Arguments |
指示是否启用专用链接。
| 属性 | 值 |
|---|---|
| Parameter group: | Private Link Arguments |
| 接受的值: | false, true |
加密的算法标识符。
| 属性 | 值 |
|---|---|
| Parameter group: | Customer Managed Key Arguments |
| 默认值: | RSA-OAEP |
| 接受的值: | RSA-OAEP, RSA-OAEP-256, RSA1_5 |
指示是否在主机上启用加密。
| 属性 | 值 |
|---|---|
| Parameter group: | Encryption At Host Arguments |
| 接受的值: | false, true |
指示是否在传输中启用加密。
| 属性 | 值 |
|---|---|
| Parameter group: | Encryption In Transit Arguments |
| 接受的值: | false, true |
用于启用磁盘加密的密钥名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Customer Managed Key Arguments |
用于启用磁盘加密的密钥版本。
| 属性 | 值 |
|---|---|
| Parameter group: | Customer Managed Key Arguments |
客户密钥所在的基密钥库 URI,例如。
https://myvault.vault.azure.net。
| 属性 | 值 |
|---|---|
| Parameter group: | Customer Managed Key Arguments |
指定使用企业安全性套餐创建群集。 如果省略,则不允许创建具有企业安全性包的群集。
| 属性 | 值 |
|---|---|
| Parameter group: | Cluster Arguments |
| 默认值: | False |
节点的大小。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size。
| 属性 | 值 |
|---|---|
| Parameter group: | Node Arguments |
计算隔离的专用主机 SKU。
| 属性 | 值 |
|---|---|
| Parameter group: | Compute Isolation Arguments |
群集的 HTTP 密码。 如果未提供,将提示。
| 属性 | 值 |
|---|---|
| Parameter group: | HTTP Arguments |
群集的 HTTP 用户名。 默认值:管理员。
| 属性 | 值 |
|---|---|
| Parameter group: | HTTP Arguments |
指定使用 HDInsight ID Broker 创建 ESP 群集。 如果省略,则不允许使用 HDInsight ID Broker 创建 ESP 群集。
| 属性 | 值 |
|---|---|
| Parameter group: | Cluster Arguments |
| 默认值: | False |
Kafka Rest 代理的客户端 AAD 安全组 ID。
| 属性 | 值 |
|---|---|
| Parameter group: | Kafka Rest Proxy Arguments |
Kafka REST 代理的客户端 AAD 安全组名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Kafka Rest Proxy Arguments |
群集中的 kafka 管理节点数。
| 属性 | 值 |
|---|---|
| Parameter group: | Node Arguments |
| 默认值: | 2 |
节点的大小。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size。
| 属性 | 值 |
|---|---|
| Parameter group: | Node Arguments |
用于与 Active Directory 通信的 LDAPS 协议 URL 的空格分隔列表。 仅当创建具有企业安全性包的群集时才是必需的。
| 属性 | 值 |
|---|---|
| Parameter group: | Domain Service Arguments |
Location.
az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。
支持的最低 TLS 版本。
| 属性 | 值 |
|---|---|
| Parameter group: | Cluster Arguments |
| 接受的值: | 1.2 |
允许在参数验证阶段出现超时错误。 如果省略,将允许验证超时错误。
| 属性 | 值 |
|---|---|
| 默认值: | False |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
资源提供程序连接的方向。
| 属性 | 值 |
|---|---|
| Parameter group: | Private Link Arguments |
| 接受的值: | External, Managed |
创建群集时专用链接配置。 专用链接配置可以使用语法或 JSON 字符串从文件@{path}提供。 有关详细信息,请参阅 https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/hdinsight/tests/latest/privatelinkconfigurations.json。
| 属性 | 值 |
|---|---|
| Parameter group: | Private Link Arguments |
获取或设置 ipTag 类型:示例 FirstPartyUsage。
| 属性 | 值 |
|---|---|
| Parameter group: | Private Link Arguments |
获取或设置与公共 IP 关联的 IpTag 的值。HDInsight、SQL、存储等示例
| 属性 | 值 |
|---|---|
| Parameter group: | Private Link Arguments |
资源提供程序连接类型。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource provider connection Arguments |
| 接受的值: | Inbound, Outbound |
群集节点的 SSH 密码。 如果未指定,请使用 HTTP 密码。
| 属性 | 值 |
|---|---|
| Parameter group: | SSH Arguments |
群集节点的 SSH 公钥。
| 属性 | 值 |
|---|---|
| Parameter group: | SSH Arguments |
群集节点的 SSH 用户名。
| 属性 | 值 |
|---|---|
| Parameter group: | SSH Arguments |
| 默认值: | sshuser |
存储帐户的名称或 ID。
| 属性 | 值 |
|---|---|
| Parameter group: | Storage Arguments |
存储帐户密钥。 如果用户有权访问存储帐户,则可以自动检索密钥。
| 属性 | 值 |
|---|---|
| Parameter group: | Storage Arguments |
具有存储帐户文件系统访问权限的用户分配托管标识。 仅当存储帐户类型为 Azure Data Lake Storage Gen2 时才需要。
| 属性 | 值 |
|---|---|
| Parameter group: | Storage Arguments |
群集将使用的存储容器。 如果未指定群集名称,则使用群集名称。 (仅 WASB)。
| 属性 | 值 |
|---|---|
| Parameter group: | Storage Arguments |
群集将使用的存储文件系统。 如果未指定群集名称,则使用群集名称。 (仅限 DFS)。
| 属性 | 值 |
|---|---|
| Parameter group: | Storage Arguments |
子网的名称或 ID。 如果提供名称, --vnet-name 则必须提供。
| 属性 | 值 |
|---|---|
| Parameter group: | Network Arguments |
空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。
以 xx:xx 为单位的 24 小时时间。
| 属性 | 值 |
|---|---|
| Parameter group: | Autoscale Configuration Arguments |
计划自动缩放类型的时区。 来自 az hdinsight autoscale list-timezones. 的值
| 属性 | 值 |
|---|---|
| Parameter group: | Autoscale Configuration Arguments |
HDInsight 群集版本。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-component-versioning#supported-hdinsight-versions。
| 属性 | 值 |
|---|---|
| Parameter group: | Cluster Arguments |
| 默认值: | default |
虚拟网络的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Network Arguments |
群集中的工作器节点数。
| 属性 | 值 |
|---|---|
| Parameter group: | Node Arguments |
| 默认值: | 3 |
数据磁盘的大小(以 GB 为单位,例如 1023)。
| 属性 | 值 |
|---|---|
| Parameter group: | Node Arguments |
将用于数据磁盘的存储帐户类型:standard_lrs或premium_lrs。
| 属性 | 值 |
|---|---|
| Parameter group: | Node Arguments |
| 接受的值: | premium_lrs, standard_lrs |
每个工作器节点要使用的数据磁盘数。
| 属性 | 值 |
|---|---|
| Parameter group: | Node Arguments |
节点的大小。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size。
| 属性 | 值 |
|---|---|
| Parameter group: | Node Arguments |
将在其中创建群集的可用性区域的空间分隔列表。
| 属性 | 值 |
|---|---|
| Parameter group: | Availability Zone Arguments |
节点的大小。 另请参阅:https://free.blessedness.top/azure/hdinsight/hdinsight-hadoop-provision-linux-clusters#configure-cluster-size。
| 属性 | 值 |
|---|---|
| Parameter group: | Node Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az hdinsight delete
删除指定的 HDInsight 群集。
az hdinsight delete --name
--resource-group
[--no-wait]
[--yes]
必需参数
群集的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az hdinsight list
列出资源组或订阅中的 HDInsight 群集。
az hdinsight list [--resource-group]
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az hdinsight list-usage
列出指定位置的用法。
az hdinsight list-usage --location
必需参数
Location.
az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az hdinsight resize
将指定的 HDInsight 群集调整为指定大小。
az hdinsight resize --name
--resource-group
--workernode-count
[--no-wait]
示例
重设群集的工作节点大小。
az hdinsight resize --name MyCluster --resource-group rg --workernode-count 5
必需参数
群集的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
操作的目标工作器节点实例计数。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az hdinsight rotate-disk-encryption-key
轮换指定的 HDInsight 群集的磁盘加密密钥。
az hdinsight rotate-disk-encryption-key --encryption-key-name
--encryption-key-version
--encryption-vault-uri
--name
--resource-group
[--no-wait]
必需参数
用于启用磁盘加密的密钥名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Customer Managed Key Arguments |
用于启用磁盘加密的密钥版本。
| 属性 | 值 |
|---|---|
| Parameter group: | Customer Managed Key Arguments |
客户密钥所在的基密钥库 URI,例如。
https://myvault.vault.azure.net。
| 属性 | 值 |
|---|---|
| Parameter group: | Customer Managed Key Arguments |
群集的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az hdinsight show
获取指定的群集。
az hdinsight show --name
--resource-group
必需参数
群集的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az hdinsight update
更新指定 HDInsight 群集的标记或标识。 设置标识属性将替代群集的现有标识配置。
az hdinsight update --name
--resource-group
[--assign-identity]
[--assign-identity-type]
[--no-wait]
[--tags]
示例
更新标记。
az hdinsight update --name MyCluster --resource-group rg --tags key=value
使用单个 UserAssigned msi 更新管理标识。
az hdinsight update --name MyCluster --resource-group rg --assign-identity-type UserAssigned --assign-identity MyMsi
使用多个 UserAssigned msi 更新管理标识。
az hdinsight update --name MyCluster --resource-group rg --assign-identity-type UserAssigned --assign-identity MyMsi1 MyMsi2
更新 SystemAssigned 管理标识。
az hdinsight update --name MyCluster --resource-group rg --assign-identity-type SystemAssigned
使用 SystemAssigned、UserAssigned msi 更新管理标识。
az hdinsight update --name MyCluster --resource-group rg --assign-identity-type "SystemAssigned,UserAssigned" --assign-identity MyMsi1
必需参数
群集的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
用户分配标识的名称或 ID。 当assign_identity_type为 SystemAssigned 时跳过此字段。
| 属性 | 值 |
|---|---|
| Parameter group: | Managed Service Identity Arguments |
用于群集的标识类型。 允许的值:None、SystemAssigned、SystemAssigned,UserAssigned、UserAssigned。
| 属性 | 值 |
|---|---|
| Parameter group: | Managed Service Identity Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az hdinsight wait
将 CLI 置于等待状态,直到操作完成。
az hdinsight wait --name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
必需参数
群集的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
等待在“Succeeded”中使用“provisioningState”创建。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
等到删除为止。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
等待资源存在。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
轮询间隔(以秒为单位)。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | 30 |
最大等待(以秒为单位)。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | 3600 |
等到 provisioningState 更新为“Succeeded”。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |