You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/10/28 17:24:13 UTC

[GitHub] [accumulo-website] keith-turner commented on a change in pull request #201: Update Tour for 2.0

keith-turner commented on a change in pull request #201: Update Tour for 2.0
URL: https://github.com/apache/accumulo-website/pull/201#discussion_r339687106
 
 

 ##########
 File path: tour/batch-scanner.md
 ##########
 @@ -6,13 +6,12 @@ will retrieve multiple Ranges of data using multiple threads.  A BatchScanner ca
 
 For this exercise, we need to generate a bunch of data to test BatchScanner.  Copy the code below into your `exercise` method.
 ```java
-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");
+static void exercise(AccumuloClient client) throws Exception {
+    // create a table called "GothamPD".
+    client.tableOperations().create("GothamPD");
 
     // Generate 10,000 rows of henchman data, each with a different number yearsOfService
-    try (BatchWriter writer = conn.createBatchWriter("GothamPD", new BatchWriterConfig())) {
+    try (BatchWriter writer = client.createBatchWriter("GothamPD", new BatchWriterConfig())) {
 
 Review comment:
   ```suggestion
       try (BatchWriter writer = client.createBatchWriter("GothamPD")) {
   ```

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