You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Lars George (JIRA)" <ji...@apache.org> on 2013/07/09 16:53:48 UTC
[jira] [Created] (HBASE-8903) Fix Thrift 2 DemoClient Python
instructions
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