Description
In the DemoClient.py we have:
# 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}.
Fix the path of the thrift definition file and Thrift version number. For the former, this works:
$ thrift --gen py ../../../../../hbase-server/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift
Test the demo client following these instructions and make sure it all works as explained.