You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by el...@apache.org on 2015/06/26 17:39:27 UTC

[1/3] accumulo git commit: ACCUMULO-3922 more verbose proxy documentation

Repository: accumulo
Updated Branches:
  refs/heads/1.7 e3652a249 -> d9e81aa93
  refs/heads/master ad172098d -> d65f51490


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.

Signed-off-by: Josh Elser <el...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/d9e81aa9
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/d9e81aa9
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/d9e81aa9

Branch: refs/heads/1.7
Commit: d9e81aa939ae19c2ecfdddf6f99c8be22707ceb8
Parents: e3652a2
Author: Charles Ott <ch...@gmail.com>
Authored: Thu Jun 25 14:46:01 2015 -0400
Committer: Josh Elser <el...@apache.org>
Committed: Fri Jun 26 11:24:32 2015 -0400

----------------------------------------------------------------------
 docs/src/main/asciidoc/chapters/clients.txt | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/d9e81aa9/docs/src/main/asciidoc/chapters/clients.txt
----------------------------------------------------------------------
diff --git a/docs/src/main/asciidoc/chapters/clients.txt b/docs/src/main/asciidoc/chapters/clients.txt
index 3f85074..8d545ef 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,22 @@ 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>>();
+cellsToUpdate.put(rowid, updates);
 
 // send updates to the server
 client.updateAndFlush(writer, "myTable", cellsToUpdate);


[3/3] accumulo git commit: Merge branch '1.7'

Posted by el...@apache.org.
Merge branch '1.7'


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/d65f5149
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/d65f5149
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/d65f5149

Branch: refs/heads/master
Commit: d65f514907b4725a97ca8cdb213969057e82d901
Parents: ad17209 d9e81aa
Author: Josh Elser <el...@apache.org>
Authored: Fri Jun 26 11:39:19 2015 -0400
Committer: Josh Elser <el...@apache.org>
Committed: Fri Jun 26 11:39:19 2015 -0400

----------------------------------------------------------------------
 docs/src/main/asciidoc/chapters/clients.txt | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



[2/3] accumulo git commit: ACCUMULO-3922 more verbose proxy documentation

Posted by el...@apache.org.
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.

Signed-off-by: Josh Elser <el...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/d9e81aa9
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/d9e81aa9
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/d9e81aa9

Branch: refs/heads/master
Commit: d9e81aa939ae19c2ecfdddf6f99c8be22707ceb8
Parents: e3652a2
Author: Charles Ott <ch...@gmail.com>
Authored: Thu Jun 25 14:46:01 2015 -0400
Committer: Josh Elser <el...@apache.org>
Committed: Fri Jun 26 11:24:32 2015 -0400

----------------------------------------------------------------------
 docs/src/main/asciidoc/chapters/clients.txt | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/d9e81aa9/docs/src/main/asciidoc/chapters/clients.txt
----------------------------------------------------------------------
diff --git a/docs/src/main/asciidoc/chapters/clients.txt b/docs/src/main/asciidoc/chapters/clients.txt
index 3f85074..8d545ef 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,22 @@ 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>>();
+cellsToUpdate.put(rowid, updates);
 
 // send updates to the server
 client.updateAndFlush(writer, "myTable", cellsToUpdate);