You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ra...@apache.org on 2019/06/23 17:11:07 UTC

[phoenix-connectors] branch master updated: PHOENIX-5309 Skip adding log4j and slf4j to phoenix-hive jar to avoid logging in hive-server2.err file than hiveserver2.log(Rajeshbabu)

This is an automated email from the ASF dual-hosted git repository.

rajeshbabu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix-connectors.git


The following commit(s) were added to refs/heads/master by this push:
     new 9890de6  PHOENIX-5309 Skip adding log4j and slf4j to phoenix-hive jar to avoid logging in hive-server2.err file than hiveserver2.log(Rajeshbabu)
9890de6 is described below

commit 9890de6366f3f32af48df0122d49f94a878de146
Author: Rajeshbabu Chintaguntla <Rajeshbabu Chintaguntla>
AuthorDate: Sun Jun 23 22:41:03 2019 +0530

    PHOENIX-5309 Skip adding log4j and slf4j to phoenix-hive jar to avoid logging in hive-server2.err file than hiveserver2.log(Rajeshbabu)
---
 phoenix-hive/pom.xml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/phoenix-hive/pom.xml b/phoenix-hive/pom.xml
index 705ad34..8a95b44 100644
--- a/phoenix-hive/pom.xml
+++ b/phoenix-hive/pom.xml
@@ -36,6 +36,16 @@
     <dependency>
       <groupId>org.apache.phoenix</groupId>
       <artifactId>phoenix-core</artifactId>
+      <exclusions>
+        <exclusion>
+	  <groupId>log4j</groupId>
+	  <artifactId>log4j</artifactId>
+	</exclusion>
+        <exclusion>
+          <groupId>org.slf4j</groupId>
+          <artifactId>slf4j-api</artifactId>
+	</exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>org.apache.hive</groupId>
@@ -55,6 +65,18 @@
       <scope>provided</scope>
     </dependency>
     <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+        <version>${slf4j.version}</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+         <version>${log4j.version}</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
       <groupId>org.apache.hadoop</groupId>
       <artifactId>hadoop-mapreduce-client-core</artifactId>
     </dependency>