Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 96305 invoked from network); 6 Jan 2011 09:53:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2011 09:53:01 -0000 Received: (qmail 8878 invoked by uid 500); 6 Jan 2011 09:52:59 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 8582 invoked by uid 500); 6 Jan 2011 09:52:59 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 8124 invoked by uid 99); 6 Jan 2011 09:52:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 09:52:58 +0000 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sssssssenator@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-ww0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 09:52:51 +0000 Received: by wwb31 with SMTP id 31so16841156wwb.23 for ; Thu, 06 Jan 2011 01:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=wPIrtRHjC8DyUbglok+gTkP3YBeJ9nUEg3uK+KeSHjc=; b=BjnZmjcIUntD76Z04RhhE4ND+hXi7Y4Cu775gmmjliz9YOu/l8sKuQAGIyg0Iq7qHQ fHU/YyZp7NiJ933s+zJcAWNweItUpqrYucNMcBVgkZxO0MaOlI9sDynSupNJyNwBpjSd GEzjQjIZi24BS8Q7C0QUiclJVczYjdJs3Uagc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Pyo/p1xjrdW+herXaXbyBVnZyJFq2sLlXcMlJISQeqw2e29K5mvpXNno6PCxjDls1l oSyMFiP6vzASjJWUZVbryWRQKfjvwkVDnzgKNj7Vo94PY3pMmLrz+d55LWy1WTlsnMXe hlaDxp4q/Rpt9CcBqwG3r9BURS2+pOytLTElI= MIME-Version: 1.0 Received: by 10.216.89.204 with SMTP id c54mr365367wef.109.1294307550839; Thu, 06 Jan 2011 01:52:30 -0800 (PST) Received: by 10.216.68.132 with HTTP; Thu, 6 Jan 2011 01:52:30 -0800 (PST) In-Reply-To: References: Date: Thu, 6 Jan 2011 15:22:30 +0530 Message-ID: Subject: Re: HIVE ODBC test fails at testing with isql From: vaibhav negi To: dev@hive.apache.org Cc: hive-user@hadoop.apache.org, hive-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=0016e6d7ebcdcc486b04992a7523 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d7ebcdcc486b04992a7523 Content-Type: text/plain; charset=ISO-8859-1 Hi, Thanks for the tips carl, but still it doesn't run .. now i will try it on another server some other day. Thanks and Regards Vaibhav Negi On Thu, Jan 6, 2011 at 1:10 PM, Carl Steinbach wrote: > Hi Vaibhav, > > ror output when i run isql hive > > > > [-----]SQL_SUCCESS > > [-----]hEnv = $09BF20A0 phDbc = $0804E2FC > > [-----]SQL_SUCCESS > > [ISQL]ERROR: Could not SQLConnect > > > > Did you remember to start the HiveServer process? > > Do you have the driver configured to use the right IP > address and port number for the HiveServer process? > > > > I tried following commands also-- > > > > export > > > > > LD_LIBRARY_PATH=/usr/local/lib/libodbchive.so:/usr/local/lib/libhiveclient.so:/usr/local/lib/libthrift.so > > > > LD_LIBRARY_PATH should contain a list of directories, not files, e.g: > > export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH > > export LD_PRELOAD=/usr/local/lib/libodbchive.so > > > > This looks OK, but did you verify that /usr/local/lib/libodbchive.so > actually exists? > > > > I think i am missing something very important. > > > > Do i need to copy files in /usr/local/lib/ to /lib ? > > > > No, don't do this. In fact, when you're experimenting with new software I'd > recommend that you try to avoid altering the contents of system directories > like /usr/local, /lib, etc, since this can cause hard to find problems > weeks > or months later. > > One good way to keep things sane (and what I recommend you try doing now) > is to create a subdirectory in your home directory (e.g. $HOME/local) and > install > all of your test software there. In other words, build unixODBC again, but > this > time specify that you want the software installed to $HOME/local by running > configure with --prefix=$HOME/local > > You'll end up with bin, lib and include directories under $HOME/local which > contain > the unixODBC driver libs along with the isql executable and various header > files. > You will then need to update some of your environment variables as follows: > > # Make sure we find isql in ~/local/bin first > export PATH=~/local/bin:$PATH > > # Make sure we use libodbchive.so in ~/local/lib > export LD_LIBRARY_PATH=~/local/lib:$LD_LIBRARY_PATH > > # Load ~/local/lib/libodbchive.so before loading anything else. > export LD_PRELOAD=~/local/lib/libodbchive.so > > Remember that these environment variable settings are specific to the > task at hand, so you probably don't want to add them to login > configuration files. > > As a final sanity check please use ldd to verify that libodbchive.so > library > is > able to satisfy all of it's dependencies: > > % ldd -d -r ~/local/lib/libodbchive.so > > Running ldd on isql won't tell you much because isql loads libodbchive.so > dynamically at runtime using the location of the driver lib specified in > your > odbc.ini file. > > Hope this helps. > > Carl > --0016e6d7ebcdcc486b04992a7523--