I\'m having a problem with trying to \"download\" file from HDFS file system to my local system. (even though opposite operation works without a problem). *Note: File exists on
You can follow code shown below:
public static void main(String args[]){
try {
Configuration conf = new Configuration();
conf.set("fs.defaultFS", "hdfs://localhost:54310/user/hadoop/");
FileSystem fs = FileSystem.get(conf);
FileStatus[] status = fs.listStatus(new Path("hdfsdirectory"));
for(int i=0;i