Hi Sugato, Do you want to read the data from hdfs? From the log it seems like you're reading data from a "RawLocalFileSystem". Maybe you need to check if you have set your default file system in the configuration correctly ( fs.default.name or fs.defaultFS, depending on your hadoop version)?
Thanks, -Jing On Mon, Jul 15, 2013 at 4:24 AM, Sugato Samanta <sugato....@gmail.com>wrote: > Hi, > > i am trying to read a file from HDFS using a java code, but i am getting > 'File NotFound exception. However the same file is being read using *hdfs > dfs -tail airline/final_data.csv* command. Can you please help? > > java -jar /home/adduser/TrainLogistics.jar --passes 10 --rate 5 --lambda > 0.001 --input airline/final_data.csv --features 21 --output ./airline.model > --target CRSDepTime --categories 2 --predictors ArrDelay DayOfWeek --types > numeric > airline/final_data.csv > ./airline.model > Types are: > CRSDepTime > Exception in thread "main" java.io.FileNotFoundException: File > airline/final_data.csv does not exist. > at > > org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:361) > at > > org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:245) > at > > org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSInputChecker.<init>(ChecksumFileSystem.java:125) > at > org.apache.hadoop.fs.ChecksumFileSystem.open(ChecksumFileSystem.java:283) > at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:356) > at org.accy.mahout.TrainLogistic2.open(TrainLogistic2.java:361) > at > org.accy.mahout.TrainLogistic2.mainToOutput(TrainLogistic2.java:90) > at org.accy.mahout.TrainLogistic2.main(TrainLogistic2.java:77) > > Regards, > Sugato >