New-AzureRmHDInsightSqoopJobDefinition

New-AzureRmHDInsightSqoopJobDefinition

Updated: November 4, 2015

Applies To: Azure PowerShell 1.0

New-AzureRmHDInsightSqoopJobDefinition

Creates a Sqoop job object.

Syntax

Parameter Set: Default
New-AzureRmHDInsightSqoopJobDefinition [-Command <String> ] [-File <String> ] [-Files <String[]> ] [-LibDir <String> ] [-StatusFolder <String> ] [ <CommonParameters>]




Detailed Description

The New-AzureRmHDInsightSqoopJobDefinition cmdlet defines a Sqoop job object for use with an Azure HDInsight cluster.

Parameters

-Command<String>

Specifies the Sqoop command.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-File<String>

Specifies the path to a file that contains the query to run. The file must be available on the Storage account associated with the cluster. You can use this parameter instead of the Query parameter.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Files<String[]>

Specifies a collection of files that are associated with a Hive job.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-LibDir<String>

Specifies the library directory for the Sqoop job.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StatusFolder<String>

Specifies the location of the folder that contains standard outputs and error outputs for a job.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Create a Sqoop job definition

This command creates a Sqoop job definition.


PS C:\> # Cluster info
PS C:\>$clusterName = "your-hadoop-001"
PS C:\>$clusterCreds = Get-Credential

PS C:\>New-AzureRmHDInsightSqoopJobDefinition -StatusFolder $statusFolder `
            -Command $sqoopCommand `
        | Start-AzureRmHDInsightJob -ClusterName $clusterName `
            -ClusterCredential $clusterCreds

Related topics

Show:
© 2016 Microsoft