<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: What dependencies I need to use phoenix jdbc installed on hbase server. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100529#M63548</link>
    <description>&lt;P&gt;
	You should use the same version of the dependency that you are running your code against: 4.2.0.2.2.4.2-2. For compile-time, you would want to use phoenix-core which will transitively include the necessary artifacts.&lt;/P&gt;&lt;P&gt;&lt;A href="http://repo.hortonworks.com/content/groups/public/org/apache/phoenix/phoenix-core/4.2.0.2.2.4.2-2/"&gt;http://repo.hortonworks.com/content/groups/public/org/apache/phoenix/phoenix-core/4.2.0.2.2.4.2-2/&lt;/A&gt; is the specific version of the artifact. You can configure this as a repository in your ~/.m2/settings.xml. Follow this Maven guide for more information &lt;/P&gt;&lt;P&gt;&lt;A href="https://maven.apache.org/guides/mini/guide-multiple-repositories.html"&gt;https://maven.apache.org/guides/mini/guide-multiple-repositories.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2015 12:29:52 GMT</pubDate>
    <dc:creator>elserj</dc:creator>
    <dc:date>2015-12-23T12:29:52Z</dc:date>
    <item>
      <title>What dependencies I need to use phoenix jdbc installed on hbase server.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100523#M63542</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have hbase server that have Phoenix installed . It is using kerberos . &lt;/P&gt;&lt;P&gt;phoenix-4.2.0.2.2.4.2-2-client.jar  phoenix-4.2.0.2.2.4.2-2-server.jar . &lt;/P&gt;&lt;P&gt;I am trying to write java code where I can use phoenix jdbc driver and write a simple sql " select * from emp " .&lt;/P&gt;&lt;P&gt;What are the POM dependencies I need for Phoenix ?&lt;/P&gt;&lt;P&gt;How should My connection string look like ? I am using : &lt;/P&gt;&lt;P&gt;conn =  DriverManager.getConnection("jdbc:" + zookeeper + ":2181/hbase-secure:principal@default_domain.com:" + keytabPath);&lt;/P&gt;&lt;P&gt;where principal@default_domain.com : krb.principal &lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 07:54:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100523#M63542</guid>
      <dc:creator>varshaborhade</dc:creator>
      <dc:date>2015-12-23T07:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: What dependencies I need to use phoenix jdbc installed on hbase server.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100524#M63543</link>
      <description>&lt;P&gt;The JDBC URL for Phoenix with Kerberos is of the form:&lt;/P&gt;&lt;PRE&gt;jdbc:phoenix:&amp;lt;Zookeeper_host_name&amp;gt;:&amp;lt;port_number&amp;gt;:&amp;lt;secured_Zookeeper_node&amp;gt;:&amp;lt;principal_name&amp;gt;:&amp;lt;HBase_headless_keytab_file&amp;gt;&lt;/PRE&gt;&lt;P&gt;You should only need the phoenix-client.jar on the classpath for your Java application for dependencies. You will likely also need the Hadoop and HBase configuration file directories (/etc/hadoop/conf and /etc/hbase/conf) on your classpath for Kerberos authentication to work properly.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 08:03:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100524#M63543</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2015-12-23T08:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: What dependencies I need to use phoenix jdbc installed on hbase server.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100525#M63544</link>
      <description>&lt;P&gt;I  get Malformed connection url error from ConnectionInfo class : PhoenixEmbeddedDriver , when i use above url suggestion , not sure what I am doing wrong . Removing credentials for obvious reasons and replacing just names of server and principal . &lt;/P&gt;&lt;P&gt;jdbc:phoenix:d001.unix.gsm1900.org,d002.unix.gsm1900.org,d003.unix.gsm1900.org:2181:/hbase-secure:srvc@DEFAULT_DEV.com:/home/myname/krb/hdpsrvc.keytab&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 10:06:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100525#M63544</guid>
      <dc:creator>varshaborhade</dc:creator>
      <dc:date>2015-12-23T10:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: What dependencies I need to use phoenix jdbc installed on hbase server.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100526#M63545</link>
      <description>&lt;P&gt;Error : It enters this loop since it has more than 3 tokens . The 
code is fine with first 3 tokens but not more than that.protected static
 ConnectionInfo create(String url) { ........&lt;/P&gt;&lt;P&gt;if (!isMalformedUrl) {
  if (tokenizer.hasMoreTokens() &amp;amp;&amp;amp; !TERMINATOR.equals(token)) {
  isMalformedUrl = true;
  } else if (i &amp;gt; 1)&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 10:43:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100526#M63545</guid>
      <dc:creator>varshaborhade</dc:creator>
      <dc:date>2015-12-23T10:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: What dependencies I need to use phoenix jdbc installed on hbase server.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100527#M63546</link>
      <description>&lt;P&gt;
	Can you share the entire exception (with stack trace), please?&lt;/P&gt;&lt;P&gt;I ran the parsing code from HDP 2.2.4.2 by hand with the URL you provided and it correctly parsed out the tokens:&lt;/P&gt;&lt;PRE&gt;[d001.unix.gsm1900.org,d002.unix.gsm1900.org,d003.unix.gsm1900.org, 2181, /hbase-secure, srvc@DEFAULT_DEV.com, /home/myname/krb/hdpsrvc.keytab]
&lt;/PRE&gt;&lt;P&gt;Make sure to double check that the URL you provided here is also the same as the one in your code.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 12:05:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100527#M63546</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2015-12-23T12:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: What dependencies I need to use phoenix jdbc installed on hbase server.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100528#M63547</link>
      <description>&lt;P&gt;I think i am not having correct dependency , what maven dependency should i use for phoenix-client.jar . i used phoenix , incubating 4.0 version and it gives above error. When i explicitly add jar then it causes other kerberose issue , which is wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 12:09:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100528#M63547</guid>
      <dc:creator>varshaborhade</dc:creator>
      <dc:date>2015-12-23T12:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: What dependencies I need to use phoenix jdbc installed on hbase server.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100529#M63548</link>
      <description>&lt;P&gt;
	You should use the same version of the dependency that you are running your code against: 4.2.0.2.2.4.2-2. For compile-time, you would want to use phoenix-core which will transitively include the necessary artifacts.&lt;/P&gt;&lt;P&gt;&lt;A href="http://repo.hortonworks.com/content/groups/public/org/apache/phoenix/phoenix-core/4.2.0.2.2.4.2-2/"&gt;http://repo.hortonworks.com/content/groups/public/org/apache/phoenix/phoenix-core/4.2.0.2.2.4.2-2/&lt;/A&gt; is the specific version of the artifact. You can configure this as a repository in your ~/.m2/settings.xml. Follow this Maven guide for more information &lt;/P&gt;&lt;P&gt;&lt;A href="https://maven.apache.org/guides/mini/guide-multiple-repositories.html"&gt;https://maven.apache.org/guides/mini/guide-multiple-repositories.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 12:29:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100529#M63548</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2015-12-23T12:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: What dependencies I need to use phoenix jdbc installed on hbase server.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100530#M63549</link>
      <description>&lt;P&gt;thank you . It works now . I was missing maven dependency .&lt;/P&gt;&lt;P&gt;steps : in pom.xml I added &lt;/P&gt;&lt;P&gt;&amp;lt;repositories&amp;gt;
  &amp;lt;repository&amp;gt;
  &amp;lt;id&amp;gt;repo.hortonworks.com&amp;lt;/id&amp;gt;
  &amp;lt;name&amp;gt;Hortonworks HDP Maven Repository&amp;lt;/name&amp;gt;
  &amp;lt;url&amp;gt;http://repo.hortonworks.com/content/repositories/releases/&amp;lt;/url&amp;gt;
  &amp;lt;/repository&amp;gt;
  &amp;lt;/repositories&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;dependency&amp;gt;
       &amp;lt;groupId&amp;gt;org.apache.phoenix&amp;lt;/groupId&amp;gt;
       &amp;lt;artifactId&amp;gt;phoenix-core&amp;lt;/artifactId&amp;gt;
       &amp;lt;version&amp;gt;4.2.0.2.2.4.2-2&amp;lt;/version&amp;gt;
     &amp;lt;/dependency&amp;gt;&lt;/P&gt;&lt;P&gt;My connection url : &lt;/P&gt;&lt;P&gt;conn =  DriverManager.getConnection("jdbc:phoenix:" + zookeeperQuorum + ":" + port + ":" + "/hbase-secure" + ":" + krb_principal + ":" + kerberosKeytab);&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 05:21:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100530#M63549</guid>
      <dc:creator>varshaborhade</dc:creator>
      <dc:date>2015-12-24T05:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: What dependencies I need to use phoenix jdbc installed on hbase server.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100531#M63550</link>
      <description>&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;I get below error when i use keytab path as below for phoenix jdbc connection . Can anyone please help me here . I have keytab file locally on my laptop.&lt;/P&gt;&lt;P&gt;keytab.path=C\:\\Users\\VBorhad\\krbProperties\\hdpsrvc.keytab&lt;/P&gt;&lt;P&gt;Error :&lt;/P&gt;&lt;P&gt; java.sql.SQLException: ERROR 102 (08001): Malformed connection url. 
jdbc:phoenix:p006.unix.gsm1900.org,p001.unix.gsm1900.org,p002.unix.gsm1900.org,p003.unix.gsm1900.org:2181:/hbase-secure:&lt;A href="mailto:srvc@HDP_EIT_DEV.com"&gt;srvc@HDP_EIT_DEV.com&lt;/A&gt;:C:\Users\VBorhad\krbProperties\hdpsrvc.keytab
 at 
org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:337)
 at 
org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:133)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 02:15:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100531#M63550</guid>
      <dc:creator>varshaborhade</dc:creator>
      <dc:date>2015-12-29T02:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: What dependencies I need to use phoenix jdbc installed on hbase server.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100532#M63551</link>
      <description>&lt;P&gt;
	I saw you had already asked this question over at &lt;A href="https://community.hortonworks.com/questions/7887/phoenix-throws-malformed-url-error-when-keytab-pat.html"&gt;https://community.hortonworks.com/questions/7887/phoenix-throws-malformed-url-error-when-keytab-pat.html&lt;/A&gt;. Let's address this issue there. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 02:18:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-dependencies-I-need-to-use-phoenix-jdbc-installed-on/m-p/100532#M63551</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2015-12-29T02:18:29Z</dc:date>
    </item>
  </channel>
</rss>

