accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] mikewalch commented on a change in pull request #43: ACCUMULO-4734 Changes from review of tour
Date Thu, 01 Jan 1970 00:00:00 GMT
mikewalch commented on a change in pull request #43: ACCUMULO-4734 Changes from review of tour
URL: https://github.com/apache/accumulo-website/pull/43#discussion_r154426075
 
 

 ##########
 File path: tour/authorizations-code.md
 ##########
 @@ -1,64 +1,69 @@
 ---
 title: Authorizations Code
 ---
+
+Below is a solution for the exercise.
+
 ```java
-        // start writing your code here
-        // Connect to Mini Accumulo as the root user and create a table called "GothamPD".
-        Connector conn = mac.getConnector("root", "tourguide");
-        conn.tableOperations().create("GothamPD");
+static void exercise(MiniAccumuloCluster mac) throws Exception {
+    // Connect to Mini Accumulo as the root user and create a table called "GothamPD".
+    Connector conn = mac.getConnector("root", "tourguide");
+    conn.tableOperations().create("GothamPD");
 
-        // Create a "secretIdentity" authorization & visibility
-        final String secId = "secretIdentity";
-        Authorizations auths = new Authorizations(secId);
-        ColumnVisibility visibility = new ColumnVisibility(secId);
+    // Create a "viewSecretId" authorization & visibility
+    final String viewSecretId = "viewSecretId";
 
 Review comment:
   Fixed in ee62cbca.  I used `secretId` as it's shorted but I can go to `secretIdentity`
if you want.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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

Mime
View raw message