New-AzureHDInsightHiveJobDefinition

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

New-AzureHDInsightHiveJobDefinition

Defines a hive job for an Azure HDInsight service.

Syntax

Parameter Set: Default
New-AzureHDInsightHiveJobDefinition [-Arguments <String[]> ] [-Defines <Hashtable> ] [-File <String> ] [-Files <String[]> ] [-JobName <String> ] [-Query <String> ] [-StatusFolder <String> ] [ <CommonParameters>]

Detailed Description

Defines a hive job for an Azure HDInsight service.

This topic describes the cmdlet in the 0.8.1 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

-Arguments<String[]>

Arguments of the Hadoop job. The arguments will be passed as command line arguments to each task.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Defines<Hashtable>

Hadoop configuration values to be set during the job execution

Aliases

Params

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-File<String>

The path to a file that contains the query to be executed. Use this File parameter in place of a query parameter.

Aliases

QueryFile

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Files<String[]>

A collection of files associated with the pig job.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobName<String>

The name of the Hive job being defined. If the name is not specified, it is "Hive: <first 100 characters of Query>" by default.

Aliases

Name

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Query<String>

The Hive query to be executed by the Hive job defined.

Aliases

QueryText

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StatusFolder<String>

Contains the standard and error outputs for the job, including its exit code and task logs.

Aliases

none

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, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

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

Create a Hive job definition

Define a hive job for an Azure HDInsight service.

PS C:\> $hiveJobDefinition = New-AzureHDInsightHiveJobDefinition -Query $queryString