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
 

Get-AzureHDInsightJobOutput

Get-AzureHDInsightJobOutput

microsoft.windowsazure.commands.hdinsight.dll

Synopsis

Retrieves the log output for a job from the storage account associated with a specified cluster.

Syntax

Get-AzureHDInsightJobOutput [-Certificate] [-HostedService] [-Cluster] [-DownloadTaskLogs] [-Endpoint] [-JobId] [-StandardError] [-StandardOutput] [-Subscription] [-TaskLogsDirectory] [-TaskSummary] [<CommonParameters>]

Detailed Description

Retrieves various types of job logs including Standard Output, Standard Error, Task logs, and a summary of the task logs.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

-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

-Cluster <String>

Name of the cluster that ran the jobs that are being retrieved.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

-DownloadTaskLogs <SwitchParameter>

Switch used to retrieve the task logs for the job.

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

-JobId <String>

The Id of a specific job to be retrieved.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

-StandardError <SwitchParameter>

Switch used to retrieve the StdErr output of the job.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-StandardOutput <SwitchParameter>

Switch used to retrieve the SdtOut output of the job.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Subscription <String>

The subscription containing the HDInsight clusters to retrieve.

Aliases

None

Required?

false

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-TaskLogsDirectory <String>

When DownloadTaksLogs switch is used this parameter specifies destination local folder where tasks logs will be downloaded.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-TaskSummary <SwitchParameter>

Switch used to retrieve task log summary

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Get Job Output --------------------------

Retrieve the output from an HDInsight job.

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