浏览代码

AMBARI-12784 RU: HS2 fails to start with invalid maximum heap size (dsen)

Dmytro Sen 9 年之前
父节点
当前提交
baed7e987c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java

+ 2 - 2
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java

@@ -1566,10 +1566,10 @@ public class UpgradeCatalog210 extends AbstractUpgradeCatalog {
             }
             //hive metastore and client_heapsize are added for HDP2, we should check if it exists and not add it for HDP1
             if (!cluster.getDesiredConfigByType("hive-env").getProperties().containsKey("hive.client.heapsize")) {
-              hiveEnvProps.put("hive.client.heapsize", "512m");
+              hiveEnvProps.put("hive.client.heapsize", "512");
             }
             if (!cluster.getDesiredConfigByType("hive-env").getProperties().containsKey("hive.metastore.heapsize")) {
-              hiveEnvProps.put("hive.metastore.heapsize", "1024m");
+              hiveEnvProps.put("hive.metastore.heapsize", "1024");
             }
             if (cluster.getDesiredConfigByType("hive-env").getProperties().containsKey("hive_security_authorization") &&
                     "none".equalsIgnoreCase(cluster.getDesiredConfigByType("hive-env").getProperties().get("hive_security_authorization"))) {