Native python converters for HBaseResult and others#4
Conversation
|
Hi, thanks for your contribution. |
|
Can you clarify or point me to some details about this? They were working Did you mean [Any, String] and [Any, Array[Byte]]? I'm not clear exactly
|
|
Yeah, it could work in local mode without any doubt, as the serialization Hope it could be helpful Cheers On Mon, Feb 1, 2016 at 8:45 PM, Scott Gorlin [email protected]
|
|
Would you mind pointing me towards documentation as such? I'm not finding anything about that online... It doesn't quite seem right to me since I did get a number of py4j serialization errors in the code while developing, so something was going through the JVM (and failing until I got the types right). I did test on a real HBase installation, only Spark was local mode, so java -> python definitely did work. I am hoping to deploy a Spark cluster soon, so will test there as well. I also don't quite understand what you mean about only those two RDD types being supported, lots of examples use different schemas (ie word count output would be RDD[String, long] would it not? are you just referring to the immediate output from HBase?) Thanks for your continued help! |
|
I am sorry that I could not find the document that mentioned that. You In fact, Python RDDs are stored in Spark as RDD[Array[Byte]] of serialized Therefore your code is strongly depends on toString() methods that Maybe the relative document is here: Hope that it could be helpful Cheers On Wed, Feb 3, 2016 at 11:28 AM, Scott Gorlin [email protected]
|
|
Thanks so much! I'll review those On Wed, Feb 3, 2016 at 8:16 AM, Gen TANG [email protected] wrote:
|
@GenTang would you be interested in pulling and updating on spark-packages.org? I still haven't seen something as simple for python wrappers, though I am new to this tech stack, so I would think this is widely useful.
I have added a few options similar to yours that work as JSON arrays (#3) as well as getting raw list/dict support in Python without passing through strings.
I updated build to hbase 1.0 as well, unclear to me best protocol here.
I could use a good review since this is the only Scala work I have completed, so feel free to comment on syntax etc. Any suggestions for testing also welcome.