jiafeng.zhang created AMBARI-18797:
--------------------------------------

             Summary: ambari-metrics-monitor
                 Key: AMBARI-18797
                 URL: https://issues.apache.org/jira/browse/AMBARI-18797
             Project: Ambari
          Issue Type: Bug
          Components: metrics
    Affects Versions: 2.4.0
            Reporter: jiafeng.zhang


stderr: 
Traceback (most recent call last):
  File 
"/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
 line 68, in <module>
    AmsMonitor().execute()
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
 line 280, in execute
    method(env)
  File 
"/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
 line 28, in install
    import params
  File 
"/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py",
 line 28, in <module>
    import status_params
  File 
"/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/status_params.py",
 line 38, in <module>
    kinit_path_local = 
functions.get_kinit_path(default('/configurations/kerberos-env/executable_search_paths',
 None))
NameError: name 'functions' is not defined
 stdout:
2016-11-03 14:51:02,044 - The hadoop conf dir 
/usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for 
version 2.5.0.0-1245
2016-11-03 14:51:02,045 - Checking if need to create versioned conf dir 
/etc/hadoop/2.5.0.0-1245/0
2016-11-03 14:51:02,046 - call[('ambari-python-wrap', '/usr/bin/conf-select', 
'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.0.0-1245', 
'--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 
'stderr': -1}
2016-11-03 14:51:02,107 - call returned (1, '/etc/hadoop/2.5.0.0-1245/0 exist 
already', '')
2016-11-03 14:51:02,108 - checked_call[('ambari-python-wrap', 
'/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', 
'--stack-version', '2.5.0.0-1245', '--conf-version', '0')] {'logoutput': False, 
'sudo': True, 'quiet': False}
2016-11-03 14:51:02,169 - checked_call returned (0, '')
2016-11-03 14:51:02,170 - Ensuring that hadoop has the correct symlink structure
2016-11-03 14:51:02,170 - Using hadoop conf dir: 
/usr/hdp/current/hadoop-client/conf
2016-11-03 14:51:02,173 - Group['hadoop'] {}
2016-11-03 14:51:02,176 - Group['users'] {}
2016-11-03 14:51:02,177 - Group['zeppelin'] {}
2016-11-03 14:51:02,177 - Group['spark'] {}
2016-11-03 14:51:02,178 - Group['livy'] {}
2016-11-03 14:51:02,179 - User['hive'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,180 - User['zeppelin'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,182 - User['ambari-qa'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['users']}
2016-11-03 14:51:02,183 - User['flume'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,185 - User['hdfs'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,186 - User['infra-solr'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,188 - User['spark'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,189 - User['livy'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,190 - User['mapred'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,192 - User['hbase'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,193 - User['tez'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['users']}
2016-11-03 14:51:02,195 - User['zookeeper'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,196 - User['kafka'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,197 - User['yarn'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,199 - User['hcat'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,200 - User['ams'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2016-11-03 14:51:02,202 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] 
{'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2016-11-03 14:51:02,206 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh 
ambari-qa 
/tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa']
 {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2016-11-03 14:51:02,228 - Skipping 
Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa 
/tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa']
 due to not_if
2016-11-03 14:51:02,229 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 
'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
2016-11-03 14:51:02,231 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] 
{'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2016-11-03 14:51:02,234 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase 
/home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] 
{'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2016-11-03 14:51:02,255 - Skipping 
Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase 
/home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] due to 
not_if
2016-11-03 14:51:02,256 - Group['hdfs'] {}
2016-11-03 14:51:02,257 - User['hdfs'] {'fetch_nonlocal_groups': True, 
'groups': ['hadoop', 'hdfs']}
2016-11-03 14:51:02,258 - FS Type: 
2016-11-03 14:51:02,259 - Directory['/etc/hadoop'] {'mode': 0755}
2016-11-03 14:51:02,297 - 
File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': 
InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2016-11-03 14:51:02,298 - 
Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 
'group': 'hadoop', 'mode': 01777}
2016-11-03 14:51:02,327 - Initializing 2 repositories
2016-11-03 14:51:02,328 - Repository['HDP-2.5'] {'base_url': 
'http://dpnode11/HDP/centos6/2.x/updates/2.5.0.0', 'action': ['create'], 
'components': ['HDP', 'main'], 'repo_template': 
'[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list 
%}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif 
%}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'HDP', 'mirror_list': 
None}
2016-11-03 14:51:02,346 - File['/etc/yum.repos.d/HDP.repo'] {'content': 
'[HDP-2.5]\nname=HDP-2.5\nbaseurl=http://dpnode11/HDP/centos6/2.x/updates/2.5.0.0\n\npath=/\nenabled=1\ngpgcheck=0'}
2016-11-03 14:51:02,348 - Repository['HDP-UTILS-1.1.0.21'] {'base_url': 
'http://dpnode11/HDP-UTILS-1.1.0.21/repos/centos6', 'action': ['create'], 
'components': ['HDP-UTILS', 'main'], 'repo_template': 
'[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list 
%}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif 
%}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'HDP-UTILS', 
'mirror_list': None}
2016-11-03 14:51:02,356 - File['/etc/yum.repos.d/HDP-UTILS.repo'] {'content': 
'[HDP-UTILS-1.1.0.21]\nname=HDP-UTILS-1.1.0.21\nbaseurl=http://dpnode11/HDP-UTILS-1.1.0.21/repos/centos6\n\npath=/\nenabled=1\ngpgcheck=0'}
2016-11-03 14:51:02,357 - Package['unzip'] {'retry_on_repo_unavailability': 
False, 'retry_count': 5}
2016-11-03 14:51:02,467 - Skipping installation of existing package unzip
2016-11-03 14:51:02,468 - Package['curl'] {'retry_on_repo_unavailability': 
False, 'retry_count': 5}
2016-11-03 14:51:02,487 - Skipping installation of existing package curl
2016-11-03 14:51:02,488 - Package['hdp-select'] 
{'retry_on_repo_unavailability': False, 'retry_count': 5}
2016-11-03 14:51:02,507 - Skipping installation of existing package hdp-select
2016-11-03 14:51:02,875 - The hadoop conf dir 
/usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for 
version 2.5.0.0-1245
2016-11-03 14:51:02,876 - Checking if need to create versioned conf dir 
/etc/hadoop/2.5.0.0-1245/0
2016-11-03 14:51:02,877 - call[('ambari-python-wrap', '/usr/bin/conf-select', 
'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.0.0-1245', 
'--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 
'stderr': -1}
2016-11-03 14:51:02,941 - call returned (1, '/etc/hadoop/2.5.0.0-1245/0 exist 
already', '')
2016-11-03 14:51:02,942 - checked_call[('ambari-python-wrap', 
'/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', 
'--stack-version', '2.5.0.0-1245', '--conf-version', '0')] {'logoutput': False, 
'sudo': True, 'quiet': False}
2016-11-03 14:51:03,002 - checked_call returned (0, '')
2016-11-03 14:51:03,004 - Ensuring that hadoop has the correct symlink structure
2016-11-03 14:51:03,005 - Using hadoop conf dir: 
/usr/hdp/current/hadoop-client/conf

Command failed after 1 tries




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to