< Back

Get-AzureRmHDInsightJobOutput

Tue Jan 29, 2019 9:47 pm

NAME Get-AzureRmHDInsightJobOutput



SYNOPSIS

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





SYNTAX

Get-AzureRmHDInsightJobOutput [-ClusterName] <String> [-JobId] <String> [[-DefaultContainer] <String>] [[-DefaultStorageAccountName] <String>]

[[-DefaultStorageAccountKey] <String>] [-HttpCredential] <PSCredential> [-DefaultProfile <IAzureContextContainer>] [-DisplayOutputType

{StandardOutput | StandardError}] [-ResourceGroupName <String>] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmHDInsightJobOutput cmdlet gets the log output for a job from the Storage account associated with 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



-DefaultContainer <String>

Specifies the default container name.



Required? false

Position? 2

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



-DefaultStorageAccountKey <String>

Specifies the default Storage account key.



Required? false

Position? 4

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultStorageAccountName <String>

Specifies the default Storage account name.



Required? false

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DisplayOutputType <JobDisplayOutputType>

Specifies the job output type being requested. The acceptable values for this parameter are:



- StandardOutput



- StandardError



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

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-JobId <String>

Specifies the job ID of the job whose output will be fetched.



Required? true

Position? 1

Default value None

Accept pipeline input? False

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

None

This cmdlet does not accept any input.





OUTPUTS

System.String







NOTES









Example 1: Get the log output for a job



PS C:\\># Cluster info

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

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



# Hive job details

PS C:\\> $statusFolder = "<status folder>"

PS C:\\> $query = "<query here>"



PS C:\\> New-AzureRmHDInsightHiveJobDefinition -StatusFolder $statusFolder `

-Query $query `

| Start-AzureRmHDInsightJob `

-ClusterName $clusterName `

-ClusterCredential $clusterCreds `

| Get-AzureRmHDInsightJobOutput `

-ClusterName $clusterName `

-ClusterCredential $clusterCreds



This command gets the log output from the cluster named your-hadoop-001.







RELATED LINKS

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

New-AzureRmHDInsightHiveJobDefinition

Start-AzureRmHDInsightJob