Member since
04-05-2016
19
Posts
4
Kudos Received
3
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2559 | 08-10-2017 03:41 AM | |
1370 | 08-01-2017 05:32 AM | |
3691 | 06-28-2017 09:14 AM |
08-10-2017
03:41 AM
I don't think "log4j.appender.DRFA.MaxBackupIndex" is working, even though, it is listed in the log4j-hive.properties file by default and commented in Ambari. I found out there are two options to achieve the similar goal. Option 1: Customize DailyRollingFileAppender Reference: https://wiki.apache.org/logging-log4j/DailyRollingFileAppender Option 2: Use the TimeBasedRollingPolicy of DailyRollingFileAppender Reference: https://stackoverflow.com/questions/5117758/configuring-rollingfileappender-in-log4j
... View more
08-08-2017
05:18 AM
Actually, I have done that through Ambari web UI. However, it didn't work. Here is what I have done. Ambari web UI -> Hive -> Configs -> Advanced -> Advanced hive-log4j -> Hive Log: # of backup files : 7 The "#" is removed from "#log4j.appender.DRFA.MaxBackupIndex={{hive_log_maxbackupindex}}" After, restarting the hive server, the files placed below are changed. /etc/hive/conf/hive-log4j.properties /etc/hive/conf/conf.server/hive-log4j.properties AFAIK, hiveserver2 uses the seconde file. Thank you.
... View more
08-08-2017
01:51 AM
Hello, Does anyone know how to manage retention of hiveserver2.log file by using DailyRollingFileAppender in log4j through Ambari. E.g. Keep last 30 days' log files which in hiveserver2.log.yyyy-MM-dd format. BTW, it is DailyRollingFileAppender, not RollingFileAppender. Thank you.
... View more
Labels:
- Labels:
-
Apache Ambari
08-03-2017
01:50 AM
Hello, As I mentioned in the title of this question, I wonder what is the IPC client in Hive, and what does it do. If anyone happens to know, any help will be very thankful. Thank you.
... View more
Labels:
- Labels:
-
Apache Hive
08-01-2017
06:28 AM
I solved the problem by adding a new hive metastore service to the same node which has no hive-log4j.properties file in /etc/hive/2.6.0.3-8/0/conf.server folder.
... View more
08-01-2017
06:23 AM
Nope. thank you.
... View more
08-01-2017
05:32 AM
I solved the problem by adding a new hive metastore service to the same node which has no hive-log4j.properties file in /etc/hive/2.6.0.3-8/0/conf.server folder.
... View more
07-28-2017
08:34 AM
Hello, I found out that any hive-log4j config I changed though ambari will not affect one of the hive server 2. The reason is amabri does not create/change hive-log4j.properties file in /etc/hive/2.6.0.3-8/0/conf.server or say /usr/hdp/current/hive-server2/conf/conf.server. Does anyone happen to know the reason of this issue. Any help will be very thankful. Thank you.
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hive
07-28-2017
07:19 AM
The answer for the second question is that they use different hive-log4j.properties. Check https://community.hortonworks.com/questions/115159/hive-servers-in-same-cluster-use-different-hive-lo.html#answer-115162
... View more
07-28-2017
07:15 AM
@Jay SenSharma The problem is any config change from ambari will not affect the hive-log4j.properties file in the first host. Although, it does make sense, since ambari didn't create the file at the first place.
... View more