Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Running into an error on the ambari install -- error starting the History Server

Running into an error on the ambari install -- error starting the History Server

New Contributor

I will include the output for the issue from ambari -- the issue occurs when I am starting up the History Server. Has anyone seen this before or know what I might have configured incorrectly?

stderr: /var/lib/ambari-agent/data/errors-273.txt

Traceback (most recent call last):

File "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/historyserver.py", line 176, in <module>
	HistoryServer().execute()

File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 216, in execute
	method(env)

File "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/historyserver.py", line 91, in start
	self.configure(env) # FOR SECURITY

File "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/historyserver.py", line 55, in configure
	yarn(name="historyserver")

File ";/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py", line 33, in yarn    
	params.HdfsDirectory(params.yarn_nm_app_log_dir,

AttributeError: 'module' object has no attribute 'HdfsDirectory'

stdout:   /var/lib/ambari-agent/data/output-273.txt

2015-12-11 14:38:46,325 - Group['spark'] {}2015-12-11 14:38:46,326 - Group['hadoop'] {}2015-12-11 14:38:46,327 - Group['users'] {}2015-12-11 14:38:46,327 - User['hive'] {'gid': 'hadoop', 'groups': ['hadoop']}2015-12-11 14:38:46,328 - User['storm'] {'gid': 'hadoop', 'groups': ['hadoop']}2015-12-11 14:38:46,328 - User['zookeeper'] {'gid': 'hadoop', 'groups': ['hadoop']}2015-12-11 14:38:46,329 - User['oozie'] {'gid': 'hadoop', 'groups': ['users']}2015-12-11 14:38:46,330 - User['tez'] {'gid': 'hadoop', 'groups': ['users']}2015-12-11 14:38:46,330 - User['spark'] {'gid': 'hadoop', 'groups': ['hadoop']}2015-12-11 14:38:46,331 - User['ambari-qa'] {'gid': 'hadoop', 'groups': ['users']}2015-12-11 14:38:46,331 - User['kafka'] {'gid': 'hadoop', 'groups': ['hadoop']}2015-12-11 14:38:46,332 - User['hdfs'] {'gid': 'hadoop', 'groups': ['hadoop']}2015-12-11 14:38:46,333 - User['sqoop'] {'gid': 'hadoop', 'groups': ['hadoop']}2015-12-11 14:38:46,333 - User['yarn'] {'gid': 'hadoop', 'groups': ['hadoop']}2015-12-11 14:38:46,334 - User['mapred'] {'gid': 'hadoop', 'groups': ['hadoop']}2015-12-11 14:38:46,335 - User['hbase'] {'gid': 'hadoop', 'groups': ['hadoop']}2015-12-11 14:38:46,335 - User['hcat'] {'gid': 'hadoop', 'groups': ['hadoop']}2015-12-11 14:38:46,336 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}2015-12-11 14:38:46,337 - 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)'}2015-12-11 14:38:46,345 - 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_if2015-12-11 14:38:46,346 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'recursive': True, 'mode': 0775, 'cd_access': 'a'}2015-12-11 14:38:46,347 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}2015-12-11 14:38:46,348 - 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)'}2015-12-11 14:38:46,356 - 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_if2015-12-11 14:38:46,356 - Group['hdfs'] {'ignore_failures': False}2015-12-11 14:38:46,356 - User['hdfs'] {'ignore_failures': False, 'groups': ['hadoop', 'hdfs']}2015-12-11 14:38:46,357 - Directory['/etc/hadoop'] {'mode': 0755}2015-12-11 14:38:46,374 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}2015-12-11 14:38:46,375 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 0777}2015-12-11 14:38:46,386 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce && getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'}2015-12-11 14:38:46,395 - Skipping Execute[('setenforce', '0')] due to not_if2015-12-11 14:38:46,396 - Directory['/var/log/hadoop'] {'owner': 'root', 'mode': 0775, 'group': 'hadoop', 'recursive': True, 'cd_access': 'a'}2015-12-11 14:38:46,398 - Directory['/var/run/hadoop'] {'owner': 'root', 'group': 'root', 'recursive': True, 'cd_access': 'a'}2015-12-11 14:38:46,398 - Changing owner for /var/run/hadoop from 909 to root2015-12-11 14:38:46,398 - Changing group for /var/run/hadoop from 1002 to root2015-12-11 14:38:46,399 - Directory['/tmp/hadoop-hdfs'] {'owner': 'hdfs', 'recursive': True, 'cd_access': 'a'}2015-12-11 14:38:46,403 - File['/usr/hdp/current/hadoop-client/conf/commons-logging.properties'] {'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'}2015-12-11 14:38:46,405 - File['/usr/hdp/current/hadoop-client/conf/health_check'] {'content': Template('health_check.j2'), 'owner': 'hdfs'}2015-12-11 14:38:46,406 - File['/usr/hdp/current/hadoop-client/conf/log4j.properties'] {'content': ..., 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644}2015-12-11 14:38:46,417 - File['/usr/hdp/current/hadoop-client/conf/hadoop-metrics2.properties'] {'content': Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfs'}2015-12-11 14:38:46,418 - File['/usr/hdp/current/hadoop-client/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'), 'mode': 0755}2015-12-11 14:38:46,419 - File['/usr/hdp/current/hadoop-client/conf/configuration.xsl'] {'owner': 'hdfs', 'group': 'hadoop'}2015-12-11 14:38:46,424 - File['/etc/hadoop/conf/topology_mappings.data'] {'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'only_if': 'test -d /etc/hadoop/conf', 'group': 'hadoop'}2015-12-11 14:38:46,431 - File['/etc/hadoop/conf/topology_script.py'] {'content': StaticFile('topology_script.py'), 'only_if': 'test -d /etc/hadoop/conf', 'mode': 0755}
3 REPLIES 3

Re: Running into an error on the ambari install -- error starting the History Server

@Eric Krenz What happens when retry? How about the other services?

Re: Running into an error on the ambari install -- error starting the History Server

New Contributor

On retry it will fail again, I have recreated the cluster multiple times and run into the same issue (this is a virtual install on Openstack)

Highlighted

Re: Running into an error on the ambari install -- error starting the History Server

Rising Star

Please paste logs from history server.

Don't have an account?
Coming from Hortonworks? Activate your account here