Repository: ambari Updated Branches: refs/heads/trunk 074fe227b -> b6e489412
AMBARI-14084. Ambari Views : each view should have separate log file for better troubleshooting (Nitiraj Rathore via pallavkul) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b6e48941 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b6e48941 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b6e48941 Branch: refs/heads/trunk Commit: b6e4894123f22f5397508f190155e2d405d07ed0 Parents: 074fe22 Author: Pallav Kulshreshtha <[email protected]> Authored: Tue Apr 5 16:24:01 2016 +0530 Committer: Pallav Kulshreshtha <[email protected]> Committed: Tue Apr 5 16:24:01 2016 +0530 ---------------------------------------------------------------------- .../apache/ambari/server/view/ViewRegistry.java | 2 +- .../src/main/resources/view.log4j.properties | 15 +++++++++++++-- .../src/main/resources/view.log4j.properties | 17 ++++++++++++++--- .../src/main/resources/view.log4j.properties | 20 ++++++++++++++++++-- .../src/main/resources/view.log4j.properties | 15 +++++++++++++-- .../src/main/resources/view.log4j.properties | 15 +++++++++++++-- .../src/main/resources/view.log4j.properties | 15 +++++++++++++-- .../src/main/resources/view.log4j.properties | 15 +++++++++++++-- .../src/main/resources/view.log4j.properties | 15 +++++++++++++-- 9 files changed, 111 insertions(+), 18 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/b6e48941/ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java b/ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java index 8b0add4..d9b1fac 100644 --- a/ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java +++ b/ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java @@ -1563,7 +1563,7 @@ public class ViewRegistry { private void configureViewLogging(ViewEntity viewDefinition,ClassLoader cl) { URL resourceURL = cl.getResource(VIEW_LOG_FILE); if( null != resourceURL ){ - LOG.debug("setting up logging for view {} as per property file {}",viewDefinition.getName(), resourceURL); + LOG.info("setting up logging for view {} as per property file {}",viewDefinition.getName(), resourceURL); PropertyConfigurator.configure(resourceURL); } } http://git-wip-us.apache.org/repos/asf/ambari/blob/b6e48941/contrib/views/capacity-scheduler/src/main/resources/view.log4j.properties ---------------------------------------------------------------------- diff --git a/contrib/views/capacity-scheduler/src/main/resources/view.log4j.properties b/contrib/views/capacity-scheduler/src/main/resources/view.log4j.properties index f10b694..86883a0 100644 --- a/contrib/views/capacity-scheduler/src/main/resources/view.log4j.properties +++ b/contrib/views/capacity-scheduler/src/main/resources/view.log4j.properties @@ -1,3 +1,4 @@ +<<<<<<< ours # Copyright 2011 The Apache Software Foundation # # Licensed to the Apache Software Foundation (ASF) under one @@ -9,6 +10,16 @@ # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 +======= +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +>>>>>>> theirs # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -17,11 +28,11 @@ # limitations under the License. log4j.appender.capshedView=org.apache.log4j.RollingFileAppender -log4j.appender.capshedView.File=/var/log/ambari-server/capshed-view.log +log4j.appender.capshedView.File=/var/log/ambari-server/capshed-view/capshed-view.log log4j.appender.capshedView.MaxFileSize=80MB log4j.appender.capshedView.MaxBackupIndex=60 log4j.appender.capshedView.layout=org.apache.log4j.PatternLayout log4j.appender.capshedView.layout.ConversionPattern=%d{DATE} %5p [%t] %c{1}:%L - %m%n -log4j.logger.org.apache.ambari.view.capacityscheduler=DEBUG,capshedView +log4j.logger.org.apache.ambari.view.capacityscheduler=INFO,capshedView log4j.additivity.org.apache.ambari.view.capacityscheduler = false http://git-wip-us.apache.org/repos/asf/ambari/blob/b6e48941/contrib/views/files/src/main/resources/view.log4j.properties ---------------------------------------------------------------------- diff --git a/contrib/views/files/src/main/resources/view.log4j.properties b/contrib/views/files/src/main/resources/view.log4j.properties index 18c9d32..22abf8e 100644 --- a/contrib/views/files/src/main/resources/view.log4j.properties +++ b/contrib/views/files/src/main/resources/view.log4j.properties @@ -1,3 +1,4 @@ +<<<<<<< ours # Copyright 2011 The Apache Software Foundation # # Licensed to the Apache Software Foundation (ASF) under one @@ -9,6 +10,16 @@ # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 +======= +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +>>>>>>> theirs # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -17,11 +28,11 @@ # limitations under the License. log4j.appender.filesView=org.apache.log4j.RollingFileAppender -log4j.appender.filesView.File=/var/log/ambari-server/files-view.log +log4j.appender.filesView.File=/var/log/ambari-server/files-view/files-view.log log4j.appender.filesView.MaxFileSize=80MB log4j.appender.filesView.MaxBackupIndex=60 log4j.appender.filesView.layout=org.apache.log4j.PatternLayout log4j.appender.filesView.layout.ConversionPattern=%d{DATE} %5p [%t] %c{1}:%L - %m%n -log4j.logger.org.apache.ambari.view.filebrowser=DEBUG,filesView -log4j.additivity.org.apache.ambari.view.filebrowser= true +log4j.logger.org.apache.ambari.view.filebrowser=INFO,filesView +log4j.additivity.org.apache.ambari.view.filebrowser= false http://git-wip-us.apache.org/repos/asf/ambari/blob/b6e48941/contrib/views/hive/src/main/resources/view.log4j.properties ---------------------------------------------------------------------- diff --git a/contrib/views/hive/src/main/resources/view.log4j.properties b/contrib/views/hive/src/main/resources/view.log4j.properties index b0c61c3..f7c8577 100644 --- a/contrib/views/hive/src/main/resources/view.log4j.properties +++ b/contrib/views/hive/src/main/resources/view.log4j.properties @@ -1,3 +1,4 @@ +<<<<<<< ours # Copyright 2011 The Apache Software Foundation # # Licensed to the Apache Software Foundation (ASF) under one @@ -9,18 +10,33 @@ # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 +======= +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +>>>>>>> theirs # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +<<<<<<< ours +======= + + +>>>>>>> theirs log4j.appender.hiveView=org.apache.log4j.RollingFileAppender -log4j.appender.hiveView.File=/var/log/ambari-server/hive-view.log +log4j.appender.hiveView.File=/var/log/ambari-server/hive-view/hive-view.log log4j.appender.hiveView.MaxFileSize=80MB log4j.appender.hiveView.MaxBackupIndex=60 log4j.appender.hiveView.layout=org.apache.log4j.PatternLayout log4j.appender.hiveView.layout.ConversionPattern=%d{DATE} %5p [%t] %c{1}:%L - %m%n -log4j.logger.org.apache.ambari.view.hive=DEBUG,hiveView +log4j.logger.org.apache.ambari.view.hive=INFO,hiveView log4j.additivity.org.apache.ambari.view.hive = false http://git-wip-us.apache.org/repos/asf/ambari/blob/b6e48941/contrib/views/jobs/src/main/resources/view.log4j.properties ---------------------------------------------------------------------- diff --git a/contrib/views/jobs/src/main/resources/view.log4j.properties b/contrib/views/jobs/src/main/resources/view.log4j.properties index 27c49c5..3862206 100644 --- a/contrib/views/jobs/src/main/resources/view.log4j.properties +++ b/contrib/views/jobs/src/main/resources/view.log4j.properties @@ -1,3 +1,4 @@ +<<<<<<< ours # Copyright 2011 The Apache Software Foundation # # Licensed to the Apache Software Foundation (ASF) under one @@ -9,6 +10,16 @@ # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 +======= +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +>>>>>>> theirs # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -17,12 +28,12 @@ # limitations under the License. log4j.appender.jobsView=org.apache.log4j.RollingFileAppender -log4j.appender.jobsView.File=/var/log/ambari-server/jobs-view.log +log4j.appender.jobsView.File=/var/log/ambari-server/jobs-view/jobs-view.log log4j.appender.jobsView.MaxFileSize=80MB log4j.appender.jobsView.MaxBackupIndex=60 log4j.appender.jobsView.layout=org.apache.log4j.PatternLayout log4j.appender.jobsView.layout.ConversionPattern=%d{DATE} %5p [%t] %c{1}:%L - %m%n -log4j.logger.org.apache.ambari.view.jobs=DEBUG,jobsView +log4j.logger.org.apache.ambari.view.jobs=INFO,jobsView log4j.additivity.org.apache.ambari.view.jobs=false \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/b6e48941/contrib/views/pig/src/main/resources/view.log4j.properties ---------------------------------------------------------------------- diff --git a/contrib/views/pig/src/main/resources/view.log4j.properties b/contrib/views/pig/src/main/resources/view.log4j.properties index 50c19c4..02d02d3 100644 --- a/contrib/views/pig/src/main/resources/view.log4j.properties +++ b/contrib/views/pig/src/main/resources/view.log4j.properties @@ -1,3 +1,4 @@ +<<<<<<< ours # Copyright 2011 The Apache Software Foundation # # Licensed to the Apache Software Foundation (ASF) under one @@ -9,6 +10,16 @@ # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 +======= +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +>>>>>>> theirs # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -17,11 +28,11 @@ # limitations under the License. log4j.appender.pigView=org.apache.log4j.RollingFileAppender -log4j.appender.pigView.File=/var/log/ambari-server/pig-view.log +log4j.appender.pigView.File=/var/log/ambari-server/pig-view/pig-view.log log4j.appender.pigView.MaxFileSize=80MB log4j.appender.pigView.MaxBackupIndex=60 log4j.appender.pigView.layout=org.apache.log4j.PatternLayout log4j.appender.pigView.layout.ConversionPattern=%d{DATE} %5p [%t] %c{1}:%L - %m%n -log4j.logger.org.apache.ambari.view.pig=DEBUG,pigView +log4j.logger.org.apache.ambari.view.pig=INFO,pigView log4j.additivity.org.apache.ambari.view.pig=false \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/b6e48941/contrib/views/slider/src/main/resources/view.log4j.properties ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/view.log4j.properties b/contrib/views/slider/src/main/resources/view.log4j.properties index 1ee9483..540b6d1 100644 --- a/contrib/views/slider/src/main/resources/view.log4j.properties +++ b/contrib/views/slider/src/main/resources/view.log4j.properties @@ -1,3 +1,4 @@ +<<<<<<< ours # Copyright 2011 The Apache Software Foundation # # Licensed to the Apache Software Foundation (ASF) under one @@ -9,6 +10,16 @@ # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 +======= +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +>>>>>>> theirs # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -17,11 +28,11 @@ # limitations under the License. log4j.appender.sliderView=org.apache.log4j.RollingFileAppender -log4j.appender.sliderView.File=/var/log/ambari-server/slider-view.log +log4j.appender.sliderView.File=/var/log/ambari-server/slider-view/slider-view.log log4j.appender.sliderView.MaxFileSize=80MB log4j.appender.sliderView.MaxBackupIndex=60 log4j.appender.sliderView.layout=org.apache.log4j.PatternLayout log4j.appender.sliderView.layout.ConversionPattern=%d{DATE} %5p [%t] %c{1}:%L - %m%n -log4j.logger.org.apache.ambari.view.slider=DEBUG,sliderView +log4j.logger.org.apache.ambari.view.slider=INFO,sliderView log4j.additivity.org.apache.ambari.view.slider=false \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/b6e48941/contrib/views/storm/src/main/resources/view.log4j.properties ---------------------------------------------------------------------- diff --git a/contrib/views/storm/src/main/resources/view.log4j.properties b/contrib/views/storm/src/main/resources/view.log4j.properties index c62ca30..d17f4cd 100644 --- a/contrib/views/storm/src/main/resources/view.log4j.properties +++ b/contrib/views/storm/src/main/resources/view.log4j.properties @@ -1,3 +1,4 @@ +<<<<<<< ours # Copyright 2011 The Apache Software Foundation # # Licensed to the Apache Software Foundation (ASF) under one @@ -9,6 +10,16 @@ # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 +======= +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +>>>>>>> theirs # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -17,11 +28,11 @@ # limitations under the License. log4j.appender.stormView=org.apache.log4j.RollingFileAppender -log4j.appender.stormView.File=/var/log/ambari-server/storm-view.log +log4j.appender.stormView.File=/var/log/ambari-server/storm-view/storm-view.log log4j.appender.stormView.MaxFileSize=80MB log4j.appender.stormView.MaxBackupIndex=60 log4j.appender.stormView.layout=org.apache.log4j.PatternLayout log4j.appender.stormView.layout.ConversionPattern=%d{DATE} %5p [%t] %c{1}:%L - %m%n -log4j.logger.org.apache.ambari.storm=DEBUG,stormView +log4j.logger.org.apache.ambari.storm=INFO,stormView log4j.additivity.org.apache.ambari.storm=false \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/b6e48941/contrib/views/tez/src/main/resources/view.log4j.properties ---------------------------------------------------------------------- diff --git a/contrib/views/tez/src/main/resources/view.log4j.properties b/contrib/views/tez/src/main/resources/view.log4j.properties index 25d16d0..c8e5842 100644 --- a/contrib/views/tez/src/main/resources/view.log4j.properties +++ b/contrib/views/tez/src/main/resources/view.log4j.properties @@ -1,3 +1,4 @@ +<<<<<<< ours # Copyright 2011 The Apache Software Foundation # # Licensed to the Apache Software Foundation (ASF) under one @@ -9,6 +10,16 @@ # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 +======= +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +>>>>>>> theirs # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -17,11 +28,11 @@ # limitations under the License. log4j.appender.tezView=org.apache.log4j.RollingFileAppender -log4j.appender.tezView.File=/var/log/ambari-server/tez-view.log +log4j.appender.tezView.File=/var/log/ambari-server/tez-view/tez-view.log log4j.appender.tezView.MaxFileSize=80MB log4j.appender.tezView.MaxBackupIndex=60 log4j.appender.tezView.layout=org.apache.log4j.PatternLayout log4j.appender.tezView.layout.ConversionPattern=%d{DATE} %5p [%t] %c{1}:%L - %m%n -log4j.logger.org.apache.ambari.view.tez=DEBUG,tezView +log4j.logger.org.apache.ambari.view.tez=INFO,tezView log4j.additivity.org.apache.ambari.view.tez=false \ No newline at end of file
