ambari git commit: AMBARI-18307. Add sqlline capability to AMS collector to help debugging. (swagle)

2016-10-18 Thread swagle
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 ac32c2885 -> db4aef04e


AMBARI-18307. Add sqlline capability to AMS collector to help debugging. 
(swagle)


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

Branch: refs/heads/branch-2.5
Commit: db4aef04e99697d4681e592294889c925bbd64ce
Parents: ac32c28
Author: Siddharth Wagle 
Authored: Tue Oct 18 15:56:11 2016 -0700
Committer: Siddharth Wagle 
Committed: Tue Oct 18 15:56:30 2016 -0700

--
 ambari-metrics/ambari-metrics-assembly/pom.xml  |  13 ++
 .../conf/unix/sqlline/log4j.properties  |  76 
 .../conf/unix/sqlline/phoenix_utils.py  | 193 +++
 .../conf/unix/sqlline/sqlline.py| 105 ++
 .../ambari-metrics-timelineservice/pom.xml  |  13 ++
 5 files changed, 400 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/db4aef04/ambari-metrics/ambari-metrics-assembly/pom.xml
--
diff --git a/ambari-metrics/ambari-metrics-assembly/pom.xml 
b/ambari-metrics/ambari-metrics-assembly/pom.xml
index f6cb361..a55ae57 100644
--- a/ambari-metrics/ambari-metrics-assembly/pom.xml
+++ b/ambari-metrics/ambari-metrics-assembly/pom.xml
@@ -309,6 +309,19 @@
   
 
 
+  
/usr/lib/ambari-metrics-collector/bin
+  755
+  root
+  root
+  false
+  
+
+  
${collector.dir}/conf/unix/sqlline
+  false
+
+  
+
+
   /etc/ambari-metrics-collector/conf
   true
   

http://git-wip-us.apache.org/repos/asf/ambari/blob/db4aef04/ambari-metrics/ambari-metrics-timelineservice/conf/unix/sqlline/log4j.properties
--
diff --git 
a/ambari-metrics/ambari-metrics-timelineservice/conf/unix/sqlline/log4j.properties
 
b/ambari-metrics/ambari-metrics-timelineservice/conf/unix/sqlline/log4j.properties
new file mode 100644
index 000..3f7760a
--- /dev/null
+++ 
b/ambari-metrics/ambari-metrics-timelineservice/conf/unix/sqlline/log4j.properties
@@ -0,0 +1,76 @@
+#
+#
+# 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
+#
+# 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.
+#
+#
+
+# Define some default values that can be overridden by system properties
+psql.root.logger=WARN,console
+psql.log.dir=.
+psql.log.file=psql.log
+hadoop.log.dir=.
+
+# Define the root logger to the system property "plsql.root.logger".
+log4j.rootLogger=${psql.root.logger}
+
+# Logging Threshold to INFO for query-server. root logger still at WARN for 
sqlline clients.
+log4j.threshold=INFO
+
+#
+# Daily Rolling File Appender
+#
+log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.DRFA.File=${psql.log.dir}/${psql.log.file}
+
+# Rollver at midnight
+log4j.appender.DRFA.DatePattern=.-MM-dd
+
+# 30-day backup
+#log4j.appender.DRFA.MaxBackupIndex=30
+log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
+
+# Pattern format: Date LogLevel LoggerName LogMessage
+log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
+
+# Debugging Pattern format
+#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} 
(%F:%M(%L)) - %m%n
+
+#
+# Null Appender
+#
+log4j.appender.NullAppender=org.apache.log4j.varia.NullAppender
+
+#
+# console
+# Add "console" to rootlogger above if you want to use this 
+#
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.target=System.err
+log4j.appender.console.layout=org.apache.log4j.PatternLayout

ambari git commit: AMBARI-18307. Add sqlline capability to AMS collector to help debugging. (swagle)

2016-09-02 Thread swagle
Repository: ambari
Updated Branches:
  refs/heads/trunk 24a50b7a2 -> 58b48a17e


AMBARI-18307. Add sqlline capability to AMS collector to help debugging. 
(swagle)


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

Branch: refs/heads/trunk
Commit: 58b48a17e953db4de7503e2917e17e9810382876
Parents: 24a50b7
Author: Siddharth Wagle 
Authored: Fri Sep 2 15:56:51 2016 -0700
Committer: Siddharth Wagle 
Committed: Fri Sep 2 15:56:51 2016 -0700

--
 ambari-metrics/ambari-metrics-assembly/pom.xml  |  13 ++
 .../conf/unix/sqlline/log4j.properties  |  76 
 .../conf/unix/sqlline/phoenix_utils.py  | 193 +++
 .../conf/unix/sqlline/sqlline.py| 105 ++
 .../ambari-metrics-timelineservice/pom.xml  |  13 ++
 5 files changed, 400 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/58b48a17/ambari-metrics/ambari-metrics-assembly/pom.xml
--
diff --git a/ambari-metrics/ambari-metrics-assembly/pom.xml 
b/ambari-metrics/ambari-metrics-assembly/pom.xml
index 6efd508..d73a0af 100644
--- a/ambari-metrics/ambari-metrics-assembly/pom.xml
+++ b/ambari-metrics/ambari-metrics-assembly/pom.xml
@@ -309,6 +309,19 @@
   
 
 
+  
/usr/lib/ambari-metrics-collector/bin
+  755
+  root
+  root
+  false
+  
+
+  
${collector.dir}/conf/unix/sqlline
+  false
+
+  
+
+
   /etc/ambari-metrics-collector/conf
   true
   

http://git-wip-us.apache.org/repos/asf/ambari/blob/58b48a17/ambari-metrics/ambari-metrics-timelineservice/conf/unix/sqlline/log4j.properties
--
diff --git 
a/ambari-metrics/ambari-metrics-timelineservice/conf/unix/sqlline/log4j.properties
 
b/ambari-metrics/ambari-metrics-timelineservice/conf/unix/sqlline/log4j.properties
new file mode 100644
index 000..3f7760a
--- /dev/null
+++ 
b/ambari-metrics/ambari-metrics-timelineservice/conf/unix/sqlline/log4j.properties
@@ -0,0 +1,76 @@
+#
+#
+# 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
+#
+# 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.
+#
+#
+
+# Define some default values that can be overridden by system properties
+psql.root.logger=WARN,console
+psql.log.dir=.
+psql.log.file=psql.log
+hadoop.log.dir=.
+
+# Define the root logger to the system property "plsql.root.logger".
+log4j.rootLogger=${psql.root.logger}
+
+# Logging Threshold to INFO for query-server. root logger still at WARN for 
sqlline clients.
+log4j.threshold=INFO
+
+#
+# Daily Rolling File Appender
+#
+log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.DRFA.File=${psql.log.dir}/${psql.log.file}
+
+# Rollver at midnight
+log4j.appender.DRFA.DatePattern=.-MM-dd
+
+# 30-day backup
+#log4j.appender.DRFA.MaxBackupIndex=30
+log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
+
+# Pattern format: Date LogLevel LoggerName LogMessage
+log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
+
+# Debugging Pattern format
+#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} 
(%F:%M(%L)) - %m%n
+
+#
+# Null Appender
+#
+log4j.appender.NullAppender=org.apache.log4j.varia.NullAppender
+
+#
+# console
+# Add "console" to rootlogger above if you want to use this 
+#
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.target=System.err
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
+log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd