Wrong FS expected: file:/// 问题
对于一个简单的hadoop api调用问题,经常出现以下报错:
Configuration conf = new Configuration();
FileSystem fs = FileSystem.get(conf);
fs.copyFromLocalFile(new Path(“/home/ptrdu/input/file1”),new Path( "hdfs://namenode:9000/user/ptrdu/move_input/"));
只是一段简单的代码,用于从本地传送数据到hdfs
wrong FS:hdfs://namenode:9000/home/ptrdu/move_input