You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Ajit Kumar Shreevastava <Aj...@hcl.com> on 2012/09/17 12:41:25 UTC
warning message while connecting Hive shell
Hello ,
When I want to make connection with hive I got the following warning message.
[hadoop@NHCLT-PC44-2 conf]$ hive
WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.
Logging initialized using configuration in jar:file:/home/hadoop/hive-0.8.1/lib/hive-common-0.8.1.jar!/hive-log4j.properties
Hive history file=/tmp/hadoop/hive_job_log_hadoop_201209171607_883156857.txt
hive> show tables;
OK
Time taken: 3.871 seconds
hive>
Does anyone have some clue regarding the warning message.
Thanks and Regards
Ajit Kumar Shreevastava
ADCOE (App Development Center Of Excellence )
Mobile: 9717775634
::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.
----------------------------------------------------------------------------------------------------------------------------------------------------
RE: warning message while connecting Hive shell
Posted by "Connell, Chuck" <Ch...@nuance.com>.
Yes, this worked. For my setup (CDH4) the required file is in /etc/hive/conf.
Note that my default setup had NO file named hive-log4j.properties. I had one named hive-log4j.properties.template. So I took the template file, removed the .template extension, then made the edit as shown below.
Chuck Connell
Nuance R&D Data Team
Burlington, MA
-----Original Message-----
From: Kaufman Ng [mailto:kaufman@cloudera.com]
Sent: Tuesday, September 18, 2012 6:11 PM
To: user@hive.apache.org
Subject: Re: warning message while connecting Hive shell
Here's the fix: just fix the hive-log4j.properties in your hive install.
replace this line:
log4j.appender.EventCounter=org.apache.hadoop.metrics.jvm.EventCounter
with this:
log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter
On Mon, Sep 17, 2012 at 10:34 AM, Robin Verlangen <ro...@us2.nl> wrote:
> Same for me. It's been there always, didn't really bother, however if
> there's a fix, we should fix it.
>
> Best regards,
>
> Robin Verlangen
> Software engineer
>
> W http://www.robinverlangen.nl
> E robin@us2.nl
>
> Disclaimer: The information contained in this message and attachments
> is intended solely for the attention and use of the named addressee
> and may be confidential. If you are not the intended recipient, you
> are reminded that the information remains the property of the sender.
> You must not use, disclose, distribute, copy, print or rely on this
> e-mail. If you have received this message in error, please contact the
> sender immediately and irrevocably delete this message and any copies.
>
>
>
> 2012/9/17 Connell, Chuck <Ch...@nuance.com>
>
>> I get the same warning. Could you please be more specific about "set
>> the class path wrt log4J property file"? Exactly what should we do?
>>
>> Chuck Connell
>> Nuance R&D Data Team
>> Burlington, MA
>>
>>
>> -----Original Message-----
>> From: ashok.samal@wipro.com [mailto:ashok.samal@wipro.com]
>> Sent: Monday, September 17, 2012 7:50 AM
>> To: user@hive.apache.org
>> Subject: RE: warning message while connecting Hive shell
>>
>> Please set the class path wrt log4J property file
>>
>> Thanks
>> Ashok S.
>>
>>
>> ________________________________________
>> From: Ajit Kumar Shreevastava [Ajit.Shreevastava@hcl.com]
>> Sent: Monday, September 17, 2012 4:11 PM
>> To: user@hive.apache.org
>> Subject: warning message while connecting Hive shell
>>
>> Hello ,
>> When I want to make connection with hive I got the following warning
>> message.
>>
>> [hadoop@NHCLT-PC44-2 conf]$ hive
>> WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated.
>> Please use org.apache.hadoop.log.metrics.EventCounter in all the
>> log4j.properties files.
>> Logging initialized using configuration in
>> jar:file:/home/hadoop/hive-0.8.1/lib/hive-common-0.8.1.jar!/hive-log4
>> j.properties
>> Hive history
>> file=/tmp/hadoop/hive_job_log_hadoop_201209171607_883156857.txt
>> hive> show tables;
>> OK
>> Time taken: 3.871 seconds
>> hive>
>>
>> Does anyone have some clue regarding the warning message.
>>
>>
>
Re: warning message while connecting Hive shell
Posted by Kaufman Ng <ka...@cloudera.com>.
Here's the fix: just fix the hive-log4j.properties in your hive install.
replace this line:
log4j.appender.EventCounter=org.apache.hadoop.metrics.jvm.EventCounter
with this:
log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter
On Mon, Sep 17, 2012 at 10:34 AM, Robin Verlangen <ro...@us2.nl> wrote:
> Same for me. It's been there always, didn't really bother, however if
> there's a fix, we should fix it.
>
> Best regards,
>
> Robin Verlangen
> Software engineer
>
> W http://www.robinverlangen.nl
> E robin@us2.nl
>
> Disclaimer: The information contained in this message and attachments is
> intended solely for the attention and use of the named addressee and may be
> confidential. If you are not the intended recipient, you are reminded that
> the information remains the property of the sender. You must not use,
> disclose, distribute, copy, print or rely on this e-mail. If you have
> received this message in error, please contact the sender immediately and
> irrevocably delete this message and any copies.
>
>
>
> 2012/9/17 Connell, Chuck <Ch...@nuance.com>
>
>> I get the same warning. Could you please be more specific about "set the
>> class path wrt log4J property file"? Exactly what should we do?
>>
>> Chuck Connell
>> Nuance R&D Data Team
>> Burlington, MA
>>
>>
>> -----Original Message-----
>> From: ashok.samal@wipro.com [mailto:ashok.samal@wipro.com]
>> Sent: Monday, September 17, 2012 7:50 AM
>> To: user@hive.apache.org
>> Subject: RE: warning message while connecting Hive shell
>>
>> Please set the class path wrt log4J property file
>>
>> Thanks
>> Ashok S.
>>
>>
>> ________________________________________
>> From: Ajit Kumar Shreevastava [Ajit.Shreevastava@hcl.com]
>> Sent: Monday, September 17, 2012 4:11 PM
>> To: user@hive.apache.org
>> Subject: warning message while connecting Hive shell
>>
>> Hello ,
>> When I want to make connection with hive I got the following warning
>> message.
>>
>> [hadoop@NHCLT-PC44-2 conf]$ hive
>> WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please
>> use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties
>> files.
>> Logging initialized using configuration in
>> jar:file:/home/hadoop/hive-0.8.1/lib/hive-common-0.8.1.jar!/hive-log4j.properties
>> Hive history
>> file=/tmp/hadoop/hive_job_log_hadoop_201209171607_883156857.txt
>> hive> show tables;
>> OK
>> Time taken: 3.871 seconds
>> hive>
>>
>> Does anyone have some clue regarding the warning message.
>>
>>
>
Re: warning message while connecting Hive shell
Posted by Robin Verlangen <ro...@us2.nl>.
Same for me. It's been there always, didn't really bother, however if
there's a fix, we should fix it.
Best regards,
Robin Verlangen
*Software engineer*
*
*
W http://www.robinverlangen.nl
E robin@us2.nl
Disclaimer: The information contained in this message and attachments is
intended solely for the attention and use of the named addressee and may be
confidential. If you are not the intended recipient, you are reminded that
the information remains the property of the sender. You must not use,
disclose, distribute, copy, print or rely on this e-mail. If you have
received this message in error, please contact the sender immediately and
irrevocably delete this message and any copies.
2012/9/17 Connell, Chuck <Ch...@nuance.com>
> I get the same warning. Could you please be more specific about "set the
> class path wrt log4J property file"? Exactly what should we do?
>
> Chuck Connell
> Nuance R&D Data Team
> Burlington, MA
>
>
> -----Original Message-----
> From: ashok.samal@wipro.com [mailto:ashok.samal@wipro.com]
> Sent: Monday, September 17, 2012 7:50 AM
> To: user@hive.apache.org
> Subject: RE: warning message while connecting Hive shell
>
> Please set the class path wrt log4J property file
>
> Thanks
> Ashok S.
>
>
> ________________________________________
> From: Ajit Kumar Shreevastava [Ajit.Shreevastava@hcl.com]
> Sent: Monday, September 17, 2012 4:11 PM
> To: user@hive.apache.org
> Subject: warning message while connecting Hive shell
>
> Hello ,
> When I want to make connection with hive I got the following warning
> message.
>
> [hadoop@NHCLT-PC44-2 conf]$ hive
> WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please
> use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties
> files.
> Logging initialized using configuration in
> jar:file:/home/hadoop/hive-0.8.1/lib/hive-common-0.8.1.jar!/hive-log4j.properties
> Hive history
> file=/tmp/hadoop/hive_job_log_hadoop_201209171607_883156857.txt
> hive> show tables;
> OK
> Time taken: 3.871 seconds
> hive>
>
> Does anyone have some clue regarding the warning message.
>
>
>
RE: warning message while connecting Hive shell
Posted by "Connell, Chuck" <Ch...@nuance.com>.
I get the same warning. Could you please be more specific about "set the class path wrt log4J property file"? Exactly what should we do?
Chuck Connell
Nuance R&D Data Team
Burlington, MA
-----Original Message-----
From: ashok.samal@wipro.com [mailto:ashok.samal@wipro.com]
Sent: Monday, September 17, 2012 7:50 AM
To: user@hive.apache.org
Subject: RE: warning message while connecting Hive shell
Please set the class path wrt log4J property file
Thanks
Ashok S.
________________________________________
From: Ajit Kumar Shreevastava [Ajit.Shreevastava@hcl.com]
Sent: Monday, September 17, 2012 4:11 PM
To: user@hive.apache.org
Subject: warning message while connecting Hive shell
Hello ,
When I want to make connection with hive I got the following warning message.
[hadoop@NHCLT-PC44-2 conf]$ hive
WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.
Logging initialized using configuration in jar:file:/home/hadoop/hive-0.8.1/lib/hive-common-0.8.1.jar!/hive-log4j.properties
Hive history file=/tmp/hadoop/hive_job_log_hadoop_201209171607_883156857.txt
hive> show tables;
OK
Time taken: 3.871 seconds
hive>
Does anyone have some clue regarding the warning message.
RE: warning message while connecting Hive shell
Posted by as...@wipro.com.
Please set the class path wrt log4J property file
Thanks
Ashok S.
________________________________________
From: Ajit Kumar Shreevastava [Ajit.Shreevastava@hcl.com]
Sent: Monday, September 17, 2012 4:11 PM
To: user@hive.apache.org
Subject: warning message while connecting Hive shell
Hello ,
When I want to make connection with hive I got the following warning message.
[hadoop@NHCLT-PC44-2 conf]$ hive
WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.
Logging initialized using configuration in jar:file:/home/hadoop/hive-0.8.1/lib/hive-common-0.8.1.jar!/hive-log4j.properties
Hive history file=/tmp/hadoop/hive_job_log_hadoop_201209171607_883156857.txt
hive> show tables;
OK
Time taken: 3.871 seconds
hive>
Does anyone have some clue regarding the warning message.
Thanks and Regards
Ajit Kumar Shreevastava
ADCOE (App Development Center Of Excellence )
Mobile: 9717775634
::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.
----------------------------------------------------------------------------------------------------------------------------------------------------
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com