ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <aonis...@hortonworks.com>
Subject Review Request 31796: Hive (Hive metastore start...) start failed (umask=027)
Date Fri, 06 Mar 2015 11:48:45 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31796/
-----------------------------------------------------------

Review request for Ambari and Dmitro Lisnichenko.


Bugs: AMBARI-9958
    https://issues.apache.org/jira/browse/AMBARI-9958


Repository: ambari


Description
-------

STR :  
1) Deploy Ambari with all services(umask=027).  
2)Try to strat Hive

Expected result:  
Hive start passed.

Actual result:  
Hive (Hive metastore start...) start failed

    
    
    
    2015-03-05 08:39:26,566 - Error while executing command 'start':
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 214, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py",
line 54, in start
        hive_service('metastore', action = 'start')
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py",
line 60, in hive_service
        not_if=process_id_exists_command
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148,
in __init__
        self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
152, in run
        self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
118, in run_action
        provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 276, in action_run
        raise ex
    Fail: Execution of '/var/lib/ambari-agent/data/tmp/start_metastore_script /grid/0/log/hive/hive.out
/grid/0/log/hive/hive.log /var/run/hive/hive.pid /etc/hive/conf.server /grid/0/log/hive' returned
126. -su: /var/lib/ambari-agent/data/tmp/start_metastore_script: Permission denied
    
    stdout:   /var/lib/ambari-agent/data/output-739.txt
    
    2015-03-05 08:39:15,860 - u"Directory['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts/']"
{'recursive': True}
    2015-03-05 08:39:15,861 - u"File['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts//UnlimitedJCEPolicyJDK7.zip']"
{'content': DownloadSource('http://us-core-ubu12-8773-4.cs1cloud.internal:8080/resources//UnlimitedJCEPolicyJDK7.zip')}
    2015-03-05 08:39:15,861 - Not downloading the file from http://us-core-ubu12-8773-4.cs1cloud.internal:8080/resources//UnlimitedJCEPolicyJDK7.zip,
because /var/lib/ambari-agent/data/tmp/UnlimitedJCEPolicyJDK7.zip already exists
    2015-03-05 08:39:15,923 - u"Group['usersuscoreubu1287734']" {'ignore_failures': False}
    2015-03-05 08:39:15,925 - Modifying group usersuscoreubu1287734
    2015-03-05 08:39:16,014 - u"Group['knoxuscoreubu1287734']" {'ignore_failures': False}
    2015-03-05 08:39:16,015 - Modifying group knoxuscoreubu1287734
    2015-03-05 08:39:16,181 - u"Group['sparkuscoreubu1287734']" {'ignore_failures': False}
    2015-03-05 08:39:16,181 - Modifying group sparkuscoreubu1287734
    2015-03-05 08:39:16,267 - u"Group['hadoopuscoreubu1287734']" {'ignore_failures': False}
    2015-03-05 08:39:16,268 - Modifying group hadoopuscoreubu1287734
    2015-03-05 08:39:16,394 - u"User['mapreduscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,394 - Modifying user mapreduscoreubu1287734
    2015-03-05 08:39:16,444 - u"User['hiveuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,445 - Modifying user hiveuscoreubu1287734
    2015-03-05 08:39:16,494 - u"User['flumeuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,495 - Modifying user flumeuscoreubu1287734
    2015-03-05 08:39:16,545 - u"User['hdfsuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,546 - Modifying user hdfsuscoreubu1287734
    2015-03-05 08:39:16,594 - u"User['sparkuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,595 - Modifying user sparkuscoreubu1287734
    2015-03-05 08:39:16,645 - u"User['oozieuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'usersuscoreubu1287734']}
    2015-03-05 08:39:16,646 - Modifying user oozieuscoreubu1287734
    2015-03-05 08:39:16,695 - u"User['stormuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,696 - Modifying user stormuscoreubu1287734
    2015-03-05 08:39:16,745 - u"User['yarnuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,745 - Modifying user yarnuscoreubu1287734
    2015-03-05 08:39:16,792 - u"User['knoxuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,793 - Modifying user knoxuscoreubu1287734
    2015-03-05 08:39:16,839 - u"User['false']" {'gid': 'hadoopuscoreubu1287734', 'ignore_failures':
False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,839 - Modifying user false
    2015-03-05 08:39:16,888 - u"User['falconuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,889 - Modifying user falconuscoreubu1287734
    2015-03-05 08:39:16,938 - u"User['hcatuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,938 - Modifying user hcatuscoreubu1287734
    2015-03-05 08:39:16,986 - u"User['hbaseuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:16,986 - Modifying user hbaseuscoreubu1287734
    2015-03-05 08:39:17,034 - u"User['zookeeperuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:17,035 - Modifying user zookeeperuscoreubu1287734
    2015-03-05 08:39:17,083 - u"User['ambari-qauscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'usersuscoreubu1287734']}
    2015-03-05 08:39:17,083 - Modifying user ambari-qauscoreubu1287734
    2015-03-05 08:39:17,128 - u"User['amsuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:17,128 - Modifying user amsuscoreubu1287734
    2015-03-05 08:39:17,177 - u"User['tezuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'usersuscoreubu1287734']}
    2015-03-05 08:39:17,178 - Modifying user tezuscoreubu1287734
    2015-03-05 08:39:17,226 - u"User['sqoopuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:39:17,227 - Modifying user sqoopuscoreubu1287734
    2015-03-05 08:39:17,273 - u"File['/var/lib/ambari-agent/data/tmp/changeUid.sh']" {'content':
StaticFile('changeToSecureUid.sh'), 'mode': 0555}
    2015-03-05 08:39:17,364 - u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh ambari-qauscoreubu1287734
/tmp/hadoop-ambari-qauscoreubu1287734,/tmp/hsperfdata_ambari-qauscoreubu1287734,/home/ambari-qauscoreubu1287734,/tmp/ambari-qauscoreubu1287734,/tmp/sqoop-ambari-qauscoreubu1287734']"
{'not_if': '(test $(id -u ambari-qauscoreubu1287734) -gt 1000) || (false)'}
    2015-03-05 08:39:17,412 - Skipping u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh
ambari-qauscoreubu1287734 /tmp/hadoop-ambari-qauscoreubu1287734,/tmp/hsperfdata_ambari-qauscoreubu1287734,/home/ambari-qauscoreubu1287734,/tmp/ambari-qauscoreubu1287734,/tmp/sqoop-ambari-qauscoreubu1287734']"
due to not_if
    2015-03-05 08:39:17,412 - u"Directory['/grid/0/hadoop/hbase']" {'owner': 'hbaseuscoreubu1287734',
'recursive': True, 'mode': 0775, 'cd_access': 'a'}
    2015-03-05 08:39:17,596 - u"File['/var/lib/ambari-agent/data/tmp/changeUid.sh']" {'content':
StaticFile('changeToSecureUid.sh'), 'mode': 0555}
    2015-03-05 08:39:17,692 - u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh hbaseuscoreubu1287734
/home/hbaseuscoreubu1287734,/tmp/hbaseuscoreubu1287734,/usr/bin/hbaseuscoreubu1287734,/var/log/hbaseuscoreubu1287734,/grid/0/hadoop/hbase']"
{'not_if': '(test $(id -u hbaseuscoreubu1287734) -gt 1000) || (false)'}
    2015-03-05 08:39:17,737 - Skipping u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh
hbaseuscoreubu1287734 /home/hbaseuscoreubu1287734,/tmp/hbaseuscoreubu1287734,/usr/bin/hbaseuscoreubu1287734,/var/log/hbaseuscoreubu1287734,/grid/0/hadoop/hbase']"
due to not_if
    2015-03-05 08:39:17,738 - u"Group['hdfsuscoreubu1287734']" {'ignore_failures': False}
    2015-03-05 08:39:17,739 - Modifying group hdfsuscoreubu1287734
    2015-03-05 08:39:17,825 - u"User['hdfsuscoreubu1287734']" {'ignore_failures': False, 'groups':
[u'hadoopuscoreubu1287734', 'hadoopuscoreubu1287734', 'hdfsuscoreubu1287734', u'hdfsuscoreubu1287734']}
    2015-03-05 08:39:17,825 - Modifying user hdfsuscoreubu1287734
    2015-03-05 08:39:17,870 - u"Directory['/etc/hadoop']" {'mode': 0755}
    2015-03-05 08:39:17,870 - u"Directory['/etc/hadoop/conf.empty']" {'owner': 'hdfsuscoreubu1287734',
'group': 'hadoopuscoreubu1287734', 'recursive': True}
    2015-03-05 08:39:17,871 - u"Link['/etc/hadoop/conf']" {'not_if': 'ls /etc/hadoop/conf',
'to': '/etc/hadoop/conf.empty'}
    2015-03-05 08:39:17,917 - Skipping u"Link['/etc/hadoop/conf']" due to not_if
    2015-03-05 08:39:17,929 - u"File['/etc/hadoop/conf/hadoop-env.sh']" {'content': InlineTemplate(...),
'owner': 'hdfsuscoreubu1287734', 'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:39:17,988 - u"Execute['('setenforce', '0')']" {'sudo': True, 'only_if':
'test -f /selinux/enforce'}
    2015-03-05 08:39:18,052 - Skipping u"Execute['('setenforce', '0')']" due to only_if
    2015-03-05 08:39:18,053 - u"Directory['/grid/0/log/hadoop']" {'owner': 'root', 'mode':
0775, 'group': 'hadoopuscoreubu1287734', 'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:39:18,237 - u"Directory['/var/run/hadoop']" {'owner': 'root', 'group': 'root',
'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:39:18,373 - u"Directory['/tmp/hadoop-hdfsuscoreubu1287734']" {'owner': 'hdfsuscoreubu1287734',
'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:39:18,468 - u"File['/etc/hadoop/conf/commons-logging.properties']" {'content':
Template('commons-logging.properties.j2'), 'owner': 'hdfsuscoreubu1287734'}
    2015-03-05 08:39:18,517 - u"File['/etc/hadoop/conf/health_check']" {'content': Template('health_check-v2.j2'),
'owner': 'hdfsuscoreubu1287734'}
    2015-03-05 08:39:18,565 - u"File['/etc/hadoop/conf/log4j.properties']" {'content': '...',
'owner': 'hdfsuscoreubu1287734', 'group': 'hadoopuscoreubu1287734', 'mode': 0644}
    2015-03-05 08:39:18,622 - u"File['/etc/hadoop/conf/hadoop-metrics2.properties']" {'content':
Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfsuscoreubu1287734'}
    2015-03-05 08:39:18,667 - u"File['/etc/hadoop/conf/task-log4j.properties']" {'content':
StaticFile('task-log4j.properties'), 'mode': 0755}
    2015-03-05 08:39:19,025 - u"Directory['/etc/hive']" {'mode': 0755}
    2015-03-05 08:39:19,026 - u"Directory['/etc/hive/conf']" {'owner': 'hiveuscoreubu1287734',
'group': 'hadoopuscoreubu1287734', 'recursive': True}
    2015-03-05 08:39:19,026 - u"XmlConfig['mapred-site.xml']" {'group': 'hadoopuscoreubu1287734',
'conf_dir': '/etc/hive/conf', 'mode': 0644, 'configuration_attributes': {}, 'owner': 'hiveuscoreubu1287734',
'configurations': ...}
    2015-03-05 08:39:19,040 - Generating config: /etc/hive/conf/mapred-site.xml
    2015-03-05 08:39:19,041 - u"File['/etc/hive/conf/mapred-site.xml']" {'owner': 'hiveuscoreubu1287734',
'content': InlineTemplate(...), 'group': 'hadoopuscoreubu1287734', 'mode': 0644, 'encoding':
'UTF-8'}
    2015-03-05 08:39:19,143 - Writing u"File['/etc/hive/conf/mapred-site.xml']" because contents
don't match
    2015-03-05 08:39:19,234 - u"File['/etc/hive/conf/hive-default.xml.template']" {'owner':
'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:39:19,235 - u"File['/etc/hive/conf/hive-env.sh.template']" {'owner': 'hiveuscoreubu1287734',
'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:39:19,235 - u"File['/etc/hive/conf/hive-exec-log4j.properties']" {'content':
'...', 'owner': 'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734', 'mode': 0644}
    2015-03-05 08:39:19,282 - u"File['/etc/hive/conf/hive-log4j.properties']" {'content':
'...', 'owner': 'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734', 'mode': 0644}
    2015-03-05 08:39:19,327 - u"Directory['/etc/hive/conf.server']" {'owner': 'hiveuscoreubu1287734',
'group': 'hadoopuscoreubu1287734', 'recursive': True}
    2015-03-05 08:39:19,328 - u"XmlConfig['mapred-site.xml']" {'group': 'hadoopuscoreubu1287734',
'conf_dir': '/etc/hive/conf.server', 'mode': 0644, 'configuration_attributes': {}, 'owner':
'hiveuscoreubu1287734', 'configurations': ...}
    2015-03-05 08:39:19,342 - Generating config: /etc/hive/conf.server/mapred-site.xml
    2015-03-05 08:39:19,343 - u"File['/etc/hive/conf.server/mapred-site.xml']" {'owner': 'hiveuscoreubu1287734',
'content': InlineTemplate(...), 'group': 'hadoopuscoreubu1287734', 'mode': 0644, 'encoding':
'UTF-8'}
    2015-03-05 08:39:19,423 - Writing u"File['/etc/hive/conf.server/mapred-site.xml']" because
contents don't match
    2015-03-05 08:39:19,514 - u"File['/etc/hive/conf.server/hive-default.xml.template']" {'owner':
'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:39:19,515 - u"File['/etc/hive/conf.server/hive-env.sh.template']" {'owner':
'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:39:19,516 - u"File['/etc/hive/conf.server/hive-exec-log4j.properties']"
{'content': '...', 'owner': 'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734', 'mode':
0644}
    2015-03-05 08:39:19,561 - u"File['/etc/hive/conf.server/hive-log4j.properties']" {'content':
'...', 'owner': 'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734', 'mode': 0644}
    2015-03-05 08:39:19,610 - u"XmlConfig['hive-site.xml']" {'group': 'hadoopuscoreubu1287734',
'conf_dir': '/etc/hive/conf.server', 'mode': 0644, 'configuration_attributes': {}, 'owner':
'hiveuscoreubu1287734', 'configurations': ...}
    2015-03-05 08:39:19,623 - Generating config: /etc/hive/conf.server/hive-site.xml
    2015-03-05 08:39:19,623 - u"File['/etc/hive/conf.server/hive-site.xml']" {'owner': 'hiveuscoreubu1287734',
'content': InlineTemplate(...), 'group': 'hadoopuscoreubu1287734', 'mode': 0644, 'encoding':
'UTF-8'}
    2015-03-05 08:39:19,794 - Writing u"File['/etc/hive/conf.server/hive-site.xml']" because
contents don't match
    2015-03-05 08:39:19,891 - u"File['/etc/hive/conf.server/hive-env.sh']" {'content': InlineTemplate(...),
'owner': 'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:39:19,938 - u"Execute['('cp', '--remove-destination', '/usr/share/java/mysql-connector-java.jar',
'/usr/hdp/current/hive-metastore/lib/mysql-connector-java.jar')']" {'path': ['/bin', '/usr/bin/'],
'sudo': True}
    2015-03-05 08:39:19,985 - u"File['/usr/lib/ambari-agent/DBConnectionVerification.jar']"
{'content': DownloadSource('http://us-core-ubu12-8773-4.cs1cloud.internal:8080/resources/DBConnectionVerification.jar')}
    2015-03-05 08:39:19,986 - Not downloading the file from http://us-core-ubu12-8773-4.cs1cloud.internal:8080/resources/DBConnectionVerification.jar,
because /var/lib/ambari-agent/data/tmp/DBConnectionVerification.jar already exists
    2015-03-05 08:39:20,033 - u"File['/var/lib/ambari-agent/data/tmp/start_metastore_script']"
{'content': StaticFile('startMetastore.sh'), 'mode': 0755}
    2015-03-05 08:39:20,125 - u"Execute['export HIVE_CONF_DIR=/etc/hive/conf.server ; /usr/hdp/current/hive-metastore/bin/schematool
-initSchema -dbType mysql -userName hive -passWord [PROTECTED]']" {'not_if': 'export HIVE_CONF_DIR=/etc/hive/conf.server
; /usr/hdp/current/hive-metastore/bin/schematool -info -dbType mysql -userName hive -passWord
[PROTECTED]'}
    2015-03-05 08:39:26,005 - Skipping u"Execute['export HIVE_CONF_DIR=/etc/hive/conf.server
; /usr/hdp/current/hive-metastore/bin/schematool -initSchema -dbType mysql -userName hive
-passWord [PROTECTED]']" due to not_if
    2015-03-05 08:39:26,005 - u"Directory['/var/run/hive']" {'owner': 'hiveuscoreubu1287734',
'mode': 0755, 'group': 'hadoopuscoreubu1287734', 'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:39:26,137 - u"Directory['/grid/0/log/hive']" {'owner': 'hiveuscoreubu1287734',
'mode': 0755, 'group': 'hadoopuscoreubu1287734', 'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:39:26,318 - u"Directory['/var/lib/hive']" {'owner': 'hiveuscoreubu1287734',
'mode': 0755, 'group': 'hadoopuscoreubu1287734', 'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:39:26,452 - u"Execute['/var/lib/ambari-agent/data/tmp/start_metastore_script
/grid/0/log/hive/hive.out /grid/0/log/hive/hive.log /var/run/hive/hive.pid /etc/hive/conf.server
/grid/0/log/hive']" {'environment': {'JAVA_HOME': u'/usr/jdk64/jdk1.7.0_67', 'HADOOP_HOME':
'/usr/hdp/current/hadoop-client'}, 'not_if': 'ls /var/run/hive/hive.pid >/dev/null 2>&1
&& ps -p `cat /var/run/hive/hive.pid` >/dev/null 2>&1', 'user': 'hiveuscoreubu1287734',
'path': ['/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/ambari-agent:/usr/hdp/current/hive-metastore/bin:/usr/hdp/current/hadoop-client/bin']}
    2015-03-05 08:39:26,566 - Error while executing command 'start':
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 214, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py",
line 54, in start
        hive_service('metastore', action = 'start')
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py",
line 60, in hive_service
        not_if=process_id_exists_command
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148,
in __init__
        self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
152, in run
        self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
118, in run_action
        provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 276, in action_run
        raise ex
    Fail: Execution of '/var/lib/ambari-agent/data/tmp/start_metastore_script /grid/0/log/hive/hive.out
/grid/0/log/hive/hive.log /var/run/hive/hive.pid /etc/hive/conf.server /grid/0/log/hive' returned
126. -su: /var/lib/ambari-agent/data/tmp/start_metastore_script: Permission denied
    2015-03-05 08:39:26,654 - Command: /usr/bin/hdp-select status hive-metastore > /tmp/tmp414wPl
    Output: hive-metastore - 2.2.2.0-2538
    
    
    
    
    
    /////////////////// Hive server 2
    2015-03-05 08:34:11,724 - Error while executing command 'start':
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 214, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server.py",
line 61, in start
        rolling_restart=rolling_restart )
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py",
line 60, in hive_service
        not_if=process_id_exists_command
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148,
in __init__
        self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
152, in run
        self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
118, in run_action
        provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 276, in action_run
        raise ex
    Fail: Execution of '/var/lib/ambari-agent/data/tmp/start_hiveserver2_script /grid/0/log/hive/hive-server2.out
/grid/0/log/hive/hive-server2.log /var/run/hive/hive-server.pid /etc/hive/conf.server /grid/0/log/hive'
returned 126. -su: /var/lib/ambari-agent/data/tmp/start_hiveserver2_script: Permission denied
    
    stdout:   /var/lib/ambari-agent/data/output-720.txt
    
    2015-03-05 08:33:40,624 - u"Directory['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts/']"
{'recursive': True}
    2015-03-05 08:33:40,625 - u"File['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts//UnlimitedJCEPolicyJDK7.zip']"
{'content': DownloadSource('http://us-core-ubu12-8773-4.cs1cloud.internal:8080/resources//UnlimitedJCEPolicyJDK7.zip')}
    2015-03-05 08:33:40,626 - Not downloading the file from http://us-core-ubu12-8773-4.cs1cloud.internal:8080/resources//UnlimitedJCEPolicyJDK7.zip,
because /var/lib/ambari-agent/data/tmp/UnlimitedJCEPolicyJDK7.zip already exists
    2015-03-05 08:33:40,688 - u"Group['usersuscoreubu1287734']" {'ignore_failures': False}
    2015-03-05 08:33:40,689 - Modifying group usersuscoreubu1287734
    2015-03-05 08:33:40,816 - u"Group['knoxuscoreubu1287734']" {'ignore_failures': False}
    2015-03-05 08:33:40,817 - Modifying group knoxuscoreubu1287734
    2015-03-05 08:33:40,902 - u"Group['sparkuscoreubu1287734']" {'ignore_failures': False}
    2015-03-05 08:33:40,903 - Modifying group sparkuscoreubu1287734
    2015-03-05 08:33:40,989 - u"Group['hadoopuscoreubu1287734']" {'ignore_failures': False}
    2015-03-05 08:33:40,990 - Modifying group hadoopuscoreubu1287734
    2015-03-05 08:33:41,075 - u"User['mapreduscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,076 - Modifying user mapreduscoreubu1287734
    2015-03-05 08:33:41,123 - u"User['hiveuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,124 - Modifying user hiveuscoreubu1287734
    2015-03-05 08:33:41,168 - u"User['flumeuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,169 - Modifying user flumeuscoreubu1287734
    2015-03-05 08:33:41,213 - u"User['hdfsuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,213 - Modifying user hdfsuscoreubu1287734
    2015-03-05 08:33:41,258 - u"User['sparkuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,258 - Modifying user sparkuscoreubu1287734
    2015-03-05 08:33:41,305 - u"User['oozieuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'usersuscoreubu1287734']}
    2015-03-05 08:33:41,306 - Modifying user oozieuscoreubu1287734
    2015-03-05 08:33:41,350 - u"User['stormuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,351 - Modifying user stormuscoreubu1287734
    2015-03-05 08:33:41,395 - u"User['yarnuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,395 - Modifying user yarnuscoreubu1287734
    2015-03-05 08:33:41,439 - u"User['knoxuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,440 - Modifying user knoxuscoreubu1287734
    2015-03-05 08:33:41,485 - u"User['false']" {'gid': 'hadoopuscoreubu1287734', 'ignore_failures':
False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,485 - Modifying user false
    2015-03-05 08:33:41,534 - u"User['falconuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,534 - Modifying user falconuscoreubu1287734
    2015-03-05 08:33:41,579 - u"User['hcatuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,579 - Modifying user hcatuscoreubu1287734
    2015-03-05 08:33:41,624 - u"User['hbaseuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,624 - Modifying user hbaseuscoreubu1287734
    2015-03-05 08:33:41,668 - u"User['zookeeperuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,669 - Modifying user zookeeperuscoreubu1287734
    2015-03-05 08:33:41,713 - u"User['ambari-qauscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'usersuscoreubu1287734']}
    2015-03-05 08:33:41,714 - Modifying user ambari-qauscoreubu1287734
    2015-03-05 08:33:41,758 - u"User['amsuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,759 - Modifying user amsuscoreubu1287734
    2015-03-05 08:33:41,803 - u"User['tezuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'usersuscoreubu1287734']}
    2015-03-05 08:33:41,804 - Modifying user tezuscoreubu1287734
    2015-03-05 08:33:41,849 - u"User['sqoopuscoreubu1287734']" {'gid': 'hadoopuscoreubu1287734',
'ignore_failures': False, 'groups': [u'hadoopuscoreubu1287734']}
    2015-03-05 08:33:41,849 - Modifying user sqoopuscoreubu1287734
    2015-03-05 08:33:41,894 - u"File['/var/lib/ambari-agent/data/tmp/changeUid.sh']" {'content':
StaticFile('changeToSecureUid.sh'), 'mode': 0555}
    2015-03-05 08:33:41,983 - u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh ambari-qauscoreubu1287734
/tmp/hadoop-ambari-qauscoreubu1287734,/tmp/hsperfdata_ambari-qauscoreubu1287734,/home/ambari-qauscoreubu1287734,/tmp/ambari-qauscoreubu1287734,/tmp/sqoop-ambari-qauscoreubu1287734']"
{'not_if': '(test $(id -u ambari-qauscoreubu1287734) -gt 1000) || (false)'}
    2015-03-05 08:33:42,026 - Skipping u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh
ambari-qauscoreubu1287734 /tmp/hadoop-ambari-qauscoreubu1287734,/tmp/hsperfdata_ambari-qauscoreubu1287734,/home/ambari-qauscoreubu1287734,/tmp/ambari-qauscoreubu1287734,/tmp/sqoop-ambari-qauscoreubu1287734']"
due to not_if
    2015-03-05 08:33:42,027 - u"Directory['/grid/0/hadoop/hbase']" {'owner': 'hbaseuscoreubu1287734',
'recursive': True, 'mode': 0775, 'cd_access': 'a'}
    2015-03-05 08:33:42,202 - u"File['/var/lib/ambari-agent/data/tmp/changeUid.sh']" {'content':
StaticFile('changeToSecureUid.sh'), 'mode': 0555}
    2015-03-05 08:33:42,290 - u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh hbaseuscoreubu1287734
/home/hbaseuscoreubu1287734,/tmp/hbaseuscoreubu1287734,/usr/bin/hbaseuscoreubu1287734,/var/log/hbaseuscoreubu1287734,/grid/0/hadoop/hbase']"
{'not_if': '(test $(id -u hbaseuscoreubu1287734) -gt 1000) || (false)'}
    2015-03-05 08:33:42,333 - Skipping u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh
hbaseuscoreubu1287734 /home/hbaseuscoreubu1287734,/tmp/hbaseuscoreubu1287734,/usr/bin/hbaseuscoreubu1287734,/var/log/hbaseuscoreubu1287734,/grid/0/hadoop/hbase']"
due to not_if
    2015-03-05 08:33:42,334 - u"Group['hdfsuscoreubu1287734']" {'ignore_failures': False}
    2015-03-05 08:33:42,334 - Modifying group hdfsuscoreubu1287734
    2015-03-05 08:33:42,458 - u"User['hdfsuscoreubu1287734']" {'ignore_failures': False, 'groups':
[u'hadoopuscoreubu1287734', 'hadoopuscoreubu1287734', 'hdfsuscoreubu1287734', u'hdfsuscoreubu1287734']}
    2015-03-05 08:33:42,459 - Modifying user hdfsuscoreubu1287734
    2015-03-05 08:33:42,506 - u"Directory['/etc/hadoop']" {'mode': 0755}
    2015-03-05 08:33:42,507 - u"Directory['/etc/hadoop/conf.empty']" {'owner': 'hdfsuscoreubu1287734',
'group': 'hadoopuscoreubu1287734', 'recursive': True}
    2015-03-05 08:33:42,508 - u"Link['/etc/hadoop/conf']" {'not_if': 'ls /etc/hadoop/conf',
'to': '/etc/hadoop/conf.empty'}
    2015-03-05 08:33:42,558 - Skipping u"Link['/etc/hadoop/conf']" due to not_if
    2015-03-05 08:33:42,573 - u"File['/etc/hadoop/conf/hadoop-env.sh']" {'content': InlineTemplate(...),
'owner': 'hdfsuscoreubu1287734', 'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:33:42,633 - u"Execute['('setenforce', '0')']" {'sudo': True, 'only_if':
'test -f /selinux/enforce'}
    2015-03-05 08:33:42,693 - Skipping u"Execute['('setenforce', '0')']" due to only_if
    2015-03-05 08:33:42,694 - u"Directory['/grid/0/log/hadoop']" {'owner': 'root', 'mode':
0775, 'group': 'hadoopuscoreubu1287734', 'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:33:42,878 - u"Directory['/var/run/hadoop']" {'owner': 'root', 'group': 'root',
'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:33:43,008 - u"Directory['/tmp/hadoop-hdfsuscoreubu1287734']" {'owner': 'hdfsuscoreubu1287734',
'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:33:43,109 - u"File['/etc/hadoop/conf/commons-logging.properties']" {'content':
Template('commons-logging.properties.j2'), 'owner': 'hdfsuscoreubu1287734'}
    2015-03-05 08:33:43,160 - u"File['/etc/hadoop/conf/health_check']" {'content': Template('health_check-v2.j2'),
'owner': 'hdfsuscoreubu1287734'}
    2015-03-05 08:33:43,206 - u"File['/etc/hadoop/conf/log4j.properties']" {'content': '...',
'owner': 'hdfsuscoreubu1287734', 'group': 'hadoopuscoreubu1287734', 'mode': 0644}
    2015-03-05 08:33:43,270 - u"File['/etc/hadoop/conf/hadoop-metrics2.properties']" {'content':
Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfsuscoreubu1287734'}
    2015-03-05 08:33:43,315 - u"File['/etc/hadoop/conf/task-log4j.properties']" {'content':
StaticFile('task-log4j.properties'), 'mode': 0755}
    2015-03-05 08:33:43,624 - u"HdfsDirectory['/apps/hive/warehouse']" {'security_enabled':
False, 'keytab': [EMPTY], 'conf_dir': '/etc/hadoop/conf', 'hdfs_user': 'hdfsuscoreubu1287734',
'kinit_path_local': '', 'mode': 0777, 'owner': 'hiveuscoreubu1287734', 'bin_dir': '/usr/hdp/current/hadoop-client/bin',
'action': ['create_delayed']}
    2015-03-05 08:33:43,625 - u"HdfsDirectory['/user/hiveuscoreubu1287734']" {'security_enabled':
False, 'keytab': [EMPTY], 'conf_dir': '/etc/hadoop/conf', 'hdfs_user': 'hdfsuscoreubu1287734',
'kinit_path_local': '', 'mode': 0700, 'owner': 'hiveuscoreubu1287734', 'bin_dir': '/usr/hdp/current/hadoop-client/bin',
'action': ['create_delayed']}
    2015-03-05 08:33:43,625 - u"HdfsDirectory['None']" {'security_enabled': False, 'keytab':
[EMPTY], 'conf_dir': '/etc/hadoop/conf', 'hdfs_user': 'hdfsuscoreubu1287734', 'kinit_path_local':
'', 'action': ['create'], 'bin_dir': '/usr/hdp/current/hadoop-client/bin'}
    2015-03-05 08:33:43,627 - u"Execute['hadoop --config /etc/hadoop/conf fs -mkdir -p /apps/hive/warehouse
/user/hiveuscoreubu1287734 && hadoop --config /etc/hadoop/conf fs -chmod  777 /apps/hive/warehouse
&& hadoop --config /etc/hadoop/conf fs -chmod  700 /user/hiveuscoreubu1287734 &&
hadoop --config /etc/hadoop/conf fs -chown  hiveuscoreubu1287734 /apps/hive/warehouse /user/hiveuscoreubu1287734']"
{'not_if': "ambari-sudo.sh su hdfsuscoreubu1287734 -l -s /bin/bash -c 'hadoop --config /etc/hadoop/conf
fs -ls /apps/hive/warehouse /user/hiveuscoreubu1287734'", 'user': 'hdfsuscoreubu1287734',
'path': ['/usr/hdp/current/hadoop-client/bin']}
    2015-03-05 08:33:46,944 - Skipping u"Execute['hadoop --config /etc/hadoop/conf fs -mkdir
-p /apps/hive/warehouse /user/hiveuscoreubu1287734 && hadoop --config /etc/hadoop/conf
fs -chmod  777 /apps/hive/warehouse && hadoop --config /etc/hadoop/conf fs -chmod
 700 /user/hiveuscoreubu1287734 && hadoop --config /etc/hadoop/conf fs -chown  hiveuscoreubu1287734
/apps/hive/warehouse /user/hiveuscoreubu1287734']" due to not_if
    2015-03-05 08:33:46,944 - u"Directory['/etc/hive']" {'mode': 0755}
    2015-03-05 08:33:46,946 - u"Directory['/etc/hive/conf']" {'owner': 'hiveuscoreubu1287734',
'group': 'hadoopuscoreubu1287734', 'recursive': True}
    2015-03-05 08:33:46,947 - u"XmlConfig['mapred-site.xml']" {'group': 'hadoopuscoreubu1287734',
'conf_dir': '/etc/hive/conf', 'mode': 0644, 'configuration_attributes': {}, 'owner': 'hiveuscoreubu1287734',
'configurations': ...}
    2015-03-05 08:33:46,966 - Generating config: /etc/hive/conf/mapred-site.xml
    2015-03-05 08:33:46,966 - u"File['/etc/hive/conf/mapred-site.xml']" {'owner': 'hiveuscoreubu1287734',
'content': InlineTemplate(...), 'group': 'hadoopuscoreubu1287734', 'mode': 0644, 'encoding':
'UTF-8'}
    2015-03-05 08:33:47,049 - Writing u"File['/etc/hive/conf/mapred-site.xml']" because contents
don't match
    2015-03-05 08:33:47,145 - u"File['/etc/hive/conf/hive-default.xml.template']" {'owner':
'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:33:47,146 - u"File['/etc/hive/conf/hive-env.sh.template']" {'owner': 'hiveuscoreubu1287734',
'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:33:47,146 - u"File['/etc/hive/conf/hive-exec-log4j.properties']" {'content':
'...', 'owner': 'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734', 'mode': 0644}
    2015-03-05 08:33:47,191 - u"File['/etc/hive/conf/hive-log4j.properties']" {'content':
'...', 'owner': 'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734', 'mode': 0644}
    2015-03-05 08:33:47,235 - u"Directory['/etc/hive/conf.server']" {'owner': 'hiveuscoreubu1287734',
'group': 'hadoopuscoreubu1287734', 'recursive': True}
    2015-03-05 08:33:47,235 - u"XmlConfig['mapred-site.xml']" {'group': 'hadoopuscoreubu1287734',
'conf_dir': '/etc/hive/conf.server', 'mode': 0644, 'configuration_attributes': {}, 'owner':
'hiveuscoreubu1287734', 'configurations': ...}
    2015-03-05 08:33:47,246 - Generating config: /etc/hive/conf.server/mapred-site.xml
    2015-03-05 08:33:47,247 - u"File['/etc/hive/conf.server/mapred-site.xml']" {'owner': 'hiveuscoreubu1287734',
'content': InlineTemplate(...), 'group': 'hadoopuscoreubu1287734', 'mode': 0644, 'encoding':
'UTF-8'}
    2015-03-05 08:33:47,328 - Writing u"File['/etc/hive/conf.server/mapred-site.xml']" because
contents don't match
    2015-03-05 08:33:47,417 - u"File['/etc/hive/conf.server/hive-default.xml.template']" {'owner':
'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:33:47,418 - u"File['/etc/hive/conf.server/hive-env.sh.template']" {'owner':
'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:33:47,420 - u"File['/etc/hive/conf.server/hive-exec-log4j.properties']"
{'content': '...', 'owner': 'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734', 'mode':
0644}
    2015-03-05 08:33:47,466 - u"File['/etc/hive/conf.server/hive-log4j.properties']" {'content':
'...', 'owner': 'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734', 'mode': 0644}
    2015-03-05 08:33:47,511 - u"XmlConfig['hive-site.xml']" {'group': 'hadoopuscoreubu1287734',
'conf_dir': '/etc/hive/conf.server', 'mode': 0644, 'configuration_attributes': {}, 'owner':
'hiveuscoreubu1287734', 'configurations': ...}
    2015-03-05 08:33:47,524 - Generating config: /etc/hive/conf.server/hive-site.xml
    2015-03-05 08:33:47,524 - u"File['/etc/hive/conf.server/hive-site.xml']" {'owner': 'hiveuscoreubu1287734',
'content': InlineTemplate(...), 'group': 'hadoopuscoreubu1287734', 'mode': 0644, 'encoding':
'UTF-8'}
    2015-03-05 08:33:47,692 - Writing u"File['/etc/hive/conf.server/hive-site.xml']" because
contents don't match
    2015-03-05 08:33:47,783 - u"XmlConfig['hiveserver2-site.xml']" {'group': 'hadoopuscoreubu1287734',
'conf_dir': '/etc/hive/conf.server', 'mode': 0644, 'configuration_attributes': {}, 'owner':
'hiveuscoreubu1287734', 'configurations': {u'hive.security.authenticator.manager': u'org.apache.hadoop.hive.ql.security.SessionStateUserAuthenticator',
u'hive.security.authorization.manager': u'org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory'}}
    2015-03-05 08:33:47,797 - Generating config: /etc/hive/conf.server/hiveserver2-site.xml
    2015-03-05 08:33:47,798 - u"File['/etc/hive/conf.server/hiveserver2-site.xml']" {'owner':
'hiveuscoreubu1287734', 'content': InlineTemplate(...), 'group': 'hadoopuscoreubu1287734',
'mode': 0644, 'encoding': 'UTF-8'}
    2015-03-05 08:33:47,846 - Writing u"File['/etc/hive/conf.server/hiveserver2-site.xml']"
because contents don't match
    2015-03-05 08:33:47,944 - u"File['/etc/hive/conf.server/hive-env.sh']" {'content': InlineTemplate(...),
'owner': 'hiveuscoreubu1287734', 'group': 'hadoopuscoreubu1287734'}
    2015-03-05 08:33:47,995 - u"Execute['('cp', '--remove-destination', '/usr/share/java/mysql-connector-java.jar',
'/usr/hdp/current/hive-server2/lib/mysql-connector-java.jar')']" {'path': ['/bin', '/usr/bin/'],
'sudo': True}
    2015-03-05 08:33:48,045 - u"File['/usr/lib/ambari-agent/DBConnectionVerification.jar']"
{'content': DownloadSource('http://us-core-ubu12-8773-4.cs1cloud.internal:8080/resources/DBConnectionVerification.jar')}
    2015-03-05 08:33:48,046 - Not downloading the file from http://us-core-ubu12-8773-4.cs1cloud.internal:8080/resources/DBConnectionVerification.jar,
because /var/lib/ambari-agent/data/tmp/DBConnectionVerification.jar already exists
    2015-03-05 08:33:48,093 - u"File['/var/lib/ambari-agent/data/tmp/start_hiveserver2_script']"
{'content': Template('startHiveserver2.sh.j2'), 'mode': 0755}
    2015-03-05 08:33:48,138 - u"Directory['/var/run/hive']" {'owner': 'hiveuscoreubu1287734',
'mode': 0755, 'group': 'hadoopuscoreubu1287734', 'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:33:48,275 - u"Directory['/grid/0/log/hive']" {'owner': 'hiveuscoreubu1287734',
'mode': 0755, 'group': 'hadoopuscoreubu1287734', 'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:33:48,455 - u"Directory['/var/lib/hive']" {'owner': 'hiveuscoreubu1287734',
'mode': 0755, 'group': 'hadoopuscoreubu1287734', 'recursive': True, 'cd_access': 'a'}
    2015-03-05 08:33:48,635 - u"ExecuteHadoop['fs -ls hdfs:///hdp/apps/2.2.2.0-2538/mapreduce/mapreduce.tar.gz']"
{'logoutput': True, 'bin_dir': '/usr/hdp/current/hadoop-client/bin', 'user': 'tezuscoreubu1287734',
'conf_dir': '/etc/hadoop/conf'}
    2015-03-05 08:33:48,636 - u"Execute['hadoop --config /etc/hadoop/conf fs -ls hdfs:///hdp/apps/2.2.2.0-2538/mapreduce/mapreduce.tar.gz']"
{'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'tezuscoreubu1287734',
'path': ['/usr/hdp/current/hadoop-client/bin']}
    -r--r--r--   3 hdfsuscoreubu1287734 hadoopuscoreubu1287734  192721534 2015-03-05 03:12
hdfs:///hdp/apps/2.2.2.0-2538/mapreduce/mapreduce.tar.gz
    2015-03-05 08:33:52,020 - u"ExecuteHadoop['fs -ls hdfs:///hdp/apps/2.2.2.0-2538/tez/tez.tar.gz']"
{'logoutput': True, 'bin_dir': '/usr/hdp/current/hadoop-client/bin', 'user': 'tezuscoreubu1287734',
'conf_dir': '/etc/hadoop/conf'}
    2015-03-05 08:33:52,022 - u"Execute['hadoop --config /etc/hadoop/conf fs -ls hdfs:///hdp/apps/2.2.2.0-2538/tez/tez.tar.gz']"
{'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'tezuscoreubu1287734',
'path': ['/usr/hdp/current/hadoop-client/bin']}
    -r--r--r--   3 hdfsuscoreubu1287734 hadoopuscoreubu1287734   40657836 2015-03-05 04:42
hdfs:///hdp/apps/2.2.2.0-2538/tez/tez.tar.gz
    2015-03-05 08:33:55,580 - Ranger admin not installed
    2015-03-05 08:33:55,583 - call['hive --config /etc/hive/conf.server --service metatool
-listFSRoot 2>/dev/null | grep hdfs:// | grep -v '.db$''] {'user': 'hiveuscoreubu1287734',
'env': {'PATH': '/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/ambari-agent:/usr/hdp/current/hive-server2/bin:/usr/hdp/current/hadoop-client/bin'}}
    2015-03-05 08:34:11,530 - u"Execute['/var/lib/ambari-agent/data/tmp/start_hiveserver2_script
/grid/0/log/hive/hive-server2.out /grid/0/log/hive/hive-server2.log /var/run/hive/hive-server.pid
/etc/hive/conf.server /grid/0/log/hive']" {'environment': {'JAVA_HOME': u'/usr/jdk64/jdk1.7.0_67',
'HADOOP_HOME': '/usr/hdp/current/hadoop-client'}, 'not_if': 'ls /var/run/hive/hive-server.pid
>/dev/null 2>&1 && ps -p `cat /var/run/hive/hive-server.pid` >/dev/null
2>&1', 'user': 'hiveuscoreubu1287734', 'path': ['/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/ambari-agent:/usr/hdp/current/hive-server2/bin:/usr/hdp/current/hadoop-client/bin']}
    2015-03-05 08:34:11,724 - Error while executing command 'start':
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 214, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server.py",
line 61, in start
        rolling_restart=rolling_restart )
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py",
line 60, in hive_service
        not_if=process_id_exists_command
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148,
in __init__
        self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
152, in run
        self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
118, in run_action
        provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 276, in action_run
        raise ex
    Fail: Execution of '/var/lib/ambari-agent/data/tmp/start_hiveserver2_script /grid/0/log/hive/hive-server2.out
/grid/0/log/hive/hive-server2.log /var/run/hive/hive-server.pid /etc/hive/conf.server /grid/0/log/hive'
returned 126. -su: /var/lib/ambari-agent/data/tmp/start_hiveserver2_script: Permission denied
    2015-03-05 08:34:11,858 - Command: /usr/bin/hdp-select status hive-server2 > /tmp/tmpgZQoMG
    Output: hive-server2 - 2.2.2.0-2538


Diffs
-----

  ambari-agent/conf/unix/install-helper.sh e0c348c 

Diff: https://reviews.apache.org/r/31796/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message