Re: ODBC isql error while testing

2010-09-10 Thread Ariel Leiva
Thanks Carl, i could test ODBC driver for Hive following what you suggested as 1) Ariel On Wed, Sep 8, 2010 at 4:59 AM, Carl Steinbach wrote: > Hi Ariel, > > Here are a couple more things to try: > > 1) Force libhiveodbc.so to be loaded first by setting the LD_PRELOAD > environment library: > >

Re: ODBC isql error while testing

2010-09-08 Thread Carl Steinbach
Hi Ariel, Here are a couple more things to try: 1) Force libhiveodbc.so to be loaded first by setting the LD_PRELOAD environment library: % LD_PRELOAD=/usr/local/unixODBC/lib/libodbchive.so isql -v Hive It turns out that SQLAllocEnv is defined in both libodbchive.so *and* libodbc.so. I have not

Re: ODBC isql error while testing

2010-09-07 Thread Ning Zhang
Something you can check out are: - Did you compiled and deployed your code in different environment (Linux/C compier version)? If so there might incompatibility issues in the kernel/C .so files - Can you check 'ldd isql' and see which .so files it loads? Particularly libodbc.so should be the

Re: ODBC isql error while testing

2010-09-07 Thread Ariel Leiva
All three .so files can be found in LD_LIBRARY_PATH and i am still getting the same error. Thanks for your suggestion. On Tue, Sep 7, 2010 at 1:41 AM, Ning Zhang wrote: > It looks like isql cannot load libodbchive.so. Please make sure that all > three .so files libodbchive.so, libhiveclient.so,

Re: ODBC isql error while testing

2010-09-06 Thread Ning Zhang
It looks like isql cannot load libodbchive.so. Please make sure that all three .so files libodbchive.so, libhiveclient.so, and libthrift.so can be found in LD_LIBRARY_PATH. On Sep 4, 2010, at 1:31 PM, Ariel Leiva wrote: > Hi, i built Hive odbc driver following > http://wiki.apache.org/hadoop

ODBC isql error while testing

2010-09-04 Thread Ariel Leiva
Hi, i built Hive odbc driver following http://wiki.apache.org/hadoop/Hive/HiveODBC and wanted to test it with isql, but i get the following error: [ISQL]ERROR: Could not SQLAllocEnv I set LD_LIBRARY_PATH so libhiveclient.so can be found correctly. I also tried, dltest libodbchive.so SQLAllocEnv w