From d716ee4bd537bf562685123f8653e7cf2190eeee Mon Sep 17 00:00:00 2001
From: lgcareer <18610854716@163.com>
Date: Wed, 21 Aug 2019 20:11:13 +0800
Subject: [PATCH] Remove useless dependencies and add jsp-2.1-6.1.14 (#720)
* Remove useless dependencies and add jsp-2.1-6.1.14
* Determine if principal is empty in getJdbcUrl method
---
escheduler-common/pom.xml | 117 ++++++++++++++++++
.../common/job/db/HiveDataSource.java | 8 +-
pom.xml | 6 +
3 files changed, 130 insertions(+), 1 deletion(-)
diff --git a/escheduler-common/pom.xml b/escheduler-common/pom.xml
index b71a1dcc6b..8f93821216 100644
--- a/escheduler-common/pom.xml
+++ b/escheduler-common/pom.xml
@@ -152,6 +152,18 @@
jersey-json
com.sun.jersey
+
+ jersey-server
+ com.sun.jersey
+
+
+ jersey-core
+ com.sun.jersey
+
+
+ xz
+ org.tukaani
+
@@ -195,6 +207,18 @@
org.apache.hadoop
hadoop-mapreduce-client-shuffle
+
+ jersey-client
+ com.sun.jersey
+
+
+ jersey-core
+ com.sun.jersey
+
+
+ jaxb-api
+ javax.xml.bind
+
@@ -231,6 +255,14 @@
org.fusesource.leveldbjni
leveldbjni-all
+
+ jersey-core
+ com.sun.jersey
+
+
+ jersey-server
+ com.sun.jersey
+
@@ -379,6 +411,86 @@
jasper-runtime
tomcat
+
+ slider-core
+ org.apache.slider
+
+
+ hbase-server
+ org.apache.hbase
+
+
+ jersey-client
+ com.sun.jersey
+
+
+ jersey-core
+ com.sun.jersey
+
+
+ jersey-json
+ com.sun.jersey
+
+
+ jersey-server
+ com.sun.jersey
+
+
+ jersey-guice
+ com.sun.jersey.contribs
+
+
+ hbase-common
+ org.apache.hbase
+
+
+ hbase-hadoop2-compat
+ org.apache.hbase
+
+
+ hbase-client
+ org.apache.hbase
+
+
+ hbase-hadoop-compat
+ org.apache.hbase
+
+
+ tephra-hbase-compat-1.0
+ co.cask.tephra
+
+
+ jaxb-api
+ javax.xml.bind
+
+
+ hive-llap-client
+ org.apache.hive
+
+
+ hive-llap-common
+ org.apache.hive
+
+
+ hive-llap-server
+ org.apache.hive
+
+
+ tephra-core
+ co.cask.tephra
+
+
+ ant
+ ant
+
+
+ stringtemplate
+ org.antlr
+
+
+ antlr-runtime
+ org.antlr
+
@@ -428,6 +540,11 @@
+
+
+ org.mortbay.jetty
+ jsp-2.1
+
diff --git a/escheduler-common/src/main/java/cn/escheduler/common/job/db/HiveDataSource.java b/escheduler-common/src/main/java/cn/escheduler/common/job/db/HiveDataSource.java
index 719c5eb300..0d45924e8e 100644
--- a/escheduler-common/src/main/java/cn/escheduler/common/job/db/HiveDataSource.java
+++ b/escheduler-common/src/main/java/cn/escheduler/common/job/db/HiveDataSource.java
@@ -45,7 +45,13 @@ public class HiveDataSource extends BaseDataSource {
jdbcUrl += "/";
}
- jdbcUrl += getDatabase() + ";principal=" + getPrincipal();
+ jdbcUrl += getDatabase();
+
+ if (StringUtils.isNotEmpty(getPrincipal())){
+ jdbcUrl += ";principal=" + getPrincipal();
+ }
+
+
if (StringUtils.isNotEmpty(getOther())) {
jdbcUrl += ";" + getOther();
diff --git a/pom.xml b/pom.xml
index a97650aafb..df7ab3ed5f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -375,6 +375,12 @@
6.1.0.jre8
+
+ org.mortbay.jetty
+ jsp-2.1
+ 6.1.14
+
+