Use-AzHDInsightCluster
選取要與 Invoke-RmAzureHDInsightHiveJob Cmdlet 搭配使用的叢集。
語法
Use-AzHDInsightCluster
[-ClusterName] <String>
[-HttpCredential] <PSCredential>
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Use-AzHDInsightCluster Cmdlet 會選取 Azure HDInsight 叢集,讓 Invoke-AzHDInsightHiveJob Cmdlet 用來提交 Hive 作業。
範例
範例 1:選取 Hive 查詢提交的叢集
# Cluster info
$clusterName = "your-hadoop-001"
$clusterCreds = Get-Credential
Use-AzHDInsightCluster `
-ClusterName $clusterName `
-ClusterCredential $clusterCreds
此命令會選取Hive查詢提交的叢集。
參數
-ClusterName
指定叢集的名稱。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-HttpCredential
指定叢集的叢集登入 (HTTP) 認證。
類型: | PSCredential |
別名: | ClusterCredential |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
指定資源群組的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None