<?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 Hive - Create external table on database (MySQL, Oracle, db2...) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/218209#M180110</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to create an external table in Hive on different databases (MySQL, Oracle, DB2..) because I do not want to move the data, either in HDFS or in Hive directly. &lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2017 22:44:24 GMT</pubDate>
    <dc:creator>raphamarymtl</dc:creator>
    <dc:date>2017-05-02T22:44:24Z</dc:date>
    <item>
      <title>Hive - Create external table on database (MySQL, Oracle, db2...)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/218209#M180110</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to create an external table in Hive on different databases (MySQL, Oracle, DB2..) because I do not want to move the data, either in HDFS or in Hive directly. &lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 22:44:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/218209#M180110</guid>
      <dc:creator>raphamarymtl</dc:creator>
      <dc:date>2017-05-02T22:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Create external table on database (MySQL, Oracle, db2...)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/218210#M180111</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is a Hive Storage Handler for JDBC that allows you to do this: &lt;A href="https://github.com/qubole/Hive-JDBC-Storage-Handler" target="_blank"&gt;https://github.com/qubole/Hive-JDBC-Storage-Handler&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;Example HQL:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DROP TABLE HiveTable;
CREATE EXTERNAL TABLE HiveTable(
  id INT,
  id_double DOUBLE,
  names STRING,
  test INT
)
STORED BY 'org.apache.hadoop.hive.jdbc.storagehandler.JdbcStorageHandler'
TBLPROPERTIES (
  "mapred.jdbc.driver.class"="com.mysql.jdbc.Driver",
  "mapred.jdbc.url"="jdbc:mysql://localhost:3306/rstore",
  "mapred.jdbc.username"="root",
  "mapred.jdbc.input.table.name"="JDBCTable",
  "mapred.jdbc.output.table.name"="JDBCTable",
  "mapred.jdbc.password"="",
  "mapred.jdbc.hive.lazy.split"= "false"
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 May 2017 22:56:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/218210#M180111</guid>
      <dc:creator>wbekker</dc:creator>
      <dc:date>2017-05-02T22:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Create external table on database (MySQL, Oracle, db2...)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/218211#M180112</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/12921/wbekker.html" nodeid="12921"&gt;@Ward Bekker&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can I use it for any DBs?&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 23:07:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/218211#M180112</guid>
      <dc:creator>raphamarymtl</dc:creator>
      <dc:date>2017-05-02T23:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Create external table on database (MySQL, Oracle, db2...)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/218212#M180113</link>
      <description>&lt;P&gt;Looks like any db with a JDBC driver, but I personally never used this handler, so can't vouch for it. I would recommend to test it for you DB's (MySQL, Oracle, db2...).&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 23:43:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/218212#M180113</guid>
      <dc:creator>wbekker</dc:creator>
      <dc:date>2017-05-02T23:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Create external table on database (MySQL, Oracle, db2...)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/218213#M180114</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/13246/raphamarymtl.html" nodeid="13246"&gt;@Raphaël MARY&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are using Greenplum then there is an existing protocol which will take care of your use case. gphdfs protocol. Its simple and easy but it will support only TEXT and CSV as of now. &lt;/P&gt;&lt;P&gt;&lt;A href="https://discuss.pivotal.io/hc/en-us/articles/202635496-How-to-access-HDFS-data-via-GPDB-external-table-with-gphdfs-protocol" target="_blank"&gt;https://discuss.pivotal.io/hc/en-us/articles/202635496-How-to-access-HDFS-data-via-GPDB-external-table-with-gphdfs-protocol&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check the above link for gphdfs protocol. &lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 02:55:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/218213#M180114</guid>
      <dc:creator>balavignesh_nag</dc:creator>
      <dc:date>2017-05-03T02:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - Create external table on database (MySQL, Oracle, db2...)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/379507#M243875</link>
      <description>&lt;P&gt;CREATE EXTERNAL TABLE dwsimp.dim_agrupamento (&lt;BR /&gt;id INT,&lt;/P&gt;&lt;P&gt;agrupamento_nome STRING,&lt;BR /&gt;agrupamento_ordem INT,&lt;BR /&gt;dim_relatorio_id INT,&lt;BR /&gt;agrupamento_campo STRING&lt;BR /&gt;)&lt;BR /&gt;STORED AS ORC&lt;BR /&gt;TBLPROPERTIES&lt;BR /&gt;(org.apache.hadoop.hive.jdbc.storagehandler.JdbcStorageHandler,&lt;/P&gt;&lt;P&gt;mapred.jdbc.driver.class = "oracle.jdbc.OracleDriver",&lt;BR /&gt;mapred.jdbc.url = "jdbc:oracle:thin:@//jdbc:oracle:thin:@//host:port/servicename",&lt;BR /&gt;mapred.jdbc.username = "user",&lt;BR /&gt;mapred.jdbc.password= "password",&lt;BR /&gt;mapred.jdbc.input.table.name="JDBCTable",&lt;BR /&gt;mapred.jdbc.output.table.name="JDBCTable",&lt;BR /&gt;mapred.jdbc.hive.lazy.split"= "false");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: Error while compiling statement: FAILED: ParseException line 10:2 cannot recognize input near 'org' '.' 'apache' in table properties list (state=42000,code=40000)&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 22:54:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Create-external-table-on-database-MySQL-Oracle-db2/m-p/379507#M243875</guid>
      <dc:creator>ialmeida</dc:creator>
      <dc:date>2023-11-23T22:54:42Z</dc:date>
    </item>
  </channel>
</rss>

