master节点中/usr/local/hadoop/etc/hadoop/.ssh下的slaves中添加datanode能在master启动namenode和slaves文件中添加了的slaves节点,执行命令:start-dfs.sh:
slave1
slave2
slave3