Hadoop hdfs.xml permissions issue causes app Timeline Server service not to start properly

Source: Internet
Author: User
Recent Operation Ambari Restart ResourceManager app Timeline Server service does not start normally, the Ambari interface error is as follows:

4-file['/var/run/hadoop-yarn/yarn/yarn-yarn-timelineserver.pid ' {' Action ': [' delete '], ' not_if ': ' ls/var/run/ Hadoop-yarn/yarn/yarn-yarn-timelineserver.pid >/dev/null 2>&1 && ps ' Cat/var/run/hadoop-yarn/yarn /yarn-yarn-timelineserver.pid ' >/dev/null 2>&1 '}
2016-04-19 19:02:42,747-execute[' ulimit-c unlimited; export hadoop_libexec_dir=/usr/lib/hadoop/libexec &&/ usr/lib/hadoop-yarn/sbin/yarn-daemon.sh--config/etc/hadoop/conf start Timelineserver '] {' not_if ': ' ls/var/run/ Hadoop-yarn/yarn/yarn-yarn-timelineserver.pid >/dev/null 2>&1 && ps ' Cat/var/run/hadoop-yarn/yarn /yarn-yarn-timelineserver.pid ' >/dev/null 2>&1 ', ' user ': ' Yarn '}
2016-04-19 19:02:43,833-execute[' Ls/var/run/hadoop-yarn/yarn/yarn-yarn-timelineserver.pid >/dev/null 2> &1 && ps ' cat/var/run/hadoop-yarn/yarn/yarn-yarn-timelineserver.pid ' >/dev/null 2>&1 '] {' Initial_wait ': 5, ' not_if ': ' Ls/var/run/hadoop-yarn/yarn/yarn-yarn-timelineserver.pid >/dev/null 2>&1 && ps ' cat/var/run/hadoop-yarn/yarn/yarn-yarn-timelineserver.pid ' >/dev/null 2>&1 ', ' user ': ' Yarn ' }
2016-04-19 19:02:48,936-error while executing command ' start ':
Traceback (most recent):
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 123, in Execute
Method (env)
File "/var/lib/ambari-agent/cache/stacks/hdp/2.0.6/services/yarn/package/scripts/application_timeline_server.py ", line A, in start
Service (' Timelineserver ', action= ' start ')
File "/var/lib/ambari-agent/cache/stacks/hdp/2.0.6/services/yarn/package/scripts/service.py", line +, in service
Initial_wait=5
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 149, in run
Self.run_action (resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line +, in Run_action
Provider_action ()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 241, in Action_run
Raise EX
Fail:execution of ' ls/var/run/hadoop-yarn/yarn/yarn-yarn-timelineserver.pid >/dev/null 2>&1 && ps ' Cat/var/run/hadoop-yarn/yarn/yarn-yarn-timelineserver.pid ' >/dev/null 2>&1 ' returned 1.


Try to delete the/var/run/hadoop-yarn/yarn/yarn-yarn-timelineserver.pid file, start again, no results.

To view the log on the server, send the following content:

Vi/var/log/hadoop-yarn/yarn/yarn-yarn-timelineserver.log (according to your own file name)

At Org.apache.hadoop.fs.FileSystem.get (filesystem.java:368)
At Org.apache.hadoop.fs.FileSystem.getLocal (filesystem.java:339)
At Org.apache.hadoop.yarn.server.timeline.LeveldbTimelineStore.serviceInit (leveldbtimelinestore.java:183)
At Org.apache.hadoop.service.AbstractService.init (abstractservice.java:163)
At Org.apache.hadoop.service.CompositeService.serviceInit (compositeservice.java:107)
At Org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.serviceInit ( APPLICATIONHISTORYSERVER.JAVA:88)
At Org.apache.hadoop.service.AbstractService.init (abstractservice.java:163)
At Org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.launchAppHistoryServer ( applicationhistoryserver.java:145)
At Org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.main ( applicationhistoryserver.java:155)
Caused by:java.io.FileNotFoundException:/etc/hadoop/conf.empty/hdfs-site.xml (Permission denied)
At Java.io.FileInputStream.open (Native Method)
At Java.io.fileinputstream.<init> (fileinputstream.java:146)
At Java.io.fileinputstream.<init> (fileinputstream.java:101)
At Sun.net.www.protocol.file.FileURLConnection.connect (fileurlconnection.java:90)
At Sun.net.www.protocol.file.FileURLConnection.getInputStream (fileurlconnection.java:188)
At Java.net.URL.openStream (url.java:1037)
At Org.apache.hadoop.conf.Configuration.parse (configuration.java:2227)
At Org.apache.hadoop.conf.Configuration.loadResource (configuration.java:2298)
... More
2016-04-19 19:38:41,373 INFO util. Exitutil (ExitUtil.java:terminate (124))-Exiting with Status-1
2016-04-19 19:38:41,375 INFO Applicationhistoryservice. Applicationhistoryserver (StringUtils.java:run (640))-shutdown_msg:


What the. Hdfs-site.xml No permissions


View under Permissions ll Hdfs-site.xml
-RW-------1 root root 7368 Apr 16:06 hdfs-site.xml
How are the permissions and user groups wrong?


The normal should be this:

-rw-r--r--1 HDFs hadoop 7368 Apr 16:06 hdfs-site.xml


Modify permissions and owner, start the service again, normal.

Asked the next colleague because before the operation of this file modification, copy the use of the root user, for Ambari management of Hadoop recommended not to modify files in the source code, unified on the Ambari modified, to avoid unnecessary problems.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.