< Back

Stop-AzureRmHDInsightJob

Tue Jan 29, 2019 9:48 pm

NAME Stop-AzureRmHDInsightJob



SYNOPSIS

Stops a specified running job on a cluster.





SYNTAX

Stop-AzureRmHDInsightJob [-ClusterName] <String> [-JobId] <String> [-HttpCredential] <PSCredential> [-DefaultProfile <IAzureContextContainer>]

[-ResourceGroupName <String>] [<CommonParameters>]





DESCRIPTION

The Stop-AzureRmHDInsightJob cmdlet stops a specified running job on an Azure HDInsight cluster.





PARAMETERS

-ClusterName <String>

Specifies the name of the cluster.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-HttpCredential <PSCredential>

Specifies the cluster login (HTTP) credentials for the cluster.



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-JobId <String>

Specifies the job ID of the job.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

String

Parameter 'JobId' accepts value of type 'String' from the pipeline





OUTPUTS

Microsoft.Azure.Commands.HDInsight.Models.AzureHDInsightJob







NOTES









Example 1: Stop a job on the specified cluster



PS C:\\># Cluster info

PS C:\\> $clusterName = "your-hadoop-001"

PS C:\\> $clusterCreds = Get-Credential

PS C:\\> Stop-AzureRmHDInsightJob `

-ClusterName $clusterName `

-ClusterCredential $clusterCreds `

-JobId $jobId



This command stops a job on the cluster named your-hadoop-001.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... insightjob

Get-AzureRmHDInsightJob

Start-AzureRmHDInsightJob

Wait-AzureRmHDInsightJob