Freigeben über


Add-AzHDInsightConfigValue

Fügt einer Clusterkonfigurationsobjekt eine Hadoop-Konfigurationswertanpassung und/oder eine Strukturanpassung einer freigegebenen Bibliothek hinzu.

Syntax

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>]

Beschreibung

Mit dem Cmdlet "Add-AzHDInsightConfigValue " wird eine Hadoop-Konfigurationswertanpassung hinzugefügt, z. B. core-site.xml oder hive-site.xml, und/oder eine Anpassung der gemeinsam genutzten Hive-Bibliothek zum HDInsight-Konfigurationsobjekt, das vom Cmdlet New-AzHDInsightClusterConfig erstellt wurde.

Beispiele

Beispiel 1: Hinzufügen eines benutzerdefinierten Konfigurationswerts zum Clusterkonfigurationsobjekt

# 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

Mit diesem Befehl wird dem Cluster mit dem Namen "your-hadoop-001" ein Hadoop-Konfigurationswert hinzugefügt.

Parameter

-Config

Gibt das HDInsight-Clusterkonfigurationsobjekt an, das dieses Cmdlet ändert. Dieses Objekt wird vom Cmdlet New-AzHDInsightClusterConfig erstellt.

Typ:AzureHDInsightConfig
Position:0
Standardwert:None
Erforderlich:True
Accept pipeline input:True
Accept wildcard characters:False

-Core

Gibt die Kernwebsitekonfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Anmeldeinformationen, Konto, Mandant und Abonnement für die Kommunikation mit Azure

Typ:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-HBaseEnv

Gibt die HBase Env-Konfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-HBaseSite

Gibt die HBase-Websitekonfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-Hdfs

Gibt die HDFS-Konfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-HiveEnv

Gibt die Hive-Env-Konfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-HiveSite

Gibt die Konfigurationen der Strukturwebsite dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-MapRed

Gibt die MapRed Site-Konfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-OozieEnv

Gibt die Oozie Env-Konfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-OozieSite

Gibt die Oozie-Websitekonfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-RServer

Gibt die RServer-Konfigurationen an. Nur für RServer-Cluster gültig.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-Spark2Defaults

Gibt die Spark2-Standardkonfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-Spark2ThriftConf

Gibt die Spark2 Thrift SparkConf-Konfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-SparkDefaults

Gibt die Spark Defaults-Konfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-SparkThriftConf

Gibt die Spark Thrift SparkConf-Konfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-Storm

Gibt die Konfigurationen der Storm Site dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-Tez

Gibt die Tez-Websitekonfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-WebHCat

Gibt die WebHCat-Websitekonfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-Yarn

Gibt die YARN-Websitekonfigurationen dieses HDInsight-Clusters an.

Typ:Hashtable
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

Eingaben

AzureHDInsightConfig

Ausgaben

AzureHDInsightConfig