message: add hive connection
diff: @@ -32,7 +32,7 @@ import edp.davinci.persistence.entities.PostUploadMeta
  import edp.davinci.rest.{CascadeParent, DistinctFieldValueRequest}
  import edp.davinci.util.common.DateUtils
  import edp.davinci.util.common.DavinciConstants._
  -import edp.davinci.util.jdbc.ESConnection
  +import edp.davinci.util.jdbc.{ESConnection, HiveConnection}
  import org.apache.log4j.Logger
  import scala.collection.mutable
  @@ -50,6 +50,9 @@ object SqlUtils extends Serializable {
  val tmpJdbcUrl = jdbcUrl.toLowerCase
  if (tmpJdbcUrl.indexOf("elasticsearch") > -1)
  ESConnection.getESJDBCConnection(tmpJdbcUrl, username)
  + else {
  + if (tmpJdbcUrl.indexOf("hive") > -1 && tmpJdbcUrl.indexOf("presto") == -1)
  + HiveConnection.getConnection(tmpJdbcUrl, username, password)
  else {
  if (!dataSourceMap.contains((tmpJdbcUrl, username)) || dataSourceMap((tmpJdbcUrl, username)) == null) {
  synchronized {
  @@ -61,6 +64,7 @@ object SqlUtils extends Serializable {
  dataSourceMap((tmpJdbcUrl, username)).getConnection
  }
  }
  + }
  private def initJdbc(jdbcUrl: String, username: String, password: String, muxPoolSize: Int = 10): Unit = {
  println(jdbcUrl)
  