< Back
Start-AzureRmHDInsightJob
Post
NAME Start-AzureRmHDInsightJob
SYNOPSIS
Starts a defined Azure HDInsight job on a specified cluster.
SYNTAX
Start-AzureRmHDInsightJob [-ClusterName] <String> [-JobDefinition] <AzureHDInsightJobDefinition> [-HttpCredential] <PSCredential> [-DefaultProfile
<IAzureContextContainer>] [-ResourceGroupName <String>] [<CommonParameters>]
DESCRIPTION
The Start-AzureRMHDInsightJob cmdlet starts a defined Azure HDInsight job on a specified cluster. This can be a MapReduce job, a Streaming
MapReduce job, a Hive job, or a Pig job.
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
-JobDefinition <AzureHDInsightJobDefinition>
Specifies the job to start on the Azure HDInsight cluster.
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
AzureHDInsightJobDefinition
Parameter 'JobDefinition' accepts value of type 'AzureHDInsightJobDefinition' from the pipeline
OUTPUTS
Microsoft.Azure.Commands.HDInsight.Models.AzureHDInsightJob
NOTES
Example 1: Start a job on the specified cluster
PS C:\\># Cluster info
PS C:\\> $clusterName = "your-hadoop-001"
PS C:\\> $clusterCreds = Get-Credential
# Hive job details
PS C:\\> $statusFolder = "tempStatusFolder/"
PS C:\\> $query = "SHOW TABLES"
PS C:\\> New-AzureRmHDInsightHiveJobDefinition -StatusFolder $statusFolder `
-Query $query `
| Start-AzureRmHDInsightJob `
-ClusterName $clusterName `
-ClusterCredential $clusterCreds
This command starts a job on the cluster named your-hadoop-001.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... insightjob
Get-AzureRmHDInsightJob
New-AzureRmHDInsightHiveJobDefinition
Stop-AzureRmHDInsightJob
Wait-AzureRmHDInsightJob
SYNOPSIS
Starts a defined Azure HDInsight job on a specified cluster.
SYNTAX
Start-AzureRmHDInsightJob [-ClusterName] <String> [-JobDefinition] <AzureHDInsightJobDefinition> [-HttpCredential] <PSCredential> [-DefaultProfile
<IAzureContextContainer>] [-ResourceGroupName <String>] [<CommonParameters>]
DESCRIPTION
The Start-AzureRMHDInsightJob cmdlet starts a defined Azure HDInsight job on a specified cluster. This can be a MapReduce job, a Streaming
MapReduce job, a Hive job, or a Pig job.
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
-JobDefinition <AzureHDInsightJobDefinition>
Specifies the job to start on the Azure HDInsight cluster.
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
AzureHDInsightJobDefinition
Parameter 'JobDefinition' accepts value of type 'AzureHDInsightJobDefinition' from the pipeline
OUTPUTS
Microsoft.Azure.Commands.HDInsight.Models.AzureHDInsightJob
NOTES
Example 1: Start a job on the specified cluster
PS C:\\># Cluster info
PS C:\\> $clusterName = "your-hadoop-001"
PS C:\\> $clusterCreds = Get-Credential
# Hive job details
PS C:\\> $statusFolder = "tempStatusFolder/"
PS C:\\> $query = "SHOW TABLES"
PS C:\\> New-AzureRmHDInsightHiveJobDefinition -StatusFolder $statusFolder `
-Query $query `
| Start-AzureRmHDInsightJob `
-ClusterName $clusterName `
-ClusterCredential $clusterCreds
This command starts a job on the cluster named your-hadoop-001.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... insightjob
Get-AzureRmHDInsightJob
New-AzureRmHDInsightHiveJobDefinition
Stop-AzureRmHDInsightJob
Wait-AzureRmHDInsightJob