-safemode:HDFS的安全模式命令;
5、JavaAPI操作1、依赖的Jar包:
/root/training/hadoop-2.7.3/share/hadoop/common
/root/training/hadoop-2.7.3/share/hadoop/common/lib
/root/training/hadoop-2.7.3/share/hadoop/hdfs
/root/training/hadoop-2.7.3/share/hadoop/hdfs/lib
2、示例代码:
test3设置:
test4设置,先停止hdfs,配置完成后重启: