浏览代码

AMBARI-15740. Unable to add multiple fencing methods for dfs.ha.fencing.methods via Ambari UI (alexantonenko)

Alex Antonenko 9 年之前
父节点
当前提交
6e349d9adc
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 1 0
      ambari-web/app/data/HDP2/ha_properties.js
  2. 9 0
      ambari-web/app/data/HDP2/ui_properties.js

+ 1 - 0
ambari-web/app/data/HDP2/ha_properties.js

@@ -192,6 +192,7 @@ module.exports =
         "description": "A list of scripts or Java classes which will be used to fence the Active NameNode during a failover.",
         "isReconfigurable": false,
         "recommendedValue": "shell(/bin/true)",
+        "displayType": "multiLine",
         "value": "shell(/bin/true)",
         "category": "HDFS",
         "filename": "hdfs-site",

+ 9 - 0
ambari-web/app/data/HDP2/ui_properties.js

@@ -36,5 +36,14 @@ module.exports = [
     "filename": "krb5-conf.xml",
     "category": "Kadmin",
     "index": 2
+  },
+  {
+    "name": "dfs.ha.fencing.methods",
+    "displayName": "dfs.ha.fencing.methods",
+    "serviceName": "HDFS",
+    "filename": "hdfs-site.xml",
+    "category": "Advanced hdfs-site",
+    "displayType": "multiLine",
+    "index": 1
   }
 ];