<?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: loading phoenix table using java in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/loading-phoenix-table-using-java/m-p/204767#M71401</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14978/dasdineshk.html" nodeid="14978"&gt;@Dinesh Das&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;I'm using Sandbox 2.6.1&lt;/P&gt;&lt;P&gt;Tips:&lt;/P&gt;&lt;P&gt;* You can find the phoenix version in the path: /usr/hdp/current/phoenix-client/lib/phoenix-core-{phoenix.version}.jar&lt;/P&gt;&lt;P&gt;* For testing purposes I'm using the following properties:&lt;/P&gt;&lt;PRE&gt;url: jdbc:phoenix:localhost:2181:/hbase-unsecure
driver-class-name: org.apache.phoenix.jdbc.PhoenixDriver
username: anything
password: anything&lt;/PRE&gt;&lt;P&gt;You need to add the following properties, dependencies and repositories to your pom file:&lt;/P&gt;&lt;PRE&gt;&amp;lt;properties&amp;gt; 
...  
&amp;lt;phoenix.version&amp;gt;4.7.0.2.6.1.0-129&amp;lt;/phoenix.version&amp;gt;   
...
&amp;lt;/properties&amp;gt;

&amp;lt;dependencies&amp;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;${phoenix.version}&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
...
&amp;lt;/dependencies&amp;gt;

&amp;lt;repositories&amp;gt;
   &amp;lt;repository&amp;gt;
      &amp;lt;releases&amp;gt;
         &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
         &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
      &amp;lt;id&amp;gt;hortonworks.release.repo&amp;lt;/id&amp;gt;
      &amp;lt;name&amp;gt;Hortonworks Release 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;repository&amp;gt;
      &amp;lt;releases&amp;gt;
         &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
         &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
      &amp;lt;id&amp;gt;hortonworks.third-party.artifacts.1&amp;lt;/id&amp;gt;
      &amp;lt;name&amp;gt;Hortonworks third-party artifacts 1&amp;lt;/name&amp;gt;
      &amp;lt;url&amp;gt;http://repo.hortonworks.com/content/repositories/jetty-hadoop/&amp;lt;/url&amp;gt;
   &amp;lt;/repository&amp;gt;
   &amp;lt;repository&amp;gt;
      &amp;lt;releases&amp;gt;
         &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
         &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
      &amp;lt;id&amp;gt;hortonworks.third-party.artifacts.2&amp;lt;/id&amp;gt;
      &amp;lt;name&amp;gt;Hortonworks third-party artifacts 2&amp;lt;/name&amp;gt;
      &amp;lt;url&amp;gt;http://repo.hortonworks.com/content/repositories/re-hosted/&amp;lt;/url&amp;gt;
   &amp;lt;/repository&amp;gt;
   &amp;lt;repository&amp;gt;
      &amp;lt;releases&amp;gt;
         &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
         &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
      &amp;lt;id&amp;gt;hortonworks.public.group.repo&amp;lt;/id&amp;gt;
      &amp;lt;name&amp;gt;Hortonworks Public Group Repository&amp;lt;/name&amp;gt;
      &amp;lt;url&amp;gt;http://repo.hortonworks.com/content/groups/public&amp;lt;/url&amp;gt;
   &amp;lt;/repository&amp;gt;
&amp;lt;/repositories&amp;gt;&lt;/PRE&gt;&lt;P&gt;That's all you need &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2017 22:41:04 GMT</pubDate>
    <dc:creator>malmeidap</dc:creator>
    <dc:date>2017-11-17T22:41:04Z</dc:date>
    <item>
      <title>loading phoenix table using java</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/loading-phoenix-table-using-java/m-p/204766#M71400</link>
      <description>&lt;P&gt;I wanted to load a csv file into phoenix table using Java.&lt;/P&gt;&lt;P&gt;I need help on JDBC phoenix connection. I am getting lots of dependencies issue. &lt;/P&gt;&lt;P&gt;Can someone please help me on what are the jar files reuquired to establish a jdbc connection for phoenix&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 17:43:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/loading-phoenix-table-using-java/m-p/204766#M71400</guid>
      <dc:creator>das_dineshk</dc:creator>
      <dc:date>2017-11-16T17:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: loading phoenix table using java</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/loading-phoenix-table-using-java/m-p/204767#M71401</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14978/dasdineshk.html" nodeid="14978"&gt;@Dinesh Das&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;I'm using Sandbox 2.6.1&lt;/P&gt;&lt;P&gt;Tips:&lt;/P&gt;&lt;P&gt;* You can find the phoenix version in the path: /usr/hdp/current/phoenix-client/lib/phoenix-core-{phoenix.version}.jar&lt;/P&gt;&lt;P&gt;* For testing purposes I'm using the following properties:&lt;/P&gt;&lt;PRE&gt;url: jdbc:phoenix:localhost:2181:/hbase-unsecure
driver-class-name: org.apache.phoenix.jdbc.PhoenixDriver
username: anything
password: anything&lt;/PRE&gt;&lt;P&gt;You need to add the following properties, dependencies and repositories to your pom file:&lt;/P&gt;&lt;PRE&gt;&amp;lt;properties&amp;gt; 
...  
&amp;lt;phoenix.version&amp;gt;4.7.0.2.6.1.0-129&amp;lt;/phoenix.version&amp;gt;   
...
&amp;lt;/properties&amp;gt;

&amp;lt;dependencies&amp;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;${phoenix.version}&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
...
&amp;lt;/dependencies&amp;gt;

&amp;lt;repositories&amp;gt;
   &amp;lt;repository&amp;gt;
      &amp;lt;releases&amp;gt;
         &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
         &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
      &amp;lt;id&amp;gt;hortonworks.release.repo&amp;lt;/id&amp;gt;
      &amp;lt;name&amp;gt;Hortonworks Release 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;repository&amp;gt;
      &amp;lt;releases&amp;gt;
         &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
         &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
      &amp;lt;id&amp;gt;hortonworks.third-party.artifacts.1&amp;lt;/id&amp;gt;
      &amp;lt;name&amp;gt;Hortonworks third-party artifacts 1&amp;lt;/name&amp;gt;
      &amp;lt;url&amp;gt;http://repo.hortonworks.com/content/repositories/jetty-hadoop/&amp;lt;/url&amp;gt;
   &amp;lt;/repository&amp;gt;
   &amp;lt;repository&amp;gt;
      &amp;lt;releases&amp;gt;
         &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
         &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
      &amp;lt;id&amp;gt;hortonworks.third-party.artifacts.2&amp;lt;/id&amp;gt;
      &amp;lt;name&amp;gt;Hortonworks third-party artifacts 2&amp;lt;/name&amp;gt;
      &amp;lt;url&amp;gt;http://repo.hortonworks.com/content/repositories/re-hosted/&amp;lt;/url&amp;gt;
   &amp;lt;/repository&amp;gt;
   &amp;lt;repository&amp;gt;
      &amp;lt;releases&amp;gt;
         &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
         &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
      &amp;lt;id&amp;gt;hortonworks.public.group.repo&amp;lt;/id&amp;gt;
      &amp;lt;name&amp;gt;Hortonworks Public Group Repository&amp;lt;/name&amp;gt;
      &amp;lt;url&amp;gt;http://repo.hortonworks.com/content/groups/public&amp;lt;/url&amp;gt;
   &amp;lt;/repository&amp;gt;
&amp;lt;/repositories&amp;gt;&lt;/PRE&gt;&lt;P&gt;That's all you need &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 22:41:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/loading-phoenix-table-using-java/m-p/204767#M71401</guid>
      <dc:creator>malmeidap</dc:creator>
      <dc:date>2017-11-17T22:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: loading phoenix table using java</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/loading-phoenix-table-using-java/m-p/204768#M71402</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48314/malmeidap.html" nodeid="48314"&gt;@Marco Almeida&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thank you for your help. I did try for various version of phoenix core but no luck&lt;/P&gt;&lt;P&gt;lemme try this..&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 01:42:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/loading-phoenix-table-using-java/m-p/204768#M71402</guid>
      <dc:creator>das_dineshk</dc:creator>
      <dc:date>2017-11-20T01:42:02Z</dc:date>
    </item>
  </channel>
</rss>

