1 实例化一个配置文件
Configuration conf =new Configuration();
2 实例化一个文件系统
FileSystem fs =FileSystem.get(new URI(“hdfs://192.168.100.211:8020”),conf);
3 调用文件系统对象的api
boolean mkdirs = fs.mkdirs(new Path("/abc"));
if (mkdirs){
System.out.println(“创建成功!!!”);
}else{
System.out.println(“创建失败!!!”);
}