你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzHDInsightSqoopJobDefinition
创建 Sqoop 作业对象。
语法
New-AzHDInsightSqoopJobDefinition
[-Files <String[]>]
[-StatusFolder <String>]
[-File <String>]
[-Command <String>]
[-LibDir <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
New-AzHDInsightSqoopJobDefinition cmdlet 定义用于 Azure HDInsight 群集的 Sqoop 作业对象。
示例
示例 1:创建 Sqoop 作业定义
# Cluster info
$clusterName = "your-hadoop-001"
$clusterCreds = Get-Credential
New-AzHDInsightSqoopJobDefinition -StatusFolder $statusFolder `
-Command $sqoopCommand `
| Start-AzHDInsightJob -ClusterName $clusterName `
-ClusterCredential $clusterCreds
此命令创建 Sqoop 作业定义。
参数
-Command
指定 Sqoop 命令。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-File
指定要运行的查询的文件的路径。 该文件必须在与群集关联的存储帐户上可用。 可以使用此参数而不是 Query 参数。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Files
指定与 Hive 作业关联的文件的集合。
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-LibDir
指定 Sqoop 作业的库目录。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-StatusFolder
指定包含作业的标准输出和错误输出的文件夹的位置。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
None