启动hadoop2.x historyserver(不启动historyserver的话,pig任务结束后,会报连接不上10020端口)
./mr-jobhistory-daemon.sh start historyserver
[root sbin]# ./mr-jobhistory-daemon.sh start historyserver
starting historyserver, logging to /home/Application/Aleiye/enterprise/hadoop/hadoop-2.5.0-cdh5.3.0/logs/mapred-root-historyserver-ylchou.out
jps可以看到进程JobHistoryServer
也可通过下面页面查看是否启动成功
http://ip:19888/jobhistory