<?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>topic Re: Connect to Hive database in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213714#M10876</link>
    <description>i have alread used this also but no success</description>
    <pubDate>Thu, 14 Apr 2011 07:28:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-14T07:28:47Z</dc:date>
    <item>
      <title>Connect to Hive database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213709#M10871</link>
      <description>I am not able to connect to Hive database can anyone help me out</description>
      <pubDate>Sat, 16 Nov 2024 12:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213709#M10871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Hive database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213710#M10872</link>
      <description>When i am using general JDBC during connection with the Hive database i am passing everything correctly even then its not able to connect to the database</description>
      <pubDate>Wed, 13 Apr 2011 16:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213710#M10872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-13T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Hive database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213711#M10873</link>
      <description>DB Type: General JDBC
&lt;BR /&gt;JDBC Url: jdbc:hive://&amp;lt;iP Address&amp;gt;172.17.197.95:&amp;lt;port No.&amp;gt;8099/&amp;lt;databasename&amp;gt;default
&lt;BR /&gt;Driver Jar: /usr/local/Talend/lib/java/hive-jdbc-0.5.0.jar
&lt;BR /&gt;Class Name : org.apache.hadoop.hive.jdbc.HiveDriver
&lt;BR /&gt;
&lt;BR /&gt;After giving all these details also i am not able to connect to the database
&lt;BR /&gt;please help me out in establishing the database connection</description>
      <pubDate>Thu, 14 Apr 2011 06:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213711#M10873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-14T06:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Hive database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213712#M10874</link>
      <description>Hi honeybakliwal
&lt;BR /&gt;I don't have a Hive database installation here, so I can't test it now and I will do it later. Can you create a routine to test this code (JDBC Client Sample Code)and see if it connect successfully to your Hive.
&lt;BR /&gt;
&lt;A href="http://wiki.apache.org/hadoop/Hive/HiveClient" rel="nofollow noopener noreferrer"&gt;http://wiki.apache.org/hadoop/Hive/HiveClient&lt;/A&gt;
&lt;BR /&gt;Let me know your test result!
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 14 Apr 2011 07:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213712#M10874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-14T07:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Hive database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213713#M10875</link>
      <description>import java.sql.SQLException; 
&lt;BR /&gt;import java.sql.Connection; 
&lt;BR /&gt;import java.sql.ResultSet; 
&lt;BR /&gt;import java.sql.Statement; 
&lt;BR /&gt;import java.sql.DriverManager; 
&lt;BR /&gt;public class HiveJdbcClient { 
&lt;BR /&gt; private static String driverName = "org.apache.hadoop.hive.jdbc.HiveDriver"; 
&lt;BR /&gt; /** 
&lt;BR /&gt; * @param args 
&lt;BR /&gt; * @throws SQLException 
&lt;BR /&gt; */ 
&lt;BR /&gt; public static void main(String[] args) throws SQLException { 
&lt;BR /&gt; try { 
&lt;BR /&gt; Class.forName(driverName); 
&lt;BR /&gt; } catch (ClassNotFoundException e) { 
&lt;BR /&gt; // TODO Auto-generated catch block 
&lt;BR /&gt; e.printStackTrace(); 
&lt;BR /&gt; System.exit(1); 
&lt;BR /&gt; } 
&lt;BR /&gt; Connection con = DriverManager.getConnection("jdbc:hive://localhost:10000/default", "", ""); 
&lt;BR /&gt; Statement stmt = con.createStatement(); 
&lt;BR /&gt; String tableName = "testHiveDriverTable"; 
&lt;BR /&gt; stmt.executeQuery("drop table " + tableName); 
&lt;BR /&gt; ResultSet res = stmt.executeQuery("create table " + tableName + " (key int, value string)"); 
&lt;BR /&gt; // show tables 
&lt;BR /&gt; String sql = "show tables '" + tableName + "'"; 
&lt;BR /&gt; System.out.println("Running: " + sql); 
&lt;BR /&gt; res = stmt.executeQuery(sql); 
&lt;BR /&gt; if (res.next()) { 
&lt;BR /&gt; System.out.println(res.getString(1)); 
&lt;BR /&gt; } 
&lt;BR /&gt; // describe table 
&lt;BR /&gt; sql = "describe " + tableName; 
&lt;BR /&gt; System.out.println("Running: " + sql); 
&lt;BR /&gt; res = stmt.executeQuery(sql); 
&lt;BR /&gt; while (res.next()) { 
&lt;BR /&gt; System.out.println(res.getString(1) + "\t" + res.getString(2)); 
&lt;BR /&gt; } 
&lt;BR /&gt; // load data into table 
&lt;BR /&gt; // NOTE: filepath has to be local to the hive server 
&lt;BR /&gt; // NOTE: /tmp/a.txt is a ctrl-A separated file with two fields per line 
&lt;BR /&gt; String filepath = "/tmp/a.txt"; 
&lt;BR /&gt; sql = "load data local inpath '" + filepath + "' into table " + tableName; 
&lt;BR /&gt; System.out.println("Running: " + sql); 
&lt;BR /&gt; res = stmt.executeQuery(sql); 
&lt;BR /&gt; // select * query 
&lt;BR /&gt; sql = "select * from " + tableName; 
&lt;BR /&gt; System.out.println("Running: " + sql); 
&lt;BR /&gt; res = stmt.executeQuery(sql); 
&lt;BR /&gt; while (res.next()) { 
&lt;BR /&gt; System.out.println(String.valueOf(res.getInt(1)) + "\t" + res.getString(2)); 
&lt;BR /&gt; } 
&lt;BR /&gt; // regular hive query 
&lt;BR /&gt; sql = "select count(1) from " + tableName; 
&lt;BR /&gt; System.out.println("Running: " + sql); 
&lt;BR /&gt; res = stmt.executeQuery(sql); 
&lt;BR /&gt; while (res.next()) { 
&lt;BR /&gt; System.out.println(res.getString(1)); 
&lt;BR /&gt; } 
&lt;BR /&gt; } 
&lt;BR /&gt;}</description>
      <pubDate>Thu, 14 Apr 2011 07:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213713#M10875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-14T07:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Hive database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213714#M10876</link>
      <description>i have alread used this also but no success</description>
      <pubDate>Thu, 14 Apr 2011 07:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213714#M10876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-14T07:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Hive database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213715#M10877</link>
      <description>Hi
&lt;BR /&gt;Create a job contains tHiveConnecton and run the job. Have you changed the port from 10000 to 8099? 
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 14 Apr 2011 07:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213715#M10877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-14T07:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Hive database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213716#M10878</link>
      <description>ya i have done dat also</description>
      <pubDate>Thu, 14 Apr 2011 08:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213716#M10878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-14T08:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Hive database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213717#M10879</link>
      <description>but neither i am able to see the tables present in hive neither able to fetch the data 
&lt;BR /&gt;i am surprised when the driver is already present there even then y it is nt able to connect to it</description>
      <pubDate>Thu, 14 Apr 2011 08:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213717#M10879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-14T08:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Hive database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213718#M10880</link>
      <description>Hi
&lt;BR /&gt;So you have to check the db installation is completely or not, have you turned off the firewall? Can you connect to Hive database with other client tool?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 15 Apr 2011 05:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-to-Hive-database/m-p/2213718#M10880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-15T05:19:01Z</dc:date>
    </item>
  </channel>
</rss>

