Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

to bring hive log level to ERROR

avatar
New Member

Hello All,

we need to bring down the hive log level to ERROR

follow are the files related to hive log properties, . in which file we need to change INFO to ERROR

find / -name "hive-*.properties"

/etc/hive/2.5.0.0-1245/0/hive-log4j.properties /etc/hive/2.5.0.0-1245/0/hive-exec-log4j.properties

/etc/hive/2.5.0.0-1245/0/conf.server/hive-log4j.properties

/etc/hive/2.5.0.0-1245/0/conf.server/hive-exec-log4j.properties

/etc/hive/conf.backup/hive-log4j.properties

/etc/hive/conf.backup/hive-exec-log4j.properties

/usr/hdp/2.5.0.0-1245/etc/hive/conf.dist/hive-log4j.properties

/usr/hdp/2.5.0.0-1245/etc/hive/conf.dist/hive-exec-log4j.properties

this we want to automate through power shell, kindly guide us how to do this.

1 ACCEPTED SOLUTION

avatar

Hi @Mallik Sunkara

If you want to change logging to ERROR for Hive services (not from Ambari), then change the logging under below files:

/etc/hive/2.5.0.0-1245/0/conf.server/hive-log4j.properties

/etc/hive/2.5.0.0-1245/0/conf.server/hive-exec-log4j.properties

Also, fyi, if the services are Ambari, then these changes would be reverted when the services are restarted from Ambari.

View solution in original post

1 REPLY 1

avatar

Hi @Mallik Sunkara

If you want to change logging to ERROR for Hive services (not from Ambari), then change the logging under below files:

/etc/hive/2.5.0.0-1245/0/conf.server/hive-log4j.properties

/etc/hive/2.5.0.0-1245/0/conf.server/hive-exec-log4j.properties

Also, fyi, if the services are Ambari, then these changes would be reverted when the services are restarted from Ambari.