hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikram Singh Chandel <vikramsinghchan...@gmail.com>
Subject Unable to return HbaseObjectWritable/ObjectWritable(Hadoop) OR Object (Java) from CoProcessor
Date Mon, 21 Jul 2014 10:42:38 GMT
Hi
I am trying to return a Map<String,HbaseObjectWritable> from coprocessor
i.e.

Map<byte[], List<Map<String, HbaseObjectWritable>>> results = table
.coprocessorExec(
EndpointExampleProtocol.class,
null,
null,
new Batch.Call<...>

*Getting following exception *

ERROR io.HbaseObjectWritable: Error in readFields
java.io.StreamCorruptedException: invalid stream header: 02000000
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:801)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:298)
at
org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:707)


*Moreover we are not able to return any Object (Java/Hadoop/HBase)*
*and because of this i am doing a lot of serialization and de serialization
in my coprocessor and client code(Object <=> String) (to combine results
back and sort them) and facing a heavy SerDe overhead*

-- 
*Regards*

*VIKRAM SINGH CHANDEL*

Please do not print this email unless it is absolutely necessary,Reduce.
Reuse. Recycle. Save our planet.

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