Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A41D7F63F for ; Fri, 3 May 2013 01:33:28 +0000 (UTC) Received: (qmail 72763 invoked by uid 500); 3 May 2013 01:33:28 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 72710 invoked by uid 500); 3 May 2013 01:33:28 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 72701 invoked by uid 99); 3 May 2013 01:33:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 May 2013 01:33:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 May 2013 01:33:27 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1E3632388A29; Fri, 3 May 2013 01:33:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1478625 - /accumulo/branches/1.5/proxy/README Date: Fri, 03 May 2013 01:33:07 -0000 To: commits@accumulo.apache.org From: elserj@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130503013307.1E3632388A29@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: elserj Date: Fri May 3 01:33:06 2013 New Revision: 1478625 URL: http://svn.apache.org/r1478625 Log: ACCUMULO-1375 Some more cleanup on the proxy/README Modified: accumulo/branches/1.5/proxy/README Modified: accumulo/branches/1.5/proxy/README URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/proxy/README?rev=1478625&r1=1478624&r2=1478625&view=diff ============================================================================== --- accumulo/branches/1.5/proxy/README (original) +++ accumulo/branches/1.5/proxy/README Fri May 3 01:33:06 2013 @@ -16,33 +16,47 @@ Notice: Licensed to the Apache Softwa specific language governing permissions and limitations under the License. -This is a thrift proxy server to interact with the Accumulo database. +This module provides proxy server for Apache Accumulo. It enables using languages +other than Java to interact with the database. 1. Building -To compile, you must first install Thrift 0.9.0. +The proxy server is built by the Accumulo build process. Read ../README +for more information. -After thrift is installed, compile the project with: -mvn clean install -This will compile the thrift and java files, and will provide C++, python and ruby bindings. +2. Installation -2. Proxy Server Execution +The proxy server is installed during the Accumulo installation process. Read ../README +for more information. -Please note that the proxy can only function correctly when connected to an Accumulo 1.5 instance, or when run standalone in the Mock configuration. -To run the server, edit the configuration file with parameters suited for your Accumulo installation. If you wish to instead use an in-memory Mock instance, set: - useMockInstance=true -This option will override any "real" Accumulo instance information. +3. Configuration -Once the properties file is configured correctly, run this command: -./bin/accumulo proxy -p proxy/proxy.properties +Please note the proxy server only functions correctly when connected to an +Accumulo 1.5 instance, or when run standalone in the Mock configuration. -3. Clients + - Edit the proxy.properties file. + - Change the useMockInstance value to 'true' if you wish to use an in-memory Mock instance. + - Change the useMiniAccumulo value to 'true' if you wish to use a Mini Accumulo Cluster. + - When using a "real" Accumulo instance: + - Ensure useMockInstance and useMiniAccumulo are both set to 'false' + - Set the instance name + - Set the list of ZooKeepers -An example java client is incuded with this distribution in the class TestProxyClient. Also the unit tests included show how to use the proxy. Normal Accumulo APIs are emulated whereever possible. +4. Execution -Additional client examples can be found in the examples directory. These clients are tested and function, however, the setup for each language is beyond the scope of this document currently. +Connect to the Accumulo installation directory and run the following command. -In general, to create a client for a new language one must compile the proxy.thrift API (along with the accumulo core data.thrift API) to the language of choice. -Then one includes the resulting generated code along with the thrift core library for that language to use the proxy. + ${ACCUMULO_HOME}/bin/accumulo proxy -p proxy/proxy.properties -As a note, many of the clients here assume "secret" is your root password. Protip: to make the examples work, change this code to your password, do not change your root password to "secret". +5. Clients + +You need the language-specific library for Thrift installed to be able to use said Thrift client +code in that language. In other words, you need to install the Python Thrift library to use the Python +example. Typically, your operating system's package manager will be able to automatically install +these for you in an expected location such as /usr/lib/python/site-packages/thrift. + +An example Java client is incuded with this distribution in the class TestProxyClient. Also the +unit tests included show how to use the proxy. Normal Accumulo APIs are emulated wherever possible. + +Additional client examples can be found in the examples directory. These clients are tested and +functional; however, the setup for each language is beyond the scope of this document currently.