ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject ambari git commit: AMBARI-17872. Another fix to llap log4j properties for HDP 2.5 stack (Siddharth Seth via smohanty)
Date Sun, 24 Jul 2016 02:47:54 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 842d382ef -> 5ca20c20c


AMBARI-17872. Another fix to llap log4j properties for HDP 2.5 stack (Siddharth Seth via smohanty)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5ca20c20
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5ca20c20
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5ca20c20

Branch: refs/heads/trunk
Commit: 5ca20c20c2882bbfbb4e290da62acc139175e9d3
Parents: 842d382
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Sat Jul 23 19:47:06 2016 -0700
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Sat Jul 23 19:47:49 2016 -0700

----------------------------------------------------------------------
 .../HIVE/configuration/llap-daemon-log4j.xml    | 36 ++++++--------------
 1 file changed, 10 insertions(+), 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5ca20c20/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/llap-daemon-log4j.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/llap-daemon-log4j.xml
b/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/llap-daemon-log4j.xml
index 1f724d7..6953530 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/llap-daemon-log4j.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/llap-daemon-log4j.xml
@@ -41,6 +41,13 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+
+# This is the log4j2 properties file used by llap-daemons. There's several loggers defined,
which
+# can be selected while configuring LLAP.
+# Based on the one selected - UI links etc need to be manipulated in the system.
+# Note: Some names and logic is common to this file and llap LogHelpers. Make sure to change
that
+# as well, if changing this file.
+
 status = INFO
 name = LlapDaemonLog4j2
 packages = org.apache.hadoop.hive.ql.log
@@ -55,7 +62,7 @@ property.llap.daemon.log.maxfilesize = 256MB
 property.llap.daemon.log.maxbackupindex = 240
 
 # list of all appenders
-appenders = console, RFA, HISTORYAPPENDER, dag-routing, query-routing
+appenders = console, RFA, HISTORYAPPENDER, query-routing
 
 # console appender
 appender.console.type = Console
@@ -68,7 +75,7 @@ appender.console.layout.pattern = %d{ISO8601} %5p [%t (%X{fragmentId})]
%c{2}: %
 appender.RFA.type = RollingRandomAccessFile
 appender.RFA.name = RFA
 appender.RFA.fileName = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.log.file}
-appender.RFA.filePattern = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.log.file}_%d{yyyy-MM-dd-HH}_%i
+appender.RFA.filePattern = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.log.file}_%d{yyyy-MM-dd-HH}_%i.done
 appender.RFA.layout.type = PatternLayout
 appender.RFA.layout.pattern = %d{ISO8601} %-5p [%t (%X{fragmentId})] %c: %m%n
 appender.RFA.policies.type = Policies
@@ -84,7 +91,7 @@ appender.RFA.strategy.max = ${sys:llap.daemon.log.maxbackupindex}
 appender.HISTORYAPPENDER.type = RollingRandomAccessFile
 appender.HISTORYAPPENDER.name = HISTORYAPPENDER
 appender.HISTORYAPPENDER.fileName = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.historylog.file}
-appender.HISTORYAPPENDER.filePattern = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.historylog.file}_%d{yyyy-MM-dd}_%i
+appender.HISTORYAPPENDER.filePattern = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.historylog.file}_%d{yyyy-MM-dd}_%i.done
 appender.HISTORYAPPENDER.layout.type = PatternLayout
 appender.HISTORYAPPENDER.layout.pattern = %m%n
 appender.HISTORYAPPENDER.policies.type = Policies
@@ -96,29 +103,6 @@ appender.HISTORYAPPENDER.policies.time.modulate = true
 appender.HISTORYAPPENDER.strategy.type = DefaultRolloverStrategy
 appender.HISTORYAPPENDER.strategy.max = ${sys:llap.daemon.log.maxbackupindex}
 
-# dagId based routing file appender
-appender.dag-routing.type = Routing
-appender.dag-routing.name = dag-routing
-appender.dag-routing.routes.type = Routes
-appender.dag-routing.routes.pattern = $${ctx:dagId}
-#Purge polciy for dag-based Routing Appender
-appender.dag-routing.purgePolicy.type = LlapRoutingAppenderPurgePolicy
-# Note: Do not change this name without changing the corresponding entry in LlapConstants
-appender.dag-routing.purgePolicy.name = llapLogPurgerDagRouting
-# default route
-appender.dag-routing.routes.route-default.type = Route
-appender.dag-routing.routes.route-default.key = $${ctx:dagId}
-appender.dag-routing.routes.route-default.ref = RFA
-# dagId based route
-appender.dag-routing.routes.route-mdc.type = Route
-appender.dag-routing.routes.route-mdc.file-mdc.type = LlapWrappedAppender
-appender.dag-routing.routes.route-mdc.file-mdc.name = IrrelevantName-dag-routing
-appender.dag-routing.routes.route-mdc.file-mdc.app.type=RandomAccessFile
-appender.dag-routing.routes.route-mdc.file-mdc.app.name=file-mdc
-appender.dag-routing.routes.route-mdc.file-mdc.app.fileName = ${sys:llap.daemon.log.dir}/${ctx:dagId}.log
-appender.dag-routing.routes.route-mdc.file-mdc.app.layout.type = PatternLayout
-appender.dag-routing.routes.route-mdc.file-mdc.app.layout.pattern = %d{ISO8601} %5p [%t (%X{fragmentId})]
%c{2}: %m%n
-
 # queryId based routing file appender
 appender.query-routing.type = Routing
 appender.query-routing.name = query-routing


Mime
View raw message