New-AzHDInsightSqoopJobDefinition
建立 Sqoop 作業物件。
語法
New-AzHDInsightSqoopJobDefinition
[-Files <String[]>]
[-StatusFolder <String>]
[-File <String>]
[-Command <String>]
[-LibDir <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
New-AzHDInsightSqoopJobDefinition Cmdlet 會定義 Sqoop 作業物件,以搭配 Azure HDInsight 叢集使用。
範例
範例 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
輸出
AzureHDInsightSqoopJobDefinition