|
@@ -582,6 +582,22 @@ class HDP22StackAdvisor(HDP21StackAdvisor):
|
|
{"config-name": 'tez.task.resource.memory.mb', "item": self.validatorLessThenDefaultValue(properties, recommendedDefaults, 'tez.task.resource.memory.mb')},
|
|
{"config-name": 'tez.task.resource.memory.mb', "item": self.validatorLessThenDefaultValue(properties, recommendedDefaults, 'tez.task.resource.memory.mb')},
|
|
{"config-name": 'tez.runtime.io.sort.mb', "item": self.validatorLessThenDefaultValue(properties, recommendedDefaults, 'tez.runtime.io.sort.mb')},
|
|
{"config-name": 'tez.runtime.io.sort.mb', "item": self.validatorLessThenDefaultValue(properties, recommendedDefaults, 'tez.runtime.io.sort.mb')},
|
|
{"config-name": 'tez.runtime.unordered.output.buffer.size-mb', "item": self.validatorLessThenDefaultValue(properties, recommendedDefaults, 'tez.runtime.unordered.output.buffer.size-mb')},]
|
|
{"config-name": 'tez.runtime.unordered.output.buffer.size-mb', "item": self.validatorLessThenDefaultValue(properties, recommendedDefaults, 'tez.runtime.unordered.output.buffer.size-mb')},]
|
|
|
|
+
|
|
|
|
+ tez_site = properties
|
|
|
|
+ prop_name1 = 'tez.am.resource.memory.mb'
|
|
|
|
+ prop_name2 = 'tez.task.resource.memory.mb'
|
|
|
|
+ yarnSiteProperties = getSiteProperties(configurations, "yarn-site")
|
|
|
|
+ if yarnSiteProperties:
|
|
|
|
+ yarnMaxAllocationSize = min(30 * int(configurations["yarn-site"]["properties"]["yarn.scheduler.minimum-allocation-mb"]),int(configurations["yarn-site"]["properties"]["yarn.scheduler.maximum-allocation-mb"]))
|
|
|
|
+ if int(tez_site[prop_name1]) > yarnMaxAllocationSize:
|
|
|
|
+ validationItems.append({"config-name": prop_name1,
|
|
|
|
+ "item": self.getWarnItem(
|
|
|
|
+ "{0} should be less than YARN max allocation size ({1})".format(prop_name1, yarnMaxAllocationSize))})
|
|
|
|
+ if int(tez_site[prop_name2]) > yarnMaxAllocationSize:
|
|
|
|
+ validationItems.append({"config-name": prop_name2,
|
|
|
|
+ "item": self.getWarnItem(
|
|
|
|
+ "{0} should be less than YARN max allocation size ({1})".format(prop_name2, yarnMaxAllocationSize))})
|
|
|
|
+
|
|
return self.toConfigurationValidationProblems(validationItems, "tez-site")
|
|
return self.toConfigurationValidationProblems(validationItems, "tez-site")
|
|
|
|
|
|
def recommendMapReduce2Configurations(self, configurations, clusterData, services, hosts):
|
|
def recommendMapReduce2Configurations(self, configurations, clusterData, services, hosts):
|