Yes, sorry - my typo :)

Those typedefs are specified on my machine in 
/usr/lib/gcc/i686-linux-gnu/4.6.1/include/stdint-gcc.h - and both apt-get 
commands say that the gcc and g++ versions are at the latest revision.

I guess that the stdint-gcc.h isn't being included in my fb303 build. I'll 
check this next. In the meantime, further suggestions are welcome!

Thanks again,

Tony


From: Ashutosh Chauhan [mailto:hashut...@apache.org]
Sent: 26 October 2011 18:19
To: user@hive.apache.org
Subject: Re: UnixODBC and Hive setup

Is that a typo, unit32_t instead of uint32_t ?

Looks like you are missing standard header files. On my ubuntu 11.10
$ grep uint32_t -R  /usr/lib/gcc
/usr/lib/gcc/x86_64-linux-gnu/4.6/include/stdint-gcc.h:typedef __UINT32_TYPE__ 
uint32_t;
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stdint-gcc.h:typedef 
__UINT32_TYPE__ uint32_t;

Try doing:
$ sudo apt-get install gcc
$ sudo apt-get install g++

which will upgrade your gcc to latest version. That may help.

Ashutosh
On Wed, Oct 26, 2011 at 10:02, Tony Burton 
<tbur...@sportingindex.com<mailto:tbur...@sportingindex.com>> wrote:
Hi Ashutosh

Thanks for the speedy reply! I found the contrib/fb303 easily enough - the 
bootstrap.sh and configure are fine, but the make fails with:

/usr/local/include/thrift/transport/TTransport.h: error: 'unit32_t' does not 
name a type

Is there a quick fix for this? Thanks!

Tony




From: Ashutosh Chauhan 
[mailto:hashut...@apache.org<mailto:hashut...@apache.org>]
Sent: 26 October 2011 17:27
To: user@hive.apache.org<mailto:user@hive.apache.org>
Subject: Re: UnixODBC and Hive setup

>> When I run the ant build, it fails because it can't find header file 
>> fb303_types.h. Any idea where this file should come from?

You need to build fb303 for this. Go to the dir where you untarred thrift tar 
ball. Then, cd contrib/fb303 . Then ./bootstrap.sh && configure && make && make 
install. Bit more instructions are there in README in same dir.

Hope it helps,
Ashutosh
On Wed, Oct 26, 2011 at 09:05, Tony Burton 
<tbur...@sportingindex.com<mailto:tbur...@sportingindex.com>> wrote:
Hello,

I'm having trouble installing and running UnixODBC for Hive. Can anyone help? 
I'm trying to follow the guide at 
https://cwiki.apache.org/confluence/display/Hive/HiveODBC but it's not very 
helpful. I'm trying to install on Ubuntu 11.10.
I've got the Thrift server up and running (I think) - following the 
instructions at https://cwiki.apache.org/confluence/display/Hive/HiveServer I 
start the server, it says "Starting Hive Thrift Server" with no further output 
until the ant tests run. Both tests mentioned on 
https://cwiki.apache.org/confluence/display/Hive/HiveServer run and are 
successful.

I run into trouble with the next step on 
https://cwiki.apache.org/confluence/display/Hive/HiveODBC, the section titled 
"Driver Architecture" onwards. I build the Hive Client using this command:

> ant compile-cpp -Dthrift.home=<THRIFT_HOME>

Where THRIFT_HOME is the path to my installation of Thrift (in this case, 
/usr/local/lib). When I run the ant build, it fails because it can't find 
header file fb303_types.h. Any idea where this file should come from?


Also, when building the unixODBC code (following instructions at 
https://cwiki.apache.org/confluence/display/Hive/HiveODBC), I get no 
libodbchive.so.1.0.0 in my Drivers/hive/.libs directory - in fact, the hive 
directory in Drivers does not exist. How do I persuade the build to create the 
hive-related directories and libraries?

Many thanks in advance for your help,

Tony




P Think of the environment: please don't print this email unless you really 
need to.

Error! Filename not specified.<http://www.sportingindex.com>

Outbound Email has been scanned for viruses and SPAM

This email and any attachments are confidential, protected by copyright and may 
be legally privileged. If you are not the intended recipient, then the 
dissemination or copying of this email is prohibited. If you have received this 
in error, please notify the sender by replying by email and then delete the 
email completely from your system. Neither Sporting Index nor the sender 
accepts responsibility for any virus, or any other defect which might affect 
any computer or IT system into which the email is received and/or opened. It is 
the responsibility of the recipient to scan the email and no responsibility is 
accepted for any loss or damage arising in any way from receipt or use of this 
email. Sporting Index Ltd is a company registered in England and Wales with 
company number 2636842, whose registered office is at Brookfield House, Green 
Lane, Ivinghoe, Leighton Buzzard, LU7 9ES. Sporting Index Ltd is authorised and 
regulated by the UK Financial Services Authority (reg. no. 150404). Any 
financial promotion contained herein has been issued and approved by Sporting 
Index Ltd.


Inbound Email has been scanned for viruses and SPAM
P Think of the environment: please don't print this email unless you really 
need to.

Error! Filename not specified.<http://www.sportingindex.com>

Outbound Email has been scanned for viruses and SPAM

This email and any attachments are confidential, protected by copyright and may 
be legally privileged. If you are not the intended recipient, then the 
dissemination or copying of this email is prohibited. If you have received this 
in error, please notify the sender by replying by email and then delete the 
email completely from your system. Neither Sporting Index nor the sender 
accepts responsibility for any virus, or any other defect which might affect 
any computer or IT system into which the email is received and/or opened. It is 
the responsibility of the recipient to scan the email and no responsibility is 
accepted for any loss or damage arising in any way from receipt or use of this 
email. Sporting Index Ltd is a company registered in England and Wales with 
company number 2636842, whose registered office is at Brookfield House, Green 
Lane, Ivinghoe, Leighton Buzzard, LU7 9ES. Sporting Index Ltd is authorised and 
regulated by the UK Financial Services Authority (reg. no. 150404). Any 
financial promotion contained herein has been issued and approved by Sporting 
Index Ltd.


Inbound Email has been scanned for viruses and SPAM
**********************************************************************
This email and any attachments are confidential, protected by copyright and may 
be legally privileged.  If you are not the intended recipient, then the 
dissemination or copying of this email is prohibited. If you have received this 
in error, please notify the sender by replying by email and then delete the 
email completely from your system.  Neither Sporting Index nor the sender 
accepts responsibility for any virus, or any other defect which might affect 
any computer or IT system into which the email is received and/or opened.  It 
is the responsibility of the recipient to scan the email and no responsibility 
is accepted for any loss or damage arising in any way from receipt or use of 
this email.  Sporting Index Ltd is a company registered in England and Wales 
with company number 2636842, whose registered office is at Brookfield House, 
Green Lane, Ivinghoe, Leighton Buzzard, LU7 9ES.  Sporting Index Ltd is 
authorised and regulated by the UK Financial Services Authority (reg. no. 
150404). Any financial promotion contained herein has been issued 
and approved by Sporting Index Ltd.

Outbound email has been scanned for viruses and SPAM

Reply via email to