Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.6.0
-
None
-
None
Description
When starting the hadoop-mapreduce-historyserver service, an error is printed like the following:
vagrant@lucid64:~$ sudo service hadoop-mapreduce-historyserver start * Starting Hadoop historyserver: chown: changing ownership of `/var/log/hadoop-mapreduce': Operation not permitted starting historyserver, logging to /var/log/hadoop-mapreduce/mapred-mapred-historyserver-lucid64.out vagrant@lucid64:~$ sudo service hadoop-mapreduce-historyserver status^C vagrant@lucid64:~$ echo $? 130 vagrant@lucid64:~$ sudo service hadoop-mapreduce-historyserver status * Hadoop historyserver is running vagrant@lucid64:~$ ps -ef | grep -i history mapred 17007 1 14 08:20 pts/0 00:00:04 /usr/lib/jvm/j2sdk1.6-oracle/bin/java -Dproc_historyserver -Xmx1000m -Djava.net.preferIPv4Stack=true -Xmx128m -Dhadoop.log.dir=/usr/lib/hadoop/logs -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/usr/lib/hadoop -Dhadoop.id.str=mapred -Dhadoop.root.logger=INFO,console -Djava.library.path=/usr/lib/hadoop/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/var/log/hadoop-mapreduce -Dhadoop.log.file=mapred-mapred-historyserver-lucid64.log -Dhadoop.root.logger=INFO,RFA -Dmapred.jobsummary.logger=INFO,JSA -Dhadoop.security.logger=INFO,NullAppender org.apache.hadoop.mapreduce.v2.hs.JobHistoryServer
The service start command returns an error code but the service seems to have started correctly.
We should fix the start command and ensure that it returns success.