You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/11/26 16:13:08 UTC

[GitHub] [accumulo-proxy] keith-turner commented on a change in pull request #11: #10 - Created instructions for using proxy with python

keith-turner commented on a change in pull request #11:  #10 - Created instructions for using proxy with python
URL: https://github.com/apache/accumulo-proxy/pull/11#discussion_r350834685
 
 

 ##########
 File path: README.md
 ##########
 @@ -41,8 +41,34 @@ Thrift language binding).
     ./bin/accumulo-proxy -p conf/proxy.properties -c $ACCUMULO_HOME/conf/accumulo-client.properties
     ```
 
+# Build language specific bindings
+
+Bindings have been built in `src/main/` for Java, python, and ruby.
+
+Bindings for other languages can be built using the Thrift compiler. Follow the [Thrift tutorial]
+to install a Thrift compiler and use the following command to generate language bindings.
+
+```
+thrift -r --gen <language> <Thrift filename>
+```
+
+# Create an Accumulo client using Python
+
+Run the commands below to install the Python bindings and create an example client:
+
+```
+mkdir accumulo-client/
+cd accumulo-client/
+pipenv --python 2.7
+pipenv install -e /path/to/accumulo-proxy/src/main/python
+cp /path/to/accumulo-proxy/path/to/src/main/python/example.py .
+vim example.py
 
 Review comment:
   Could add a comment if there is something specific you think people should edit. Like
   
   ```bash
   # Edit credentials if needed
   vim example.py
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services