@@ -56,30 +56,26 @@ public AzureHDInsightConfig Config
56
56
throw new ArgumentNullException ( "value" , "The value for the configuration can not be null." ) ;
57
57
}
58
58
59
- if ( value . CoreConfiguration != null )
60
- {
61
- this . command . Config . CoreConfiguration . AddRange ( value . CoreConfiguration ) ;
62
- }
63
-
64
- if ( value . YarnConfiguration != null )
65
- {
66
- this . command . Config . YarnConfiguration . AddRange ( value . YarnConfiguration ) ;
67
- }
68
59
this . command . Config . ClusterSizeInNodes = value . ClusterSizeInNodes ;
60
+ this . command . Config . DefaultStorageAccount = value . DefaultStorageAccount ;
69
61
this . command . Config . AdditionalStorageAccounts . AddRange ( value . AdditionalStorageAccounts ) ;
70
62
this . command . Config . ConfigActions . AddRange ( value . ConfigActions ) ;
71
63
this . command . Config . HiveMetastore = value . HiveMetastore ?? this . command . Config . HiveMetastore ;
72
64
this . command . Config . OozieMetastore = value . OozieMetastore ?? this . command . Config . OozieMetastore ;
65
+ this . command . Config . CoreConfiguration . AddRange ( value . CoreConfiguration ) ;
66
+ this . command . Config . YarnConfiguration . AddRange ( value . YarnConfiguration ) ;
67
+ this . command . Config . HdfsConfiguration . AddRange ( value . HdfsConfiguration ) ;
68
+ this . command . Config . MapReduceConfiguration . ConfigurationCollection . AddRange ( value . MapReduceConfiguration . ConfigurationCollection ) ;
69
+ this . command . Config . MapReduceConfiguration . CapacitySchedulerConfigurationCollection . AddRange (
70
+ value . MapReduceConfiguration . CapacitySchedulerConfigurationCollection ) ;
71
+ this . command . Config . HiveConfiguration . ConfigurationCollection . AddRange ( value . HiveConfiguration . ConfigurationCollection ) ;
72
+ this . command . Config . OozieConfiguration . ConfigurationCollection . AddRange ( value . OozieConfiguration . ConfigurationCollection ) ;
73
73
this . command . Config . HeadNodeVMSize = value . HeadNodeVMSize ;
74
74
this . command . Config . ClusterType = value . ClusterType ;
75
- if ( ! string . IsNullOrEmpty ( value . VirtualNetworkId ) )
76
- {
77
- this . command . Config . VirtualNetworkId = value . VirtualNetworkId ;
78
- }
79
- if ( ! string . IsNullOrEmpty ( value . SubnetName ) )
80
- {
81
- this . command . Config . SubnetName = value . SubnetName ;
82
- }
75
+ this . command . Config . VirtualNetworkId = value . VirtualNetworkId ;
76
+ this . command . Config . SubnetName = value . SubnetName ;
77
+ this . command . Config . StormConfiguration . AddRange ( value . StormConfiguration ) ;
78
+ this . command . Config . HBaseConfiguration . ConfigurationCollection . AddRange ( value . HBaseConfiguration . ConfigurationCollection ) ;
83
79
}
84
80
}
85
81
0 commit comments