You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by kishore kumar <ak...@gmail.com> on 2016/09/26 15:56:32 UTC

Configure hiveserver2 logs

Hi Hive Users,

Using hive 1.2 version,

I am connecting hiveserver2 via jdbc connection, could any one suggest me
how to configure log file

using this link
https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients

I set these 3 parameters values

- hive.server2.logging.operation.enabled
<https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.server2.logging.operation.enabled>
=
true
- hive.server2.logging.operation.log.location
<https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.server2.logging.operation.log.location>=
/${username}/logs
- hive.server2.logging.operation.level
<https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.server2.logging.operation.level>
=VERBOSE

Am i missing something ? kindly help me. I couldn't see any file generating
logs in defined location.

-- 
Thanks,
KK.

Re: Configure hiveserver2 logs

Posted by Chetna C <ch...@gmail.com>.
Hi Kishore,
    Setting above 3 parameters enables query/operations logs. If you are
looking for HiveServer2 process log, you'll need to configure it while
launching HiveServer2 Process  with following jvm params
"-Dhive.log.dir=<logging_dir> -Dhive.log.file=hive-server2.log"

You can refer to "Hive Logging" section on GettingStarted
<https://cwiki.apache.org/confluence/display/Hive/GettingStarted#GettingStarted-BuildingHivefromSource>
page for more details.

Thanks,
Chetna Chaudhari

On 26 September 2016 at 21:26, kishore kumar <ak...@gmail.com> wrote:

> Hi Hive Users,
>
> Using hive 1.2 version,
>
> I am connecting hiveserver2 via jdbc connection, could any one suggest me
> how to configure log file
>
> using this link https://cwiki.apache.org/confluence/display/Hive/
> HiveServer2+Clients
>
> I set these 3 parameters values
>
> - hive.server2.logging.operation.enabled
> <https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.server2.logging.operation.enabled> =
> true
> - hive.server2.logging.operation.log.location
> <https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.server2.logging.operation.log.location>=
> /${username}/logs
> - hive.server2.logging.operation.level
> <https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.server2.logging.operation.level>
> =VERBOSE
>
> Am i missing something ? kindly help me. I couldn't see any file
> generating logs in defined location.
>
> --
> Thanks,
> KK.
>