hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sugato Samanta <sugato....@gmail.com>
Subject File not found exception
Date Mon, 15 Jul 2013 11:24:24 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message