[
https://issues.apache.org/jira/browse/HBASE-8903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Kyle Purtell resolved HBASE-8903.
----------------------------------------
Resolution: Won't Fix
> 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
> Priority: Major
> Labels: thrift2
>
> 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 was sent by Atlassian Jira
(v8.20.7#820007)