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

Error starting JobHistoryServer on Cloudera Manager

Error starting JobHistoryServer on Cloudera Manager


I installed Cloudera Manager 5.13.

While installing and running for the first time YARN.. I had the following error

  Error starting JobHistoryServer
    org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Error creating done directory: [hdfs://]
        at org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.tryCreatingHistoryDirs(
        at org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.createHistoryDirs(
        at org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.serviceInit(
        at org.apache.hadoop.service.AbstractService.init(
        at org.apache.hadoop.mapreduce.v2.hs.JobHistory.serviceInit(
        at org.apache.hadoop.service.AbstractService.init(
        at org.apache.hadoop.service.CompositeService.serviceInit(
        at org.apache.hadoop.mapreduce.v2.hs.JobHistoryServer.serviceInit(
        at org.apache.hadoop.service.AbstractService.init(
        at org.apache.hadoop.mapreduce.v2.hs.JobHistoryServer.launchJobHistoryServer(
        at org.apache.hadoop.mapreduce.v2.hs.JobHistoryServer.main(
    Caused by: Permission denied: user=mapred, access=WRITE, inode="/":hdfs:supergroup:drwxr-xr-x
        at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.checkFsPermission(
        at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.check(
        at org.apache.hadoop.hdfs.server.namenode.DefaultAuthorizationProvider.check(

[.... and other rows of Stack exception errors]

So basically the problem is the permission of the HDFS folders.

Something like:
`sudo -u hdfs hdfs dfs -chmod -R 777 /`
will fix the error.

But my question is... Wouldn't be unsafe? Why Cloudera doesn't handle this permissions? Was this handled well in the prrevious versions?


Re: Error starting JobHistoryServer on Cloudera Manager

Master Collaborator
Probably the problem is in the user under which you ran the YARN job. Has this user a home directory in HDFS?
Also is temp folder in HDFS correctly set? (/tmp)