docker 配置hadoop问题

1.root@caf2f69691f3:/opt/hadoop-2.6.0/sbin# hdfs dfsadmin  -report
Configured Capacity: 0 (0 B)
Present Capacity: 0 (0 B)
DFS Remaining: 0 (0 B)
DFS Used: 0 (0 B)
DFS Used%: NaN%
Under replicated blocks: 0
Blocks with corrupt replicas: 0

Missing blocks: 0



namenode没有开启  执行      /opt/hadoop-2.6.0/sbin/hadoop-daemon.sh start datanode



2.网页访问docker容器的hadoop  把本地端口50071绑定容器端口50070 (hadoop hdfs默认访问端口)

sudo docker run -it -p 50071:50070 --name master1 shanyx/ubuntu:hadoop /bin/bash



3.sudo docker ps --no-trunc查看容器完整id

把本地文件传入已开启docker容器   sudo cp ins/a  /var/lib/docker/devicemapper/mnt/caf2f69691f3f05dfa7e3da82763cfd2a0c5ea718a082da99adaa758eeee8cb4/opt/

你可能感兴趣的:(docker 配置hadoop问题)