I am past this error. Looks like I needed to use CDH libraries. I changed
my maven repo. Now I am stuck at

*org.apache.hadoop.security.AccessControlException *since I am not writing
as user that owns the file. Looking online for solutions


On Tue, Feb 21, 2012 at 12:48 PM, Mohit Anchlia <mohitanch...@gmail.com>wrote:

> I am trying to write to the sequence file and it seems to be failing. Not
> sure why, Is there something I need to do
>
> String uri="hdfs://db1:54310/examples/testfile1.seq";
>
> FileSystem fs = FileSystem.*get*(URI.*create*(uri), conf);      //Fails
> on this line
>
>
> Caused by:
> *java.io.EOFException*
>
> at java.io.DataInputStream.readInt(
> *DataInputStream.java:375*)
>
> at org.apache.hadoop.ipc.Client$Connection.receiveResponse(
> *Client.java:501*)
>
> at org.apache.hadoop.ipc.Client$Connection.run(*Client.java:446*)
>

Reply via email to