소스 검색

AMBARI-2408. Kerberos globals are shown in HDFS config page during install. (jaimin)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1493949 13f79535-47bb-0310-9956-ffa450edef68
Jaimin Jetly 12 년 전
부모
커밋
6f1661b45c
2개의 변경된 파일3개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 6
      ambari-server/src/main/resources/stacks/HDP/1.3.0/services/HDFS/configuration/global.xml
  2. 2 1
      ambari-web/app/utils/config.js

+ 1 - 6
ambari-server/src/main/resources/stacks/HDP/1.3.0/services/HDFS/configuration/global.xml

@@ -172,12 +172,7 @@
     <value>/etc/security/keytabs</value>
     <description>Kerberos keytab path.</description>
   </property>
-  
-  <property>
-    <name>keytab_path</name>
-    <value>/etc/security/keytabs</value>
-    <description>KeyTab Directory.</description>
-  </property>
+
     <property>
     <name>namenode_formatted_mark_dir</name>
     <value>/var/run/hadoop/hdfs/namenode/formatted/</value>

+ 2 - 1
ambari-web/app/utils/config.js

@@ -297,7 +297,6 @@ App.config = Em.Object.create({
            * (/^\s+$/.test(_config.value)) { _config.isRequired = false; }
            */
           _config.isRequired = true;
-          _config.isVisible = true;
           _config.displayType = 'advanced';
           serviceConfigs.push(_config);
         }
@@ -551,11 +550,13 @@ App.config = Em.Object.create({
     if (data.items.length) {
       data.items.forEach(function (item) {
         item = item.StackConfigurations;
+        item.isVisible = item.type !== 'global.xml';
         properties.push({
           serviceName: item.service_name,
           name: item.property_name,
           value: item.property_value,
           description: item.property_description,
+          isVisible: item.isVisible,
           filename: item.filename || item.type
         });
       }, this);