Reply
Champion
Posts: 742
Registered: ‎05-16-2016

Re: Console logs not showing in Beeline

Hi 

 

I assume you are usinig Hive 0.14 and higer .

Could you please check these configuration this will enable logs for Beeline Clients. 

 

hive.server2.logging.operation.enabled
hive.server2.logging.operation.log.location
hive.server2.logging.operation.verbose (Hive 0.14 to 1.1)
hive.server2.logging.operation.level
hive.server2.logging.operation.enabled
Default Value: true

When true, HiveServer2 will save operation logs and make them available for clients.

hive.server2.logging.operation.log.location
Default Value: ${java.io.tmpdir}/${user.name}/operation_logs

Top level directory where operation logs are stored if logging functionality is enabled.

hive.server2.logging.operation.verbose
Default Value: false

When true, HiveServer2 operation logs available for clients will be verbose.  


hive.server2.logging.operation.level
Default Value: EXECUTION

HiveServer2 operation logging mode available to clients to be set at session level.
For this to work, hive.server2.logging.operation.enabled should be set to true. 
The allowed values are:
NONE: Ignore any logging.
EXECUTION: Log completion of tasks.
PERFORMANCE: Execution + Performance logs.
VERBOSE: All logs.

Fruther you can refer the below links 

 

https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hi...

Explorer
Posts: 10
Registered: ‎02-06-2017

Re: Console logs not showing in Beeline

Hi @csguna

 

Thank you for the reply. 

 

Hive version is 1.1 and the cluster is managed by Cloudera manager.

 

For both HS2 hosts, the property is set to below values:

hive.server2.logging.operation.enabled=true
hive.server2.logging.operation.log.location=/var/log/hive/operation_logs
hive.server2.logging.operation.verbose=undefined
hive.server2.logging.operation.level=execution

 

But one HS2 is generating console logs for the jobs execution and the other one is not generating.

 

I have tried setting below value and retried, but no luck.

hive.server2.logging.operation.verbose=true

 

 

 

New Contributor
Posts: 1
Registered: ‎04-11-2018

Re: Console logs not showing in Beeline

use this conf in hive-site.xml

<property>
<name>hive.async.log.enabled</name>
<value>false</value>
</property>

 

Announcements