Hadoop will be run on a single-node in a pseudo-distributed mode where each Hadoop daemon runs in a separate Java process.
PseudoDistributed 镜像是一个 伪分布模式 的镜像, 为了跟 宿主机的端口区分 open-ssh-server 监听 9022 端口, 指定主机名 -h demo-hadoop
Specifying the hostname is recommended ( -h demo-hadoop ) , open-ssh listener 9022:
docker run -d --name hadoop -h demo-hadoop -i \
-p 9022:9022 -p 9000:9000 -p 9864:9864 -p 9866:9866 -p 9867:9867 -p 9868:9868 -p 9870:9870 \
microwww/hadoop:v3.3.0-PseudoDistributed
注意: 对于 java-client 请设置 : conf.set("dfs.client.use.datanode.hostname", "true"); 属性, 否则可能无法连接到 datanode 节点
Content type
Image
Digest
Size
507.9 MB
Last updated
over 5 years ago
docker pull microwww/hadoop:v3.1.0-PseudoDistributed