hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien FLAESCH>
Subject Compiling Hive ODBC
Date Fri, 26 Apr 2013 11:33:44 GMT
Hi all,

Just started with an Hadoop / Hive POC to write a

So far, I have installed:

So far I have downloaded the Hadoop and Hive packages from:

I took:


After setting the env, it seems that hive is working:

hive@orca:~$ $HIVE_HOME/bin/hive
hive> create table t1 ( k int, s string );

hive> select count(*) from t1;
Total MapReduce jobs = 1
Time taken: 7.634 seconds

No I want to connect through ODBC...

Following the instructions of this page:

Section "Hive Client Build/Setup", I tried:

hive@orca:~/hive-0.10.0$ cd $HIVE_HOME
hive@orca:~/hive-0.10.0$ ant compile-cpp -Dthrift.home=/home/hive/hive-0.10.0/odbc
Buildfile: build.xml does not exist!
Build failed

Then, from the sources directory src/odbc:

hive@orca:~/hive-0.10.0$ cd src/odbc/
hive@orca:~/hive-0.10.0/src/odbc$ ant compile-cpp -Dthrift.home=/home/hive/hive-0.10.0/odbc
Buildfile: /home/hive/hive-0.10.0/src/odbc/build.xml

/home/hive/hive-0.10.0/src/odbc/build.xml:30: The following error occurred while executing
this line:
/home/hive/hive-0.10.0/src/build-common.xml:117: Problem: failed to create task or type osfamily
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

Total time: 0 seconds

Can someone help or point me to an up to date documentation?


View raw message