Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8105B62EF for ; Tue, 2 Aug 2011 22:01:04 +0000 (UTC) Received: (qmail 65804 invoked by uid 500); 2 Aug 2011 22:01:03 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 65694 invoked by uid 500); 2 Aug 2011 22:01:03 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 65686 invoked by uid 99); 2 Aug 2011 22:01:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 22:01:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of carl@cloudera.com designates 209.85.216.48 as permitted sender) Received: from [209.85.216.48] (HELO mail-qw0-f48.google.com) (209.85.216.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 22:00:55 +0000 Received: by qwj9 with SMTP id 9so277404qwj.35 for ; Tue, 02 Aug 2011 15:00:34 -0700 (PDT) Received: by 10.224.204.68 with SMTP id fl4mr4707273qab.259.1312322434138; Tue, 02 Aug 2011 15:00:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.53.196 with HTTP; Tue, 2 Aug 2011 15:00:14 -0700 (PDT) In-Reply-To: References: <1312244957.61598.YahooMailNeo@web110516.mail.gq1.yahoo.com> <234977549-1312262467-cardhu_decombobulator_blackberry.rim.net-294277414-@b16.c2.bise7.blackberry> From: Carl Steinbach Date: Tue, 2 Aug 2011 15:00:14 -0700 Message-ID: Subject: Re: NPE with hive.cli.print.header=true; To: user@hive.apache.org Cc: "bejoy_ks@yahoo.com" Content-Type: multipart/alternative; boundary=20cf3005dee68482d704a98ce04f X-Virus-Checked: Checked by ClamAV on apache.org --20cf3005dee68482d704a98ce04f Content-Type: text/plain; charset=ISO-8859-1 I was able to reproduce the problem with USE on trunk and filed HIVE-2334, but the problem with DESC appears to have already been fixed. On Tue, Aug 2, 2011 at 5:51 AM, Edward Capriolo wrote: > I am sure we can have a nicer return for the clients submit a jira. Check > if one is open first. > > > On Tuesday, August 2, 2011, wrote: > > Hi Ayon > > AFAIK hive is supposed to behave so. If you set the > hive.cli.print.header=true for enabling column headers then some commands > like 'desc' is not expected to work. Not sure whether there is some patch > recently out for this. > > > > Regards > > Bejoy K S > > > > ________________________________ > > With > > set hive.cli.print.header=true; > > > > I get NPE's for "desc" as well as "use" > > Exception in thread "main" java.lang.NullPointerException > > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:176) > > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:241) > > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:456) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at org.apache.hadoop.util.RunJar.main(RunJar.java:186) > > Is there a patch for this? > > > > -Ayon > > See My Photos on Flickr > > Also check out my Blog for answers to commonly asked questions. < > http://dailyadvisor.blogspot.com> > > --20cf3005dee68482d704a98ce04f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I was able to reproduce the problem with USE on trunk and filed HIVE-2334, = but the problem with DESC appears to have already been fixed.

On Tue, Aug 2, 2011 at 5:51 AM, Edward Capriolo <edlinuxguru@gmail.= com> wrote:
I am sure we can have a nicer return for th= e clients submit a jira. Check if one is open first.

<= br> On Tuesday, August 2, 2011, =A0<bejoy_ks@yahoo.com> wrote:
> Hi Ayon
> AFAIK hive is supposed to behave so. If you set the hive.cli.print.hea= der=3Dtrue for enabling column headers then some commands like 'desc= 9; is not expected to work. Not sure whether there is some patch recently o= ut for this.
>
> Regards
> Bejoy K S
>
> ____________________= ____________
> With=A0
> set hive.cli.p= rint.header=3Dtrue;
>
> I get NPE's for "desc" as= well as "use"
> Exception in thread "main" java.lang.NullPointerException> at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:176= )
> at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.jav= a:241)
> at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:456)
&g= t; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> a= t sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:5= 97)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:186)
> Is there a patch for this?
> =A0
> -Ayon
> See My Photos on Flickr=A0<http://www.f= lickr.com/photos/ayonsinha/>
> Also check out my Blog for answ= ers to commonly asked questions.=A0<http://dailyadvisor.blogspot.com>
>

--20cf3005dee68482d704a98ce04f--