Member since
09-08-2016
4
Posts
2
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2476 | 09-09-2016 11:18 AM |
09-09-2016
11:18 AM
1 Kudo
Just so that every body knows - using the "use native query" in the ODBC driver make it work in my case.
... View more
09-08-2016
11:52 AM
Indeed the table as only one column (I knew this but just wanted to add more info to the description) The issue might be realted to Hive odbc driver from Hortonworks since it indeed works with Hive view (web page) ODBC driver version is version 2.1.2.1002 (32 bits) the server versions are from the ps -auxwww | grep -i HIve of the test VM I'm using from hortonworks : hive-service-1.2.1000.2.4.0.0-169.jar
hive-webhcat-1.2.1000.2.4.0.0-169.jar I've tested that if I change the CREATE TABLE for wkf107422_12_1_0 to have only one column it work in both in ODBC and Hive view
... View more
09-08-2016
08:57 AM
As a complementary information I've tried to replace the INSERT INTO by a CREATE TABLE AS SELECT CREATE TABLE wkf107422_12_1_1 AS
SELECT spersid FROM wkf107422_11_1 UNION SELECT spersid FROM wkf107422_10_1
and this one works through the same ODBC connection
... View more
09-08-2016
08:47 AM
1 Kudo
Hi, I'm trying to integrate the ODBC connectivity to Hortonworks plateform into our marketing data management software I'm having an issue runing a query INSERT INTO TableX (Col1) SELECT col1 from Table1 UNION SELECT col2 FROM Table2 using the ODBC connection where as the exact same statement works fine when run through Hive View Here are some details : Structure of tables used as sources: CREATE TABLE wkf107422_10_1( sextkey STRING,
sinfosfirstname STRING,
sinfosname STRING,
spersid STRING);
ALTER TABLE wkf107422_10_1 SET SERDEPROPERTIES ('serialization.encoding'='UTF8') CREATE TABLE wkf107422_11_1( sextkey STRING,
sinfosfirstname STRING,
sinfosname STRING,
spersid STRING);
ALTER TABLE wkf107422_11_1 SET SERDEPROPERTIES ('serialization.encoding'='UTF8') ; Structure of the table used as destination CREATE TABLE wkf107422_12_1_0( sextkey STRING,
sinfosfirstname STRING,
sinfosname STRING,
spersid STRING) ;
ALTER TABLE wkf107422_12_1_0 SET SERDEPROPERTIES ('serialization.encoding'='UTF8') ; Statements that is failing : INSERT INTO wkf107422_12_1_0 ( spersid )
SELECT spersid FROM wkf107422_11_1 UNION SELECT spersid FROM wkf107422_10_1 Any advice on what I'm doing wrong there ? Best regards
... View more
Labels:
- Labels:
-
Apache Hive