Repository: phoenix Updated Branches: refs/heads/4.8-HBase-1.1 52281fd96 -> e11a75de2
PHOENIX-3485 Addendum - Use get() instead of getStrings() for retrieving zkquorum Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/e11a75de Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/e11a75de Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/e11a75de Branch: refs/heads/4.8-HBase-1.1 Commit: e11a75de2017de5414f205a2d7492094587071b4 Parents: 52281fd Author: Samarth <[email protected]> Authored: Wed Nov 16 09:41:33 2016 -0800 Committer: Samarth <[email protected]> Committed: Wed Nov 16 09:41:33 2016 -0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/phoenix/util/QueryUtil.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/e11a75de/phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java b/phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java index dc41352..546c488 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/util/QueryUtil.java @@ -25,7 +25,6 @@ import java.sql.DatabaseMetaData; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; -import java.util.ArrayList; import java.util.List; import java.util.Properties; @@ -37,8 +36,6 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.filter.CompareFilter.CompareOp; -import org.apache.hadoop.hbase.util.Addressing; -import org.apache.hadoop.hbase.zookeeper.ZKConfig; import org.apache.phoenix.hbase.index.util.ImmutableBytesPtr; import org.apache.phoenix.iterate.ResultIterator; import org.apache.phoenix.jdbc.PhoenixConnection; @@ -349,9 +346,8 @@ public final class QueryUtil { // read the hbase properties from the configuration int port = conf.getInt(HConstants.ZOOKEEPER_CLIENT_PORT, HConstants.DEFAULT_ZOOKEPER_CLIENT_PORT); // Build the ZK quorum server string with "server:clientport" list, separated by ',' - final String[] servers = - conf.getStrings(HConstants.ZOOKEEPER_QUORUM, HConstants.LOCALHOST); - String server = Joiner.on(',').join(servers); + final String server = + conf.get(HConstants.ZOOKEEPER_QUORUM, HConstants.LOCALHOST); String znodeParent = conf.get(HConstants.ZOOKEEPER_ZNODE_PARENT, HConstants.DEFAULT_ZOOKEEPER_ZNODE_PARENT); String url = getUrl(server, port, znodeParent, principal);
