我安装了 Hadoop 2.9.2,运行start_all.sh
命令时没有出现任何问题。但是当我执行 jps 命令时,只显示 4 个守护进程,即 Namenode、Datanode、SecondaryNamenode、DataNode,而资源和节点管理器没有显示。有人能帮我吗?
Logs of execution:
hadoop@saran-HP-Notebook:~$ start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
19/01/02 18:48:09 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [localhost]
localhost: starting namenode, logging to /home/hadoop/hadoop/logs/hadoop-hadoop-namenode-saran-HP-Notebook.out
localhost: starting datanode, logging to /home/hadoop/hadoop/logs/hadoop-hadoop-datanode-saran-HP-Notebook.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /home/hadoop/hadoop/logs/hadoop-hadoop-secondarynamenode-saran-HP-Notebook.out
19/01/02 18:48:26 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
starting yarn daemons
starting resourcemanager, logging to /home/hadoop/hadoop/logs/yarn-hadoop-resourcemanager-saran-HP-Notebook.out
localhost: starting nodemanager, logging to /home/hadoop/hadoop/logs/yarn-hadoop-nodemanager-saran-HP-Notebook.out
hadoop@saran-HP-Notebook:~$ jps
20853 NameNode
21288 SecondaryNameNode
21050 DataNode
21771 Jps
日志文件的内容:
/home/hadoop/hadoop/logs/yarn-hadoop-nodemanager-saran-HP-Notebook.out
ulimit -a for user hadoop
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 47281
/home/hadoop/hadoop/logs/yarn-hadoop-resourcemanager-saran-HP-Notebook.out
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 47281
max locked memory (kbytes, -l) 16384
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 47281
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited