You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by john smith <js...@gmail.com> on 2011/08/11 22:40:52 UTC

Running Hive from Eclipse

Hi folks,

I am trying to run Hive from eclipse. I've set it up correctly and it is
building the jars and stuff. However I face execeptions when I try to run
hive queries like "show tables" etc. There  has been a discussion on this in
the mailing list previously but there was no solution provided. It runs
perfectly from command line .

I am making a few changes to the hive source and every time I need to jar it
from the command line and run it .Is there some way to run it directly from
eclipse?

Please help,

Thanks,
JS

Re: Running Hive from Eclipse

Posted by john smith <js...@gmail.com>.
Hi,

See in the line that log4j props is not in found .. I added Hive_conf dir to
the classpath while running and now I get this trace ..

http://pastebin.com/vXs98aZ5

I am completely clueless !

Thanks
JS



On Fri, Aug 12, 2011 at 9:54 AM, john smith <js...@gmail.com> wrote:

> Hi Carl,
>
> This is the stack trace I get .. http://pastebin.com/3pASqvDq
>
> I configured mysql as my metastore and its perfectly getting updated when
> ever I am adding tables via commandline.
>
> Also one more thing is ..I am not getting any log statements while using
> command line . I haven't messed up with log4j props but I wonder why this is
> happening.
>
> THanks
>
>
> On Fri, Aug 12, 2011 at 2:12 AM, Carl Steinbach <ca...@cloudera.com> wrote:
>
>> Hi John,
>>
>> Can you please include the error messages/exceptions that you're
>> encountering?
>>
>> Thanks.
>>
>> Carl
>>
>>
>> On Thu, Aug 11, 2011 at 1:40 PM, john smith <js...@gmail.com>wrote:
>>
>>> Hi folks,
>>>
>>> I am trying to run Hive from eclipse. I've set it up correctly and it is
>>> building the jars and stuff. However I face execeptions when I try to run
>>> hive queries like "show tables" etc. There  has been a discussion on this
>>> in
>>> the mailing list previously but there was no solution provided. It runs
>>> perfectly from command line .
>>>
>>> I am making a few changes to the hive source and every time I need to jar
>>> it
>>> from the command line and run it .Is there some way to run it directly
>>> from
>>> eclipse?
>>>
>>> Please help,
>>>
>>> Thanks,
>>> JS
>>>
>>
>>
>

Re: Running Hive from Eclipse

Posted by john smith <js...@gmail.com>.
Hi Carl,

This is the stack trace I get .. http://pastebin.com/3pASqvDq

I configured mysql as my metastore and its perfectly getting updated when
ever I am adding tables via commandline.

Also one more thing is ..I am not getting any log statements while using
command line . I haven't messed up with log4j props but I wonder why this is
happening.

THanks

On Fri, Aug 12, 2011 at 2:12 AM, Carl Steinbach <ca...@cloudera.com> wrote:

> Hi John,
>
> Can you please include the error messages/exceptions that you're
> encountering?
>
> Thanks.
>
> Carl
>
>
> On Thu, Aug 11, 2011 at 1:40 PM, john smith <js...@gmail.com>wrote:
>
>> Hi folks,
>>
>> I am trying to run Hive from eclipse. I've set it up correctly and it is
>> building the jars and stuff. However I face execeptions when I try to run
>> hive queries like "show tables" etc. There  has been a discussion on this
>> in
>> the mailing list previously but there was no solution provided. It runs
>> perfectly from command line .
>>
>> I am making a few changes to the hive source and every time I need to jar
>> it
>> from the command line and run it .Is there some way to run it directly
>> from
>> eclipse?
>>
>> Please help,
>>
>> Thanks,
>> JS
>>
>
>

Re: Running Hive from Eclipse

Posted by Carl Steinbach <ca...@cloudera.com>.
Hi John,

Can you please include the error messages/exceptions that you're
encountering?

Thanks.

Carl

On Thu, Aug 11, 2011 at 1:40 PM, john smith <js...@gmail.com> wrote:

> Hi folks,
>
> I am trying to run Hive from eclipse. I've set it up correctly and it is
> building the jars and stuff. However I face execeptions when I try to run
> hive queries like "show tables" etc. There  has been a discussion on this
> in
> the mailing list previously but there was no solution provided. It runs
> perfectly from command line .
>
> I am making a few changes to the hive source and every time I need to jar
> it
> from the command line and run it .Is there some way to run it directly from
> eclipse?
>
> Please help,
>
> Thanks,
> JS
>

Re: Running Hive from Eclipse

Posted by Carl Steinbach <ca...@cloudera.com>.
Hi John,

Can you please include the error messages/exceptions that you're
encountering?

Thanks.

Carl

On Thu, Aug 11, 2011 at 1:40 PM, john smith <js...@gmail.com> wrote:

> Hi folks,
>
> I am trying to run Hive from eclipse. I've set it up correctly and it is
> building the jars and stuff. However I face execeptions when I try to run
> hive queries like "show tables" etc. There  has been a discussion on this
> in
> the mailing list previously but there was no solution provided. It runs
> perfectly from command line .
>
> I am making a few changes to the hive source and every time I need to jar
> it
> from the command line and run it .Is there some way to run it directly from
> eclipse?
>
> Please help,
>
> Thanks,
> JS
>