Re: custom python converter from HBase Result to tuple

2014-12-22 Thread Ted Yu
Please see http://stackoverflow.com/questions/18565953/wrong-number-of-arguments-when-a-calling-function-from-class-in-python Cheers On Mon, Dec 22, 2014 at 8:04 PM, Antony Mayi wrote: > using hbase 0.98.6 > > there is no stack trace, just this short error. > > just noticed it does the fallback

Re: custom python converter from HBase Result to tuple

2014-12-22 Thread Antony Mayi
using hbase 0.98.6 there is no stack trace, just this short error. just noticed it does the fallback to toString as in the message as this is what I get back to python: hbase_rdd.collect() [(u'key1', u'List(cf1:12345:14567890, cf2:123:14567896)')] so the question is why it falls back to toString?

Re: custom python converter from HBase Result to tuple

2014-12-22 Thread Ted Yu
Which HBase version are you using ? Can you show the full stack trace ? Cheers On Mon, Dec 22, 2014 at 11:02 AM, Antony Mayi wrote: > Hi, > > can anyone please give me some help how to write custom converter of hbase > data to (for example) tuples of ((family, qualifier, value), ) for pyspark:

custom python converter from HBase Result to tuple

2014-12-22 Thread Antony Mayi
Hi, can anyone please give me some help how to write custom converter of hbase data to (for example) tuples of ((family, qualifier, value), ) for pyspark: I was trying something like (here trying to tuples of ("family:qualifier:value", )): class HBaseResultToTupleConverter extends Converter[A