Hi, I was trying to follow the tutorial (“How to Install and Configure the Hortonworks ODBC driver on Mac OS X”), because I wanted to use odbc driver on my Mac yosemite to import data from vmware fusion into excel.
but When I was testing the connection in excel, there was error.
HY000
[Hortonworks][HiveODBC] (68) Error returned trying to set default as the initial database: EAGAIN (timed out); Also tried quoting the database name ‘default’ but the query failed with the following error: EAGAIN (timed out)
In the “.hortonworks.hiveodbc.ini” file,
[Driver]
## – Note that this default DriverManagerEncoding of UTF-32 is for iODBC.
DriverManagerEncoding=UTF-32
ErrorMessagesPath=/usr/lib/hive/lib/native/hiveodbc/ErrorMessages/
LogLevel=0
LogPath=
SwapFilePath=/tmp
# iODBC
ODBCInstLib=libiodbcinst.dylib
In the “.odbcinst.ini” file,
[ODBC Drivers]
Hortonworks Hive ODBC Driver=Installed
[Hortonworks Hive ODBC Driver]
Description=Hortonworks Hive ODBC Driver
Driver=/usr/lib/hive/lib/native/universal/libhortonworkshiveodbc.dylib
For the two files, I didn’t make any change to follow the tutorial.
But I made changes the file “.odbc.ini” file,
first, before I made changes, the original file was…
[ODBC]
# Specify any global ODBC configuration here such as ODBC tracing.
[ODBC Data Sources]
Sample Hortonworks Hive DSN=Hortonworks Hive ODBC Driver
[Sample Hortonworks Hive DSN]
# Description: DSN Description.
# This key is not necessary and is only to give a description of the data source.
Description=Hortonworks Hive ODBC Driver DSN
# Driver: The location where the ODBC driver is installed to.
Driver=/usr/lib/hive/lib/native/universal/libhortonworkshiveodbc.dylib
# The DriverUnicodeEncoding setting is only used for SimbaDM
# When set to 1, SimbaDM runs in UTF-16 mode.
# When set to 2, SimbaDM runs in UTF-8 mode.
#DriverUnicodeEncoding=2
# Values for HOST, PORT, KrbHostFQDN, and KrbServiceName should be set here.
# They can also be specified on the connection string.
HOST=[HOST]
PORT=[PORT]
Schema=default
FastSQLPrepare=0
UseNativeQuery=0
HiveServerType=1
AuthMech=0
KrbHostFQDN=[Hive Server 2 Host FQDN]
KrbServiceName=[Hive Server 2 Kerberos service name]
UID=[User name]
but, to follow the tutorial, I made some changes,
# Values for HOST, PORT, KrbHostFQDN, and KrbServiceName should be set here.
# They can also be specified on the connection string.
HOST=192.168.2.128
PORT=10000
Schema=default
FastSQLPrepare=0
UseNativeQuery=0
HiveServerType=1
AuthMech=2
KrbHostFQDN=192.168.2.128
KrbServiceName=[Hive Server 2 Kerberos service name]
UserName=hue
And also, the names of those files were without “.”(dot), but to follow the tutorial
I renamed those fies with “.”(dot), so like “.odbc.ini”
So, after i changed, when I was trying to test the connection in excel,
there was error.
HY000
[Hortonworks][HiveODBC] (68) Error returned trying to set default as the initial database: EAGAIN (timed out); Also tried quoting the database name ‘default’ but the query failed with the following error: EAGAIN (timed out)
it is the same as above.
How could I solve this problem???
Dealing with the odbc driver on Mac is much harder than on Windows…..
Thanks, in advance!!