Home Forums MapReduce Problem to start Start MapReduce JobHistory Server

This topic contains 5 replies, has 2 voices, and was last updated by  tedr 1 year, 1 month ago.

  • Creator
    Topic
  • #26655

    yamei gu
    Member

    Hi,

    I followed the instruction on http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.0.0.2/bk_installing_manually_book/content/rpm-chap4-4.html to start the jobhistory server. However, the first trial failed because the HADOOP_MAPRED_HOME and HADOOP_MAPRED_LOG_DIR was not defined. After manually defined these env variables, I tried to execute:

    /usr/lib/hadoop-mapreduce/sbin/mr-jobhistory-daemon.sh start historyserver –config $HADOOP_CONF_DIR

    And have the following error:
    nice: /Hadoop/MAPRED/bin/mapred: Permission denied

    I looked into the mr-jobhistory-daemon.sh file, and checked $MAPRED_USER has full permission on every directory used in the “nohup nice … ” command line. Even run the “nice -n 0 /Hadoop/MAPRED/bin/mapred /etc/hadoop/conf –config historyserver” by using “root”, it still has the permission denied error.

    Any suggestion?

    Thanks,
    Yamei

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #27543

    tedr
    Moderator

    Hi Yamei,

    What I mean is do not preceed the command with ‘nice,’ just run the command
    su hdfs -c ‘/usr/lib/hadoop/bin/hadoop-daemon.sh start historyserver’

    Thanks,
    Ted.

    Collapse
    #27537

    yamei gu
    Member

    What do you mean without nice command? Can you elaborate more?

    Collapse
    #26967

    tedr
    Moderator

    Hi Yamei,

    Have you tried it without the nice command?

    Thanks,
    Ted.

    Collapse
    #26950

    yamei gu
    Member

    Ted, I was using su $mapred_user, as noted in the instruction.

    Collapse
    #26798

    tedr
    Moderator

    Hi Yamei,

    When you tried to start the jobhistory daemon with the command you show, what user were you using? were you root or your own user? or were you mapred?

    Thanks,
    Ted.

    Collapse
Viewing 5 replies - 1 through 5 (of 5 total)