You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by mw...@apache.org on 2019/12/18 15:18:40 UTC
[accumulo-website] branch master updated: Created blog post about
Proxy (#214)
This is an automated email from the ASF dual-hosted git repository.
mwalch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/accumulo-website.git
The following commit(s) were added to refs/heads/master by this push:
new 60d6934 Created blog post about Proxy (#214)
60d6934 is described below
commit 60d6934f15f4a560f6f8db669d5706ea55f84076
Author: Mike Walch <mw...@apache.org>
AuthorDate: Wed Dec 18 10:18:31 2019 -0500
Created blog post about Proxy (#214)
---
_posts/blog/2019-12-16-accumulo-proxy.md | 56 ++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/_posts/blog/2019-12-16-accumulo-proxy.md b/_posts/blog/2019-12-16-accumulo-proxy.md
new file mode 100644
index 0000000..f6e8b89
--- /dev/null
+++ b/_posts/blog/2019-12-16-accumulo-proxy.md
@@ -0,0 +1,56 @@
+---
+title: Accumulo Clients in Other Programming Languages
+---
+
+Apache Accumulo has an [Accumulo Proxy] that allows communication with Accumulo using clients written
+in languages other than Java. This blog post shows how to run the Accumulo Proxy process using [Uno]
+and communicate with Accumulo using a Python client.
+
+First, clone the [Accumulo Proxy] repository.
+
+```bash
+git clone https://github.com/apache/accumulo-proxy
+```
+
+Assuming you have [Uno] set up on your machine, configure `uno.conf` to start the [Accumulo Proxy]
+by setting the configuration below:
+
+```
+export POST_RUN_PLUGINS="accumulo-proxy"
+export PROXY_REPO=/path/to/accumulo-proxy
+```
+
+Run the following command to set up Accumulo again. The Proxy will be started after Accumulo runs.
+
+```
+uno setup accumulo
+```
+
+After Accumulo is set up, you should see the following output from uno:
+
+```
+Executing post run plugin: accumulo-proxy
+Installing Accumulo Proxy at /path/to/fluo-uno/install/accumulo-proxy-2.0.0-SNAPSHOT
+Accumulo Proxy 2.0.0-SNAPSHOT is running
+ * view logs at /path/to/fluo-uno/install/logs/accumulo-proxy/
+```
+
+Next, follow the instructions below to create a Python 2.7 client that creates an Accumulo table
+named `pythontest` and writes data to it:
+
+```
+mkdir accumulo-client/
+cd accumulo-client/
+pipenv --python 2.7
+pipenv install thrift
+pipenv install -e /path/to/accumulo-proxy/src/main/python
+cp /path/to/accumulo-proxy/src/main/python/example.py .
+# Edit credentials if needed
+vim example.py
+pipenv run python2 example.py
+```
+
+Verify that the table was created or data was written using `uno ashell` or the Accumulo monitor.
+
+[Uno]: https://github.com/apache/fluo-uno
+[Accumulo Proxy]: https://github.com/apache/accumulo-proxy