GitHub user GenTang opened a pull request:

    https://github.com/apache/spark/pull/3920

    The improvement of python converter for hbase(examples)

    Hi,
    
    Following the discussion in 
http://apache-spark-developers-list.1001551.n3.nabble.com/python-converter-in-HBaseConverter-scala-spark-examples-td10001.html.
 I made some modification in three files in package examples:
    1. HBaseConverters.scala: the new converter will converts all the records 
in an hbase results into a single string
    2. hbase_input.py: as the value string may contain several records, we can 
use ast package to convert the string into dict
    3. HBaseTest.scala: as the package examples use hbase 0.98.7 the original 
constructor HTableDescriptor is deprecated. The updation to new constructor is 
made


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/GenTang/spark master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/3920.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3920
    
----
commit 3253b61e4a740233154c54458fa68dbec5a2b004
Author: GenTang <[email protected]>
Date:   2015-01-07T02:04:13Z

    the modification accompanying the improvement of pythonconverter

commit ceb31c5e1619e56b91a8d03b4edd09c7c17813ce
Author: GenTang <[email protected]>
Date:   2015-01-07T02:05:24Z

    the modification for adapting updation of hbase

commit 5cbbcfc3e4034f824ae94e84374b4f505ee15a63
Author: GenTang <[email protected]>
Date:   2015-01-07T02:06:00Z

    the improvement of pythonconverter

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to