Hello,
this is my first post in here. I have some issues with writing back to Hive table using odbc.
More specific, I have configured unixodbc with the Cloudera's Hive ODBC Driver (Simba). the odbc connection is fine. ODBC query load exec describe work fine, but I have some issues with `odbc insert`.
* When var is integer, the odbc insert with create, fails because the create table statement, is using `integer` which is not valid in Hive. The correct is `int`. I can bypass this issue by create the table in advance, with `odbc exec` and then try to insert data. If there is a flag or mapping table that I can modify , to change integer to int, please let me know.
* Second, and most important, is that insert fails always. The error I snot helpful ( r(682) ), so I had to turn on trace in driver and run Stata in command line. Anyway, the error is
Nov 10 09:14:03.211 TRACE 34121024 ::CInterface::SQLSetConnectAttr: +++++ enter +++++
Nov 10 09:14:03.211 TRACE 34121024 Simba::ODBC::Connection::SQLSetConnectAttr: +++++ enter +++++
Nov 10 09:14:03.211 INFO 34121024 Simba::ODBC::Connection::SQLSetConnectAttr: Attribute: SQL_ATTR_AUTOCOMMIT (102)
Nov 10 09:14:03.211 TRACE 34121024 Simba::ODBC::ConnectionState::SQLSetConnectAttr: +++++ enter +++++
Nov 10 09:14:03.219 ERROR 34121024 Simba::ODBC::Connection::SQLSetConnectAttr: [Cloudera][ODBC] (11470) Transactions are not supported.
Is there something I can tune on Stata side, to make it work?
Thanks in advance for your support.
Information:
Stata/IC 16.1 for Unix - Revision 29 Sep 2020
unixODBC: 2.3.4
OS: Ubuntu 18.04
Cloudera Hive ODBC: 2.6.9
Related Posts with odbc insert with Hive odbc fails
Suppressing dummy variables in regression output tableHello! I have run a regression which contains several dummy variables which I would like to exclude…
ICD 10 Codes dataset: Please helpHi there, Please I urgently need help with generate new variable consisting ICD 10 codes related to…
Graph optionsArray Dear Stata users, I am wondering is it possible to control the size of the second label (num…
checking string similarity within the same variableDear all, This message was initially posted in the discussion thread HTML Code: https://www.stata…
Delta method toHello I am using stata 14 and the mixlogit command (user install) to analyse data from a discrete c…
Subscribe to:
Post Comments (Atom)
0 Response to odbc insert with Hive odbc fails
Post a Comment