ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject ambari git commit: AMBARI-12094 - Nimbus Upgrade Fails Due To Missing kinit Key When Kerberos Is Enabled (jonathanhurley)
Date Tue, 23 Jun 2015 21:19:56 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 16d75029c -> 1b7bcf583


AMBARI-12094 - Nimbus Upgrade Fails Due To Missing kinit Key When Kerberos Is Enabled (jonathanhurley)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1b7bcf58
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1b7bcf58
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1b7bcf58

Branch: refs/heads/branch-2.1
Commit: 1b7bcf583a915cf867d18f2a95310ce0e1b5c100
Parents: 16d7502
Author: Jonathan Hurley <jhurley@hortonworks.com>
Authored: Tue Jun 23 12:35:52 2015 -0400
Committer: Jonathan Hurley <jhurley@hortonworks.com>
Committed: Tue Jun 23 17:19:46 2015 -0400

----------------------------------------------------------------------
 .../0.9.1.2.1/package/scripts/params_linux.py   |   5 +-
 .../0.9.1.2.1/package/scripts/storm_upgrade.py  |  10 +-
 .../stacks/2.3/STORM/test_storm_upgrade.py      |  91 +++++++
 .../2.3/configs/storm_default_secure.json       | 259 +++++++++++++++++++
 4 files changed, 359 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1b7bcf58/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py
b/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py
index 8ff6a5f..ec7573a 100644
--- a/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py
+++ b/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py
@@ -183,7 +183,10 @@ ranger_env = config['configurations']['ranger-env']
 ranger_plugin_properties = config['configurations']['ranger-storm-plugin-properties']
 policy_user = config['configurations']['ranger-storm-plugin-properties']['policy_user']
 
-#For curl command in ranger plugin to get db connector
+# some commands may need to supply the JAAS location when running as storm
+storm_jaas_file = format("{conf_dir}/storm_jaas.conf")
+
+# For curl command in ranger plugin to get db connector
 jdk_location = config['hostLevelParams']['jdk_location']
 java_share_dir = '/usr/share/java'
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/1b7bcf58/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/storm_upgrade.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/storm_upgrade.py
b/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/storm_upgrade.py
index 2cca92c..4b455c0 100644
--- a/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/storm_upgrade.py
+++ b/ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/storm_upgrade.py
@@ -61,11 +61,6 @@ class StormUpgrade(Script):
       Logger.info("Unable to extract ZooKeeper hosts from '{0}', assuming localhost").format(params.storm_zookeeper_servers)
       storm_zookeeper_server_list = ["localhost"]
 
-    # kinit if needed
-    if params.security_enabled:
-      kinit_command=format("{kinit_path_local} -kt {smoke_user_keytab} {smokeuser_principal};
")
-      Execute(kinit_command,user=params.smokeuser)
-
     # for every zk server, try to remove /storm
     zookeeper_data_cleared = False
     for storm_zookeeper_server in storm_zookeeper_server_list:
@@ -85,6 +80,11 @@ class StormUpgrade(Script):
           'JAVA_HOME': params.java64_home
         }
 
+        # AMBARI-12094: if security is enabled, then we need to tell zookeeper where the
+        # JAAS file is located since we don't use kinit directly with STORM
+        if params.security_enabled:
+          env_map['JVMFLAGS'] = "-Djava.security.auth.login.config={0}".format(params.storm_jaas_file)
+
         Execute(command, user=params.storm_user, environment=env_map,
           logoutput=True, tries=1)
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/1b7bcf58/ambari-server/src/test/python/stacks/2.3/STORM/test_storm_upgrade.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.3/STORM/test_storm_upgrade.py b/ambari-server/src/test/python/stacks/2.3/STORM/test_storm_upgrade.py
new file mode 100644
index 0000000..f53525c
--- /dev/null
+++ b/ambari-server/src/test/python/stacks/2.3/STORM/test_storm_upgrade.py
@@ -0,0 +1,91 @@
+#!/usr/bin/env python
+
+'''
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+'''
+
+import json
+from mock.mock import MagicMock, call, patch
+from stacks.utils.RMFTestCase import *
+
+
+class TestStormUpgrade(RMFTestCase):
+  COMMON_SERVICES_PACKAGE_DIR = "STORM/0.9.1.2.1/package"
+  STACK_VERSION = "2.3"
+
+  def test_delete_zookeeper_data(self):
+    config_file = self.get_src_folder()+"/test/python/stacks/2.3/configs/storm_default.json"
+
+    with open(config_file, "r") as f:
+      json_content = json.load(f)
+
+    version = '2.3.0.0-1234'
+    json_content['commandParams']['version'] = version
+
+    mocks_dict = {}
+    self.executeScript(self.COMMON_SERVICES_PACKAGE_DIR + "/scripts/storm_upgrade.py",
+      classname = "StormUpgrade",
+      command = "delete_storm_zookeeper_data",
+      config_dict = json_content,
+      hdp_stack_version = self.STACK_VERSION,
+      target = RMFTestCase.TARGET_COMMON_SERVICES,
+      call_mocks = [],
+      mocks_dict = mocks_dict)
+
+    self.assertResourceCalled("Execute",
+      "/usr/hdp/2.3.0.0-1234/zookeeper/bin/zkCli.sh -server c6401.ambari.apache.org:2181
rmr /storm",
+      environment = {'JAVA_HOME': '/usr/jdk64/jdk1.8.0_40',},
+      logoutput = True,
+      tries = 1,
+      user = 'storm')
+
+
+  def test_delete_zookeeper_data_jaas(self):
+    """
+    Tests that the JAAS file is exported when calling zkCli.sh rmr
+    :return:
+    """
+    config_file = self.get_src_folder()+"/test/python/stacks/2.3/configs/storm_default_secure.json"
+
+    with open(config_file, "r") as f:
+      json_content = json.load(f)
+
+    version = '2.3.0.0-1234'
+    json_content['commandParams']['version'] = version
+    json_content['configurations']['cluster-env']['security_enabled'] = True
+
+    mocks_dict = {}
+    self.executeScript(self.COMMON_SERVICES_PACKAGE_DIR + "/scripts/storm_upgrade.py",
+      classname = "StormUpgrade",
+      command = "delete_storm_zookeeper_data",
+      config_dict = json_content,
+      hdp_stack_version = self.STACK_VERSION,
+      target = RMFTestCase.TARGET_COMMON_SERVICES,
+      call_mocks = [],
+      mocks_dict = mocks_dict)
+
+    environment = {'JAVA_HOME': '/usr/jdk64/jdk1.8.0_40',
+      'JVMFLAGS': '-Djava.security.auth.login.config=/usr/hdp/current/storm-client/conf/storm_jaas.conf'}
+
+    self.assertResourceCalled("Execute",
+      "/usr/hdp/2.3.0.0-1234/zookeeper/bin/zkCli.sh -server c6401.ambari.apache.org:2181
rmr /storm",
+      environment = environment,
+      logoutput = True,
+      tries = 1,
+      user = 'storm')
+
+

http://git-wip-us.apache.org/repos/asf/ambari/blob/1b7bcf58/ambari-server/src/test/python/stacks/2.3/configs/storm_default_secure.json
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.3/configs/storm_default_secure.json b/ambari-server/src/test/python/stacks/2.3/configs/storm_default_secure.json
new file mode 100644
index 0000000..3ae6941
--- /dev/null
+++ b/ambari-server/src/test/python/stacks/2.3/configs/storm_default_secure.json
@@ -0,0 +1,259 @@
+{
+    "configuration_attributes": {
+        "storm-site": {}, 
+        "storm-env": {}, 
+        "zoo.cfg": {},
+        "zookeeper-env": {}, 
+        "zookeeper-log4j": {}, 
+        "cluster-env": {}
+    }, 
+    "commandParams": {
+        "service_package_folder": "common-services/STORM/0.9.1.2.1/package", 
+        "script": "scripts/service_check.py", 
+        "hooks_folder": "HDP/2.0.6/hooks", 
+        "command_retry_max_attempt_count": "3", 
+        "command_retry_enabled": "false", 
+        "command_timeout": "300", 
+        "script_type": "PYTHON"
+    }, 
+    "roleCommand": "SERVICE_CHECK", 
+    "kerberosCommandParams": [], 
+    "clusterName": "c1", 
+    "hostname": "c6401.ambari.apache.org", 
+    "hostLevelParams": {
+        "jdk_location": "http://c6401.ambari.apache.org:8080/resources/", 
+        "ambari_db_rca_password": "mapred", 
+        "java_home": "/usr/jdk64/jdk1.8.0_40", 
+        "ambari_db_rca_url": "jdbc:postgresql://c6401.ambari.apache.org/ambarirca", 
+        "jce_name": "jce_policy-8.zip", 
+        "java_version": "8", 
+        "oracle_jdbc_url": "http://c6401.ambari.apache.org:8080/resources//ojdbc6.jar", 
+        "stack_name": "HDP", 
+        "stack_version": "2.3", 
+        "host_sys_prepped": "false", 
+        "db_name": "ambari", 
+        "jdk_name": "jdk-8u40-linux-x64.tar.gz", 
+        "ambari_db_rca_driver": "org.postgresql.Driver", 
+        "current_version": "2.3.0.0-1889", 
+        "ambari_db_rca_username": "mapred", 
+        "db_driver_filename": "mysql-connector-java.jar", 
+        "agentCacheDir": "/var/lib/ambari-agent/cache", 
+        "mysql_jdbc_url": "http://c6401.ambari.apache.org:8080/resources//mysql-connector-java.jar"
+    }, 
+    "commandType": "EXECUTION_COMMAND", 
+    "roleParams": {}, 
+    "serviceName": "STORM", 
+    "role": "STORM_SERVICE_CHECK", 
+    "forceRefreshConfigTags": [], 
+    "taskId": 31, 
+    "public_hostname": "c6401.ambari.apache.org", 
+    "configurations": {
+        "storm-site": {
+            "topology.tuple.serializer": "backtype.storm.serialization.types.ListDelegateSerializer",

+            "topology.workers": "1", 
+            "drpc.worker.threads": "64", 
+            "storm.messaging.netty.client_worker_threads": "1", 
+            "supervisor.heartbeat.frequency.secs": "5", 
+            "topology.executor.send.buffer.size": "1024", 
+            "drpc.childopts": "-Xmx768m _JAAS_PLACEHOLDER", 
+            "nimbus.thrift.port": "6627", 
+            "storm.zookeeper.retry.intervalceiling.millis": "30000", 
+            "storm.local.dir": "/hadoop/storm", 
+            "topology.receiver.buffer.size": "8", 
+            "storm.zookeeper.servers": "['c6401.ambari.apache.org','c6403.ambari.apache.org','c6402.ambari.apache.org']",

+            "transactional.zookeeper.root": "/transactional", 
+            "_storm.min.ruid": "null", 
+            "nimbus.seeds": "[c6402.ambari.apache.org, c6401.ambari.apache.org]", 
+            "topology.min.replication.count": "1", 
+            "topology.skip.missing.kryo.registrations": "false", 
+            "worker.heartbeat.frequency.secs": "1", 
+            "zmq.hwm": "0", 
+            "storm.zookeeper.connection.timeout": "15000", 
+            "_storm.thrift.secure.transport": "backtype.storm.security.auth.kerberos.KerberosSaslTransportPlugin",

+            "storm.messaging.netty.server_worker_threads": "1", 
+            "supervisor.worker.start.timeout.secs": "120", 
+            "zmq.threads": "1", 
+            "topology.acker.executors": "null", 
+            "storm.local.mode.zmq": "false", 
+            "topology.max.task.parallelism": "null", 
+            "topology.max.error.report.per.interval": "5", 
+            "topology.debug": "false", 
+            "drpc.queue.size": "128", 
+            "worker.childopts": "-Xmx768m _JAAS_PLACEHOLDER -javaagent:/usr/hdp/current/storm-client/contrib/storm-jmxetric/lib/jmxetric-1.0.4.jar=host=localhost,port=8650,wireformat31x=true,mode=multicast,config=/usr/hdp/current/storm-client/contrib/storm-jmxetric/conf/jmxetric-conf.xml,process=Worker_%ID%_JVM",

+            "nimbus.childopts": "-Xmx1024m _JAAS_PLACEHOLDER -javaagent:/usr/hdp/current/storm-nimbus/contrib/storm-jmxetric/lib/jmxetric-1.0.4.jar=host=localhost,port=8649,wireformat31x=true,mode=multicast,config=/usr/hdp/current/storm-nimbus/contrib/storm-jmxetric/conf/jmxetric-conf.xml,process=Nimbus_JVM",

+            "storm.zookeeper.retry.times": "5", 
+            "nimbus.monitor.freq.secs": "10", 
+            "storm.cluster.mode": "distributed", 
+            "dev.zookeeper.path": "/tmp/dev-storm-zookeeper", 
+            "drpc.invocations.port": "3773", 
+            "_storm.thrift.nonsecure.transport": "backtype.storm.security.auth.SimpleTransportPlugin",

+            "storm.zookeeper.root": "/storm", 
+            "logviewer.childopts": "-Xmx128m _JAAS_PLACEHOLDER", 
+            "topology.max.replication.wait.time.sec": "60", 
+            "transactional.zookeeper.port": "null", 
+            "topology.worker.childopts": "null", 
+            "topology.max.spout.pending": "null", 
+            "nimbus.cleanup.inbox.freq.secs": "600", 
+            "storm.messaging.netty.min_wait_ms": "100", 
+            "nimbus.task.timeout.secs": "30", 
+            "nimbus.thrift.max_buffer_size": "1048576", 
+            "topology.sleep.spout.wait.strategy.time.ms": "1", 
+            "topology.optimize": "true", 
+            "nimbus.reassign": "true", 
+            "storm.messaging.transport": "backtype.storm.messaging.netty.Context", 
+            "logviewer.appender.name": "A1", 
+            "ui.port": "8744", 
+            "supervisor.slots.ports": "[6700, 6701]", 
+            "nimbus.file.copy.expiration.secs": "600", 
+            "supervisor.monitor.frequency.secs": "3", 
+            "ui.childopts": "-Xmx768m _JAAS_PLACEHOLDER", 
+            "transactional.zookeeper.servers": "null", 
+            "zmq.linger.millis": "5000", 
+            "topology.error.throttle.interval.secs": "10", 
+            "topology.worker.shared.thread.pool.size": "4", 
+            "java.library.path": "/usr/local/lib:/opt/local/lib:/usr/lib:/usr/hdp/current/storm-client/lib",

+            "topology.spout.wait.strategy": "backtype.storm.spout.SleepSpoutWaitStrategy",

+            "task.heartbeat.frequency.secs": "3", 
+            "topology.transfer.buffer.size": "1024", 
+            "topology.builtin.metrics.bucket.size.secs": "60", 
+            "topology.executor.receive.buffer.size": "1024", 
+            "topology.stats.sample.rate": "0.05", 
+            "topology.fall.back.on.java.serialization": "true", 
+            "supervisor.childopts": "-Xmx256m _JAAS_PLACEHOLDER -Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.port={{jmxremote_port}} -javaagent:/usr/hdp/current/storm-supervisor/contrib/storm-jmxetric/lib/jmxetric-1.0.4.jar=host=localhost,port=8650,wireformat31x=true,mode=multicast,config=/usr/hdp/current/storm-supervisor/contrib/storm-jmxetric/conf/jmxetric-conf.xml,process=Supervisor_JVM",

+            "topology.enable.message.timeouts": "true", 
+            "storm.messaging.netty.max_wait_ms": "1000", 
+            "nimbus.topology.validator": "backtype.storm.nimbus.DefaultTopologyValidator",

+            "nimbus.supervisor.timeout.secs": "60", 
+            "topology.disruptor.wait.strategy": "com.lmax.disruptor.BlockingWaitStrategy",

+            "storm.messaging.netty.buffer_size": "5242880", 
+            "drpc.port": "3772", 
+            "topology.kryo.factory": "backtype.storm.serialization.DefaultKryoFactory", 
+            "storm.zookeeper.retry.interval": "1000", 
+            "storm.messaging.netty.max_retries": "30", 
+            "topology.tick.tuple.freq.secs": "null", 
+            "drpc.request.timeout.secs": "600", 
+            "nimbus.task.launch.secs": "120", 
+            "task.refresh.poll.secs": "10", 
+            "topology.message.timeout.secs": "30", 
+            "nimbus.inbox.jar.expiration.secs": "3600", 
+            "topology.state.synchronization.timeout.secs": "60", 
+            "supervisor.worker.timeout.secs": "30", 
+            "ui.filter": "null", 
+            "topology.trident.batch.emit.interval.millis": "500", 
+            "storm.zookeeper.session.timeout": "20000", 
+            "storm.thrift.transport": "{{storm_thrift_transport}}", 
+            "logviewer.port": "8000", 
+            "storm.log.dir": "{{log_dir}}", 
+            "storm.zookeeper.port": "2181",
+            "java.security.auth.login.config" : "{{conf_dir}}/storm_jaas.conf"
+        }, 
+        "storm-env": {
+            "jmxremote_port": "56431", 
+            "storm_log_dir": "/var/log/storm", 
+            "storm_pid_dir": "/var/run/storm", 
+            "content": "\n#!/bin/bash\n\n# Set Storm specific environment variables here.\n\n#
The java implementation to use.\nexport JAVA_HOME={{java64_home}}\n\n# export STORM_CONF_DIR=\"\"\nexport
STORM_HOME=/usr/hdp/current/storm-client", 
+            "nimbus_seeds_supported": "true", 
+            "storm_user": "storm",
+            "nimbus_keytab" : "/etc/security/keytabs/nimbus.service.keytab",
+            "nimbus_principal_name" : "nimbus/_HOST@EXAMPLE.COM",
+            "nimbus_seeds_supported" : "true",
+            "storm_keytab" : "/etc/security/keytabs/storm.service.keytab",
+            "storm_log_dir" : "/var/log/storm",
+            "storm_pid_dir" : "/var/run/storm",
+            "storm_principal_name" : "storm@EXAMPLE.COM",
+            "storm_ui_keytab" : "/etc/security/keytabs/spnego.service.keytab",
+            "storm_ui_principal_name" : "HTTP/_HOST@EXAMPLE.COM",
+            "storm_user" : "storm"
+        }, 
+        "zoo.cfg": {
+            "clientPort": "2181", 
+            "autopurge.purgeInterval": "24", 
+            "syncLimit": "5", 
+            "dataDir": "/hadoop/zookeeper", 
+            "initLimit": "10", 
+            "tickTime": "2000", 
+            "autopurge.snapRetainCount": "30"
+        },
+        "zookeeper-env": {
+            "zk_log_dir": "/var/log/zookeeper", 
+            "content": "\nexport JAVA_HOME={{java64_home}}\nexport ZOOKEEPER_HOME={{zk_home}}\nexport
ZOO_LOG_DIR={{zk_log_dir}}\nexport ZOOPIDFILE={{zk_pid_file}}\nexport SERVER_JVMFLAGS={{zk_server_heapsize}}\nexport
JAVA=$JAVA_HOME/bin/java\nexport CLASSPATH=$CLASSPATH:/usr/share/zookeeper/*\n\n{% if security_enabled
%}\nexport SERVER_JVMFLAGS=\"$SERVER_JVMFLAGS -Djava.security.auth.login.config={{zk_server_jaas_file}}\"\nexport
CLIENT_JVMFLAGS=\"$CLIENT_JVMFLAGS -Djava.security.auth.login.config={{zk_client_jaas_file}}\"\n{%
endif %}", 
+            "zk_pid_dir": "/var/run/zookeeper", 
+            "zk_user": "zookeeper"
+        }, 
+        "zookeeper-log4j": {
+            "content": "\n#\n#\n# Licensed to the Apache Software Foundation (ASF) under
one\n# or more contributor license agreements.  See the NOTICE file\n# distributed with this
work for additional information\n# regarding copyright ownership.  The ASF licenses this file\n#
to you under the Apache License, Version 2.0 (the\n# \"License\"); you may not use this file
except in compliance\n# with the License.  You may obtain a copy of the License at\n#\n# 
 http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed
to in writing,\n# software distributed under the License is distributed on an\n# \"AS IS\"
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n# KIND, either express or implied.  See the
License for the\n# specific language governing permissions and limitations\n# under the License.\n#\n#\n#\n\n#\n#
ZooKeeper Logging Configuration\n#\n\n# DEFAULT: console appender only\nlog4j.rootLogger=INFO,
CONSOLE\n\n# Example with rolling log file\n#log4
 j.rootLogger=DEBUG, CONSOLE, ROLLINGFILE\n\n# Example with rolling log file and tracing\n#log4j.rootLogger=TRACE,
CONSOLE, ROLLINGFILE, TRACEFILE\n\n#\n# Log INFO level and above messages to the console\n#\nlog4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender\nlog4j.appender.CONSOLE.Threshold=INFO\nlog4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout\nlog4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601}
- %-5p [%t:%C{1}@%L] - %m%n\n\n#\n# Add ROLLINGFILE to rootLogger to get log file output\n#
   Log DEBUG level and above messages to a log file\nlog4j.appender.ROLLINGFILE=org.apache.log4j.RollingFileAppender\nlog4j.appender.ROLLINGFILE.Threshold=DEBUG\nlog4j.appender.ROLLINGFILE.File=zookeeper.log\n\n#
Max log file size of 10MB\nlog4j.appender.ROLLINGFILE.MaxFileSize=10MB\n# uncomment the next
line to limit number of backup files\n#log4j.appender.ROLLINGFILE.MaxBackupIndex=10\n\nlog4j.appender.ROLLINGFILE.layout=org.apache.log4j.PatternLayout\nlog4j.appender.ROLLIN
 GFILE.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n\n\n\n#\n# Add TRACEFILE
to rootLogger to get log file output\n#    Log DEBUG level and above messages to a log file\nlog4j.appender.TRACEFILE=org.apache.log4j.FileAppender\nlog4j.appender.TRACEFILE.Threshold=TRACE\nlog4j.appender.TRACEFILE.File=zookeeper_trace.log\n\nlog4j.appender.TRACEFILE.layout=org.apache.log4j.PatternLayout\n###
Notice we are including log4j's NDC here (%x)\nlog4j.appender.TRACEFILE.layout.ConversionPattern=%d{ISO8601}
- %-5p [%t:%C{1}@%L][%x] - %m%n"
+        }, 
+        "cluster-env": {
+            "security_enabled": "true",
+            "ignore_groupsusers_create": "false",
+            "kerberos_domain": "EXAMPLE.COM",
+            "user_group": "hadoop",
+            "smokeuser": "ambari-qa",
+            "smokeuser_keytab": "/etc/security/keytabs/smokeuser.headless.keytab"
+        }
+    }, 
+    "configurationTags": {
+        "storm-site": {
+            "tag": "version1"
+        }, 
+        "storm-env": {
+            "tag": "version1"
+        }, 
+        "zoo.cfg": {
+            "tag": "version1"
+        },
+        "zookeeper-env": {
+            "tag": "version1"
+        }, 
+        "zookeeper-log4j": {
+            "tag": "version1"
+        }, 
+        "cluster-env": {
+            "tag": "version1"
+        }
+    }, 
+    "commandId": "7-0", 
+    "clusterHostInfo": {
+        "drpc_server_hosts": [
+            "c6402.ambari.apache.org"
+        ], 
+        "nimbus_hosts": [
+            "c6402.ambari.apache.org", 
+            "c6401.ambari.apache.org"
+        ], 
+        "all_ping_ports": [
+            "8670", 
+            "8670", 
+            "8670"
+        ], 
+        "all_hosts": [
+            "c6402.ambari.apache.org", 
+            "c6403.ambari.apache.org", 
+            "c6401.ambari.apache.org"
+        ], 
+        "storm_ui_server_hosts": [
+            "c6402.ambari.apache.org"
+        ], 
+        "all_racks": [
+            "/default-rack", 
+            "/default-rack", 
+            "/default-rack"
+        ], 
+        "all_ipv4_ips": [
+            "192.168.64.102", 
+            "192.168.64.103", 
+            "192.168.64.101"
+        ], 
+        "ambari_server_host": [
+            "c6401.ambari.apache.org"
+        ], 
+        "zookeeper_hosts": [
+            "c6402.ambari.apache.org", 
+            "c6403.ambari.apache.org", 
+            "c6401.ambari.apache.org"
+        ], 
+        "supervisor_hosts": [
+            "c6401.ambari.apache.org"
+        ]
+    }
+}
\ No newline at end of file


Mime
View raw message