PHOENIX-2254 zookeeper.znode.parent value is not taking affect in MR 
integration job-addendum(Rajeshbabu)


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

Branch: refs/heads/txn
Commit: 0f10d3f6a8f9bedc88a240fc4491d25f16009bde
Parents: ce37e12
Author: Rajeshbabu Chintaguntla <[email protected]>
Authored: Wed Oct 7 23:15:59 2015 +0530
Committer: Rajeshbabu Chintaguntla <[email protected]>
Committed: Wed Oct 7 23:15:59 2015 +0530

----------------------------------------------------------------------
 .../src/main/java/org/apache/phoenix/util/QueryUtil.java      | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/0f10d3f6/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 d7f9cea..3b9a910 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
@@ -248,6 +248,13 @@ public final class QueryUtil {
         return getUrlInternal(zkQuorum, port, znodeParent);
     }
 
+    /**
+     * Create the Phoenix JDBC connection URL from the provided cluster 
connection details.
+     */
+    public static String getUrl(String zkQuorum, Integer port, String 
znodeParent) {
+        return getUrlInternal(zkQuorum, port, znodeParent);
+    }
+
     private static String getUrlInternal(String zkQuorum, Integer port, String 
znodeParent) {
         return new PhoenixEmbeddedDriver.ConnectionInfo(zkQuorum, port, 
znodeParent).toUrl()
                 + PhoenixRuntime.JDBC_PROTOCOL_TERMINATOR;

Reply via email to