Add-AzHDInsightConfigValue
Menambahkan kustomisasi nilai konfigurasi Hadoop dan/atau kustomisasi pustaka bersama Apache Hive ke objek konfigurasi kluster.
Sintaks
Add-AzHDInsightConfigValue
[-Config] <AzureHDInsightConfig>
[-Core <Hashtable>]
[-HiveSite <Hashtable>]
[-HiveEnv <Hashtable>]
[-OozieSite <Hashtable>]
[-OozieEnv <Hashtable>]
[-WebHCat <Hashtable>]
[-HBaseSite <Hashtable>]
[-HBaseEnv <Hashtable>]
[-Storm <Hashtable>]
[-Yarn <Hashtable>]
[-MapRed <Hashtable>]
[-Tez <Hashtable>]
[-Hdfs <Hashtable>]
[-RServer <Hashtable>]
[-SparkDefaults <Hashtable>]
[-SparkThriftConf <Hashtable>]
[-Spark2Defaults <Hashtable>]
[-Spark2ThriftConf <Hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Add-AzHDInsightConfigValue menambahkan kustomisasi nilai konfigurasi Hadoop, seperti core-site.xml atau hive-site.xml, dan/atau kustomisasi pustaka bersama Apache Hive ke objek konfigurasi HDInsight yang dibuat oleh cmdlet New-AzHDInsightClusterConfig.
Contoh
Contoh 1: Menambahkan nilai konfigurasi kustom ke objek konfigurasi kluster
# Primary storage account info
$storageAccountResourceGroupName = "Group"
$storageAccountResourceId = "yourstorageaccountresourceid"
$storageAccountName = "yourstorageacct001"
$storageAccountKey = (Get-AzStorageAccountKey -ResourceGroupName $storageAccountResourceGroupName -Name $storageAccountName)[0].value
$storageContainer = "container001"
# Cluster configuration info
$location = "East US 2"
$clusterResourceGroupName = "Group"
$clusterName = "your-hadoop-001"
$clusterCreds = Get-Credential
# If the cluster's resource group doesn't exist yet, run:
# New-AzResourceGroup -Name $clusterResourceGroupName -Location $location
# Config values
$coreConfigs = @{"io.file.buffer.size"="300000"}
$mapRedConfigs = @{"mapred.map.max.attempts"="2"}
# Create the cluster
New-AzHDInsightClusterConfig `
| Add-AzHDInsightConfigValue `
-Core $coreConfigs `
-MapRed $mapRedConfigs `
| New-AzHDInsightCluster `
-ClusterType Hadoop `
-OSType Windows `
-ClusterSizeInNodes 4 `
-ResourceGroupName $clusterResourceGroupName `
-ClusterName $clusterName `
-HttpCredential $clusterCreds `
-Location $location `
-StorageAccountResourceId $storageAccountResourceId `
-StorageAccountKey $storageAccountKey `
-StorageContainer $storageAccountContainer
Perintah ini menambahkan nilai konfigurasi Hadoop ke kluster bernama your-hadoop-001.
Parameter
Menentukan objek konfigurasi kluster HDInsight yang dimodifikasi cmdlet ini. Objek ini dibuat oleh cmdlet New-AzHDInsightClusterConfig.
| Type: | AzureHDInsightConfig |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Menentukan konfigurasi Situs Inti dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan azure
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi HBase Env dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Situs HBase dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi HDFS dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Apache Hive Env dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Situs Apache Hive dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Situs MapRed dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Oozie Env dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Situs Oozie dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi RServer. Hanya berlaku untuk kluster RServer.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Default Spark2 dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Spark2 Thrift SparkConf dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Default Spark dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Spark Thrift SparkConf dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Situs Storm dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Situs Tez dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Situs WebHCat dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Menentukan konfigurasi Situs YARN dari kluster HDInsight ini.
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Input
Output
Link Terkait
Saran dan Komentar
Kirim dan lihat umpan balik untuk