Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Wait-AzureHDInsightJob

Wait-AzureHDInsightJob

microsoft.windowsazure.commands.hdinsight.dll

Synopsis

Awaits the completion or failure of the HDInsight job and shows its progress.

Syntax

Wait-AzureHDInsightJob [-Credential] [-WaitTimeoutInSeconds] [<CommonParameters>]

Wait-AzureHDInsightJob [-Certificate] [-HostedService] [-Endpoint] [-Job] [-Subscription] [-WaitTimeoutInSeconds] [<CommonParameters>]

Wait-AzureHDInsightJob [-Cluster] [-Credential] [-JobId] [-WaitTimeoutInSeconds] [<CommonParameters>]

Wait-AzureHDInsightJob [-Credential] [-Job] [-WaitTimeoutInSeconds] [<CommonParameters>]

Detailed Description

Awaits the completion or failure of the HDInsight job and shows its progress.This topic describes the cmdlet in the .7.2 version of the Microsoft Azure PowerShell module. To find out the version of the module you're using, from the Azure PowerShell console, type (get-module azure).version.

Parameters

-Credential <PSCredential>

Cluster credentials used for direct HTTP access to the cluster. Can be used instead of Subscription parameter to authenticate access to the cluster.

Aliases

None

Required?

false

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-WaitTimeoutInSeconds <Double>

Timeout (in seconds) for the wait operation. When timeout expires the cmdlet finishes execution.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Certificate <X509Certificate2>

Management certificate of the Azure subscription.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-HostedService <String>

The namespace of the Azure HDInsight Service if it is different from the default.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Endpoint <Uri>

Specifies the endpoint to use when connecting to Microsoft Azure if the endpoint is different from the default.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Job <AzureHDInsightJob>

The HDInsight job running for which the script awaits.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Subscription <String>

The subscription that contains the HDInsight clusters to use

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Cluster <String>

The cluster running the job.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

-JobId <String>

The Id of the job running.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Wait for job completion --------------------------

Await the completion or failure of the HDInsight job for a specified interval of time.

PS C:\>$subid = (Get-AzureSubscription ???Current).SubscriptionId
          $clustername = ???yourcluster???
          $wordCountJob = New-AzureHDInsightMapReduceJobDefinition -JarFile "/example/apps/hadoop-examples.jar" -ClassName "wordcount" `
          -Defines @{ "mapred.map.tasks"="3" } -Arguments "/example/data/gutenberg/davinci.txt", "/example/output/WordCount"
          $wordCountJob `
          | Start-AzureHDInsightJob -Subscription $subid -Cluster $clustername `
          | Wait-AzureHDInsightJob -Subscription $subid -WaitTimeoutInSeconds 3600 `
          | Get-AzureHDInsightJobOutput -Cluster $clustername -Subscription $subid -StandardError

Online Version