getting StreamClosed exception every time I read file from FTP server

50 views
Skip to first unread message

Arshad Ali Sayed

unread,
Jul 28, 2015, 2:15:42 AM7/28/15
to cascading-user

I am using Hfs Tap to read file from FTP Server. Its running fine in hadoop. but while using cascading I am facing issues.

I am Providing path (i.e. url) along with credentials in the format ftp://username:password@host/directory/file.

getting following Exception every time and hence unable to read file.

java.io.IOException: Stream closed
    at org.apache.hadoop.fs.ftp.FTPInputStream.close(FTPInputStream.java:96)
    at java.io.FilterInputStream.close(Unknown Source)
    at org.apache.hadoop.util.LineReader.close(LineReader.java:83)
    at org.apache.hadoop.mapred.LineRecordReader.close(LineRecordReader.java:168)
    at org.apache.hadoop.mapred.MapTask$TrackedRecordReader.close(MapTask.java:254)
    at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:440)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:372)
    at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:212)

Andre Kelpe

unread,
Jul 28, 2015, 4:16:28 AM7/28/15
to cascadi...@googlegroups.com
This is a hadoop or environment problem. Please ask on the Hadoop mailing list.

- André

--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cascading-use...@googlegroups.com.
To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at http://groups.google.com/group/cascading-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/ebde6a9b-504b-4450-b930-9f3eeeb630c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Message has been deleted

Arshad Ali Sayed

unread,
Jul 28, 2015, 9:38:57 AM7/28/15
to cascading-user, ake...@concurrentinc.com

Ok. Thanks Andre.

Arshad Ali Sayed

unread,
Aug 3, 2015, 10:26:47 AM8/3/15
to cascading-user
I have checked it with Map Reduce program. It is running fine and I am able to read file from FTP Server. But while executing it with Cascading, it doesn't works.
 

Reply all
Reply to author
Forward
0 new messages