解决Hadoop无法启动JobHistoryServer

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/GoSaint/article/details/88061456
gosaint@gosaint:/usr/local/hadoop$ sbin/mr-jobhistory-daemon.sh start

==== 出现如下问题:
WARNING: Use of this script to start the MR JobHistory daemon is deprecated.
WARNING: Attempting to execute replacement "mapred --daemon start" instead.
Usage: mapred [OPTIONS] SUBCOMMAND [SUBCOMMAND OPTIONS]
 or    mapred [OPTIONS] CLASSNAME [CLASSNAME OPTIONS]
  where CLASSNAME is a user-provided Java class

  OPTIONS is none or any of:

--config dir   Hadoop config directory
--debug        turn on shell script debug mode
--help         usage information

  SUBCOMMAND is one of:


    Admin Commands:

frameworkuploader   mapreduce framework upload
hsadmin             job history server admin interface

    Client Commands:

archive             create a Hadoop archive
archive-logs        combine aggregated logs into hadoop archives
classpath           prints the class path needed for running mapreduce subcommands
distcp              copy file or directories recursively
envvars             display computed Hadoop environment variables
job                 manipulate MapReduce jobs
minicluster         CLI MiniCluster
pipes               run a Pipes job
queue               get information regarding JobQueues
sampler             sampler
streaming           launch a mapreduce streaming job
version             print the version

    Daemon Commands:

historyserver       run job history servers as a standalone daemon

SUBCOMMAND may print help when invoked w/o parameters or with -h.

==== 使用如下的命令启动

gosaint@gosaint:/usr/local/hadoop$ sbin/mr-jobhistory-daemon.sh start historyserver

gosaint@gosaint:/usr/local/hadoop$ jps

19872 ResourceManager
20003 NodeManager
20916 Jps
19607 SecondaryNameNode
19240 NameNode
20890 JobHistoryServer
19371 DataNode

访问localhost:8088,正常!

猜你喜欢

转载自blog.csdn.net/GoSaint/article/details/88061456