你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Stop-AzHDInsightJob
停止群集上的指定正在运行的作业。
语法
Stop-AzHDInsightJob
[-ClusterName] <String>
[-JobId] <String>
[-HttpCredential] <PSCredential>
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Stop-AzHDInsightJob cmdlet 在 Azure HDInsight 群集上停止指定的正在运行的作业。
示例
示例 1:停止指定群集上的作业
# Cluster info
$clusterName = "your-hadoop-001"
$clusterCreds = Get-Credential
Stop-AzHDInsightJob `
-ClusterName $clusterName `
-ClusterCredential $clusterCreds `
-JobId $jobId
此命令在名为 your-hadoop-001 的群集上停止作业。
参数
-ClusterName
指定群集的名称。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-HttpCredential
指定群集的群集登录名 (HTTP) 凭据。
类型: | PSCredential |
别名: | ClusterCredential |
Position: | 2 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-JobId
指定作业的作业 ID。
类型: | String |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
指定资源组的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |