hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars George (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-8903) Fix Thrift 2 DemoClient Python instructions
Date Tue, 09 Jul 2013 14:53:48 GMT
Lars George created HBASE-8903:
----------------------------------

             Summary: Fix Thrift 2 DemoClient Python instructions
                 Key: HBASE-8903
                 URL: https://issues.apache.org/jira/browse/HBASE-8903
             Project: HBase
          Issue Type: Sub-task
          Components: Thrift
            Reporter: Lars George


In the DemoClient.py we have:

{noformat}
# Instructions:
# 1. Run Thrift to generate the python module hbase
#    thrift --gen py ../../../src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift
# 2. Create a directory of your choosing that contains:
#     a. This file (DemoClient.py).
#     b. The directory gen-py/hbase (generated by instruction step 1).
# 3. pip install thrift==0.7.0
# 4. Create a table call "example", with a family called "family1" using the hbase shell.
# 5. Start the hbase thrift2 server
#    bin/hbase thrift2 start
# 6. Execute {python DemoClient.py}.
{noformat}

Fix the path of the thrift definition file and Thrift version number. For the former, this
works:

{noformat}
$ thrift --gen py ../../../../../hbase-server/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift
{noformat}

Test the demo client following these instructions and make sure it all works as explained.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message