accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Ott (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ACCUMULO-3922) Update Documentation for proxy client use
Date Thu, 25 Jun 2015 18:54:04 GMT

     [ https://issues.apache.org/jira/browse/ACCUMULO-3922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Charles Ott updated ACCUMULO-3922:
----------------------------------
    Status: Patch Available  (was: In Progress)

From: Charles Ott <charlieott@gmail.com>
Date: Thu, 25 Jun 2015 14:46:01 -0400
Subject: [PATCH] ACCUMULO-3922 more verbose proxy documentation

The proxy client is very useful for implementing secure client access.
Because of this use case, I would like to make the documentation a bit
more verbose.  Including some of the Java code snippets.
---
 docs/src/main/asciidoc/chapters/clients.txt | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/docs/src/main/asciidoc/chapters/clients.txt b/docs/src/main/asciidoc/chapters/clients.txt
index 3f85074..b04dd06 100644
--- a/docs/src/main/asciidoc/chapters/clients.txt
+++ b/docs/src/main/asciidoc/chapters/clients.txt
@@ -271,6 +271,9 @@ An example of the BatchScanner can be found at
 
 The proxy API allows the interaction with Accumulo with languages other than Java.
 A proxy server is provided in the codebase and a client can further be generated.
+The proxy API can also be used instead of the traditional ZooKeeperInstance class to
+provide a single TCP port in which clients can be securely routed through a firewall, 
+without requiring access to all tablet servers in the cluster.
 
 ==== Prequisites
 
@@ -349,8 +352,21 @@ Next, add some data:
 // first, create a writer on the server
 String writer = client.createWriter(token, "myTable", new WriterOptions());
 
+//rowid
+ByteBuffer rowid = ByteBuffer.wrap("UUID".getBytes());
+
+//mutation like class
+ColumnUpdate cu = new ColumnUpdate();
+cu.setColFamily("MyFamily".getBytes());
+cu.setColQualifier("MyQualifier".getBytes());
+cu.setColVisibility("VisLabel".getBytes());
+cu.setValue("Some Value.".getBytes());
+
+List<ColumnUpdate> updates = new ArrayList<ColumnUpdate>();
+updates.add(cu);
+            
 // build column updates
-Map<ByteBuffer, List<ColumnUpdate> cells> cellsToUpdate = //...
+Map<ByteBuffer, List<ColumnUpdate>> cellsToUpdate = new HashMap<ByteBuffer,
List<ColumnUpdate>>();
 
 // send updates to the server
 client.updateAndFlush(writer, "myTable", cellsToUpdate);
-- 
1.9.1


> Update Documentation for proxy client use
> -----------------------------------------
>
>                 Key: ACCUMULO-3922
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3922
>             Project: Accumulo
>          Issue Type: Bug
>          Components: docs
>    Affects Versions: 1.7.0
>            Reporter: Charles Ott
>            Assignee: Charles Ott
>            Priority: Trivial
>              Labels: documentation
>             Fix For: 1.7.0
>
>
> Would like to make the proxy information more verbose, as it seems to be useful for more
scure implementations.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message