Skip to content

Commit b20f738

Browse files
committed
Add Parameter sets for Spark and Spark2 configurations
1 parent 029aadc commit b20f738

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

src/ResourceManager/HDInsight/Commands.HDInsight/ManagementCommands/AddAzureHDInsightConfigValuesCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@ public class AddAzureHDInsightConfigValuesCommand : HDInsightCmdletBase
8282
[Parameter(HelpMessage = "Gets the RServer configurations.")]
8383
public Hashtable RServer { get; set; }
8484

85-
[Parameter(HelpMessage = "Gets the Spark Defaults configurations of this HDInsight cluster.")]
85+
[Parameter(HelpMessage = "Gets the Spark Defaults configurations of this HDInsight cluster.", ParameterSetName = "Spark1")]
8686
public Hashtable SparkDefaults { get; set; }
8787

88-
[Parameter(HelpMessage = "Gets the Spark Thrift SparkConf configurations of this HDInsight cluster.")]
88+
[Parameter(HelpMessage = "Gets the Spark Thrift SparkConf configurations of this HDInsight cluster.", ParameterSetName = "Spark1")]
8989
public Hashtable SparkThriftConf { get; set; }
9090

91-
[Parameter(HelpMessage = "Gets the Spark2 Defaults configurations of this HDInsight cluster.")]
91+
[Parameter(HelpMessage = "Gets the Spark2 Defaults configurations of this HDInsight cluster.", ParameterSetName = "Spark2")]
9292
public Hashtable Spark2Defaults { get; set; }
9393

94-
[Parameter(HelpMessage = "Gets the Spark2 Thrift SparkConf configurations of this HDInsight cluster.")]
94+
[Parameter(HelpMessage = "Gets the Spark2 Thrift SparkConf configurations of this HDInsight cluster.", ParameterSetName = "Spark2")]
9595
public Hashtable Spark2ThriftConf { get; set; }
9696

9797
#endregion

src/ResourceManager/HDInsight/Commands.HDInsight/help/Add-AzureRmHDInsightConfigValues.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,22 @@ Adds a Hadoop configuration value customization and/or a Hive shared library cus
1212

1313
## SYNTAX
1414

15+
### Spark1
1516
```
1617
Add-AzureRmHDInsightConfigValues [-Config] <AzureHDInsightConfig> [-Core <Hashtable>] [-HiveSite <Hashtable>]
1718
[-HiveEnv <Hashtable>] [-OozieSite <Hashtable>] [-OozieEnv <Hashtable>] [-WebHCat <Hashtable>]
1819
[-HBaseSite <Hashtable>] [-HBaseEnv <Hashtable>] [-Storm <Hashtable>] [-Yarn <Hashtable>]
1920
[-MapRed <Hashtable>] [-Tez <Hashtable>] [-Hdfs <Hashtable>] [-RServer <Hashtable>]
20-
[-SparkDefaults <Hashtable>] [-SparkThriftConf <Hashtable>] [-Spark2Defaults <Hashtable>]
21-
[-Spark2ThriftConf <Hashtable>] [<CommonParameters>]
21+
[-SparkDefaults <Hashtable>] [-SparkThriftConf <Hashtable>] [<CommonParameters>]
22+
```
23+
24+
### Spark2
25+
```
26+
Add-AzureRmHDInsightConfigValues [-Config] <AzureHDInsightConfig> [-Core <Hashtable>] [-HiveSite <Hashtable>]
27+
[-HiveEnv <Hashtable>] [-OozieSite <Hashtable>] [-OozieEnv <Hashtable>] [-WebHCat <Hashtable>]
28+
[-HBaseSite <Hashtable>] [-HBaseEnv <Hashtable>] [-Storm <Hashtable>] [-Yarn <Hashtable>]
29+
[-MapRed <Hashtable>] [-Tez <Hashtable>] [-Hdfs <Hashtable>] [-RServer <Hashtable>]
30+
[-Spark2Defaults <Hashtable>] [-Spark2ThriftConf <Hashtable>] [<CommonParameters>]
2231
```
2332

2433
## DESCRIPTION
@@ -241,7 +250,7 @@ Specifies the Spark2 Defaults configurations of this HDInsight cluster.
241250
242251
```yaml
243252
Type: Hashtable
244-
Parameter Sets: (All)
253+
Parameter Sets: Spark2
245254
Aliases:
246255

247256
Required: False
@@ -256,7 +265,7 @@ Specifies the Spark2 Thrift SparkConf configurations of this HDInsight cluster.
256265
257266
```yaml
258267
Type: Hashtable
259-
Parameter Sets: (All)
268+
Parameter Sets: Spark2
260269
Aliases:
261270

262271
Required: False
@@ -271,7 +280,7 @@ Specifies the Spark Defaults configurations of this HDInsight cluster.
271280
272281
```yaml
273282
Type: Hashtable
274-
Parameter Sets: (All)
283+
Parameter Sets: Spark1
275284
Aliases:
276285

277286
Required: False
@@ -286,7 +295,7 @@ Specifies the Spark Thrift SparkConf configurations of this HDInsight cluster.
286295
287296
```yaml
288297
Type: Hashtable
289-
Parameter Sets: (All)
298+
Parameter Sets: Spark1
290299
Aliases:
291300

292301
Required: False

0 commit comments

Comments
 (0)