hadoop dfsadmin -report 可以查看当前hadoop集群的存储状况。结果发现我的都是0,即没有存储空间
把/etc/hosts文件中的127.0.1.1注释掉就行了
127.0.0.1 localhost #127.0.1.1 master # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 192.168.1.148 master 192.168.1.138 slave1