Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 875A8119D7 for ; Mon, 21 Jul 2014 10:43:07 +0000 (UTC) Received: (qmail 88466 invoked by uid 500); 21 Jul 2014 10:43:05 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 88392 invoked by uid 500); 21 Jul 2014 10:43:05 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 88376 invoked by uid 99); 21 Jul 2014 10:43:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2014 10:43:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vikramsinghchandel@gmail.com designates 209.85.212.175 as permitted sender) Received: from [209.85.212.175] (HELO mail-wi0-f175.google.com) (209.85.212.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2014 10:43:00 +0000 Received: by mail-wi0-f175.google.com with SMTP id ho1so3854486wib.14 for ; Mon, 21 Jul 2014 03:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0j58S1GD4XtaPgKptN7HuVgx9eyetNYnqBquCi2HZmI=; b=Hs0QqoYQFh49j6zVInv8K5L4IK9UcrfCNuqCVzT+mrSBNF2cNr1rUURMPlLTGGYoOw d24L5a6JGZGLvIqCZGn1ABF8pqXV6gcBS2vjiMxlWxaZQTvmfCkiHytpvLhZxojJbamv tj6C9ah0jWBfTncnlLLusZ02BfhIuIfu192HBdZyMAxwYbkhQbvaSFD5lwfX4ukyINa0 4wld+qToMETycOvNX02K25iCsBO0vOMJ/5G//lyXrSunyHM1yDfIIHC8MbQvj/dpz7E9 zG5ik4VDP9wJYc+rh2RpcLvshednHoBW7bLgKzho4/rAcQkf7Wef8ezj+Fw4KvA9RrmY H1tg== MIME-Version: 1.0 X-Received: by 10.194.86.74 with SMTP id n10mr12754582wjz.132.1405939358757; Mon, 21 Jul 2014 03:42:38 -0700 (PDT) Received: by 10.194.13.8 with HTTP; Mon, 21 Jul 2014 03:42:38 -0700 (PDT) Date: Mon, 21 Jul 2014 16:12:38 +0530 Message-ID: Subject: Unable to return HbaseObjectWritable/ObjectWritable(Hadoop) OR Object (Java) from CoProcessor From: Vikram Singh Chandel To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=089e0102f2de0dfadf04feb1c49a X-Virus-Checked: Checked by ClamAV on apache.org --089e0102f2de0dfadf04feb1c49a Content-Type: text/plain; charset=UTF-8 Hi I am trying to return a Map from coprocessor i.e. Map>> 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.(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. --089e0102f2de0dfadf04feb1c49a--