Quantcast
Channel: DataStax Support Forums » Recent Topics
Viewing all articles
Browse latest Browse all 387

asirghi on "CassandraFS - Required field 'storage_type' was not present!"

$
0
0

Hi!
When I try to read an existent text file from cassandra FS, I obtain this exception:

java.io.IOException: org.apache.thrift.TApplicationException: Required field 'storage_type' was not present! Struct: get_cfs_sblock_args(caller_host_name:localhost, block_id:32 31 32 61 65 31 64 30 66 34 34 37 31 31 65 32 30 30 30 30 32 34 32 64 35 30 63 66 31 66 62 37, sblock_id:32 31 32 62 32 66 66 30 66 34 34 37 31 31 65 32 30 30 30 30 32 34 32 64 35 30 63 66 31 66 62 37, offset:0, storage_type:null, keyspace:cfs)
at com.datastax.bdp.hadoop.cfs.CassandraFileSystemThriftStore.retrieveSubBlock(CassandraFileSystemThriftStore.java:480)
at com.datastax.bdp.hadoop.cfs.CassandraSubBlockInputStream.subBlockSeekTo(CassandraSubBlockInputStream.java:145)
at com.datastax.bdp.hadoop.cfs.CassandraSubBlockInputStream.read(CassandraSubBlockInputStream.java:95)
at com.datastax.bdp.hadoop.cfs.CassandraInputStream.read(CassandraInputStream.java:149)
at java.io.DataInputStream.read(DataInputStream.java:132)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at com.isightpartners.tools.hdfs.CassFSTest.readFileContent(CassFSTest.java:77)
at com.isightpartners.tools.hdfs.CassFSTest.testWriteReadString(CassFSTest.java:52)

the file exists, and I can do "dse hadoop fs -copyToLocal ..." on it

To read it I use something like:

FSDataInputStream inputStream = fs.open(new Path(filePath));
BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));

...
content+=br.readLine();
...

DSE 3.0.1 with included libs + hadoop-core-1.2.0


Viewing all articles
Browse latest Browse all 387

Trending Articles