0

我按照以下 Apache 指南将 Hadoop 2.8 安装到运行 Ubuntu 16.04 Server Edition 和 OpenJDK 7 的 Odroid XU4 Armhf 设备上:https ://hadoop.apache.org/docs/r2.8.0/hadoop-project-dist/hadoop-common /SingleCluster.html

一切似乎都很好,当我运行 jps 时,我看到以下进程:

- NameNode
- DataNode
- SecondaryNameNode
- ResourceManager
- NodeManager

目前我将 Hadoop 设置为单节点集群,但是当我运行命令“netstat --listen”时,我没有看到任何打开 Hadoop 使用的端口。所以端口 9000 或 50070 未打开。这是我从 netstat 看到的:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 127.0.1.1:domain        *:*                     LISTEN
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp6       0      0 [::]:http               [::]:*                  LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
udp        0      0 127.0.1.1:domain        *:*
udp        0      0 *:bootpc                *:*
udp        0      0 *:48076                 *:*
raw6       0      0 [::]:ipv6-icmp          [::]:*                  7

当我运行 start-dfs.sh 时,我看到以下输出:

17/04/28 19:03:37 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 /root/hadoop/logs/hadoop-root-namenode-odroid1.out
localhost: starting datanode, logging to /root/hadoop/logs/hadoop-root-datanode-odroid1.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /root/hadoop/logs/hadoop-root-secondarynamenode-odroid1.out
17/04/28 19:04:18 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

在过去的三天里,我一直在调试这个,但由于某种原因,Hadoop 根本没有开放任何 TCP 端口。有什么我想念的吗?

我非常感谢帮助。

4

0 回答 0