accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [2/3] git commit: ACCUMULO-3062 Get a Connector using the proper ClientConfiguration.
Date Tue, 12 Aug 2014 21:17:11 GMT
ACCUMULO-3062 Get a Connector using the proper ClientConfiguration.


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

Branch: refs/heads/master
Commit: c97446ff6b3e33569fc5b792f96838c6fe82ad40
Parents: 4694a48
Author: Josh Elser <elserj@apache.org>
Authored: Tue Aug 12 17:05:17 2014 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Tue Aug 12 17:06:21 2014 -0400

----------------------------------------------------------------------
 .../accumulo/minicluster/MiniAccumuloClusterStartStopTest.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/c97446ff/minicluster/src/test/java/org/apache/accumulo/minicluster/MiniAccumuloClusterStartStopTest.java
----------------------------------------------------------------------
diff --git a/minicluster/src/test/java/org/apache/accumulo/minicluster/MiniAccumuloClusterStartStopTest.java
b/minicluster/src/test/java/org/apache/accumulo/minicluster/MiniAccumuloClusterStartStopTest.java
index b44868f..2031b11 100644
--- a/minicluster/src/test/java/org/apache/accumulo/minicluster/MiniAccumuloClusterStartStopTest.java
+++ b/minicluster/src/test/java/org/apache/accumulo/minicluster/MiniAccumuloClusterStartStopTest.java
@@ -19,8 +19,6 @@ package org.apache.accumulo.minicluster;
 import java.io.IOException;
 
 import org.apache.accumulo.core.client.Connector;
-import org.apache.accumulo.core.client.ZooKeeperInstance;
-import org.apache.accumulo.core.client.security.tokens.PasswordToken;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -57,8 +55,8 @@ public class MiniAccumuloClusterStartStopTest {
   public void multipleStopsIsAllowed() throws Exception {
     MiniAccumuloCluster accumulo = new MiniAccumuloCluster(folder.getRoot(), "superSecret");
     accumulo.start();
-    
-    Connector conn = new ZooKeeperInstance(accumulo.getInstanceName(), accumulo.getZooKeepers()).getConnector("root",
new PasswordToken("superSecret"));
+
+    Connector conn = accumulo.getConnector("root", "superSecret");
     conn.tableOperations().create("foo");
 
     accumulo.stop();


Mime
View raw message