bowenli86 commented on a change in pull request #8205: [FLINK-12238] [hive] 
Support database related operations in GenericHiveMetastoreCatalog and setup 
flink-connector-hive module
URL: https://github.com/apache/flink/pull/8205#discussion_r279450999
 
 

 ##########
 File path: flink-connectors/flink-connector-hive/pom.xml
 ##########
 @@ -0,0 +1,425 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+                xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+
+       <modelVersion>4.0.0</modelVersion>
+
+       <parent>
+               <groupId>org.apache.flink</groupId>
+               <artifactId>flink-connectors</artifactId>
+               <version>1.9-SNAPSHOT</version>
+               <relativePath>..</relativePath>
+       </parent>
+
+       <artifactId>flink-connector-hive_${scala.binary.version}</artifactId>
+       <name>flink-connector-hive</name>
+
+       <packaging>jar</packaging>
+
+       <properties>
+               <hive.version>2.3.4</hive.version>
+               
<hivemetastore.hadoop.version>2.7.2</hivemetastore.hadoop.version>
+       </properties>
+
+       <dependencies>
+
+               <!-- core dependencies -->
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-table-common</artifactId>
+                       <version>${project.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-table-api-java</artifactId>
+                       <version>${project.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <!-- Hadoop dependency -->
+               <!-- Hadoop as provided dependencies, so we can depend on them 
without pulling in Hadoop -->
+
+               <dependency>
+                       <groupId>org.apache.hadoop</groupId>
+                       <artifactId>hadoop-common</artifactId>
+                       <version>${hivemetastore.hadoop.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.hadoop</groupId>
+                       <artifactId>hadoop-mapreduce-client-core</artifactId>
+                       <version>${hivemetastore.hadoop.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <!-- Hive dependencies -->
+               <!-- Note: Hive published jars do not have proper dependencies 
declared.
+               We need to push for HIVE-16391 
(https://issues.apache.org/jira/browse/HIVE-16391) to resolve this problem. -->
+
+               <dependency>
+                       <groupId>org.apache.hive</groupId>
+                       <artifactId>hive-metastore</artifactId>
+                       <version>${hive.version}</version>
+                       <exclusions>
+                               <exclusion>
+                                       <groupId>org.apache.hive</groupId>
+                                       <artifactId>hive-shims</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>javolution</groupId>
+                                       <artifactId>javolution</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>com.google.guava</groupId>
+                                       <artifactId>guava</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>com.google.protobuf</groupId>
+                                       <artifactId>protobuf-java</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.derby</groupId>
+                                       <artifactId>derby</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.hbase</groupId>
+                                       <artifactId>hbase-client</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>commons-lang</groupId>
+                                       <artifactId>commons-lang</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>com.zaxxer</groupId>
+                                       <artifactId>HikariCP</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>javax.jdo</groupId>
+                                       <artifactId>jdo-api</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>co.cask.tephra</groupId>
+                                       <artifactId>tephra-api</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>co.cask.tephra</groupId>
+                                       <artifactId>tephra-core</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>co.cask.tephra</groupId>
+                                       
<artifactId>tephra-hbase-compat-1.0</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>commons-cli</groupId>
+                                       <artifactId>commons-cli</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.thrift</groupId>
+                                       <artifactId>libfb303</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>javax.transaction</groupId>
+                                       <artifactId>transaction-api</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.orc</groupId>
+                                       <artifactId>orc-core</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>joda-time</groupId>
+                                       <artifactId>joda-time</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>org.apache.logging.log4j</groupId>
+                                       <artifactId>log4j-1.2-api</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>org.apache.logging.log4j</groupId>
+                                       
<artifactId>log4j-slf4j-impl</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.ant</groupId>
+                                       <artifactId>ant</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>com.tdunning</groupId>
+                                       <artifactId>json</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>jline</groupId>
+                                       <artifactId>jline</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>org.eclipse.jetty.aggregate</groupId>
+                                       <artifactId>jetty-all</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>org.eclipse.jetty.orbit</groupId>
+                                       <artifactId>javax.servlet</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>org.apache.logging.log4j</groupId>
+                                       <artifactId>log4j-web</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>io.dropwizard.metrics</groupId>
+                                       <artifactId>metrics-core</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>io.dropwizard.metrics</groupId>
+                                       <artifactId>metrics-jvm</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>io.dropwizard.metrics</groupId>
+                                       <artifactId>metrics-json</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>com.fasterxml.jackson.core</groupId>
+                                       
<artifactId>jackson-databind</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>com.github.joshelser</groupId>
+                                       
<artifactId>dropwizard-metrics-hadoop-metrics2-reporter</artifactId>
+                               </exclusion>
+
+                               <!-- org.apache.hive:hive-service-rpc -->
+                               <exclusion>
+                                       <groupId>tomcat</groupId>
+                                       <artifactId>jasper-compiler</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>tomcat</groupId>
+                                       <artifactId>jasper-runtime</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>org.apache.httpcomponents</groupId>
+                                       <artifactId>httpclient</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>org.apache.httpcomponents</groupId>
+                                       <artifactId>httpcore</artifactId>
+                               </exclusion>
+
+                               <!-- org.apache.hive:hive-serde -->
+                               <exclusion>
+                                       <groupId>commons-codec</groupId>
+                                       <artifactId>commons-codec</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.avro</groupId>
+                                       <artifactId>avro</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>net.sf.opencsv</groupId>
+                                       <artifactId>opencsv</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.parquet</groupId>
+                                       
<artifactId>parquet-hadoop-bundle</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.hive</groupId>
+                       <artifactId>hive-exec</artifactId>
+                       <version>${hive.version}</version>
+                       <exclusions>
+                               <exclusion>
+                                       <groupId>org.apache.hive</groupId>
+                                       
<artifactId>hive-vector-code-gen</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.hive</groupId>
+                                       <artifactId>hive-llap-tez</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.hive</groupId>
+                                       <artifactId>hive-shims</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>commons-codec</groupId>
+                                       <artifactId>commons-codec</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>commons-httpclient</groupId>
+                                       
<artifactId>commons-httpclient</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>org.apache.logging.log4j</groupId>
+                                       <artifactId>log4j-1.2-api</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>org.apache.logging.log4j</groupId>
+                                       
<artifactId>log4j-slf4j-impl</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.antlr</groupId>
+                                       <artifactId>antlr-runtime</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.antlr</groupId>
+                                       <artifactId>ST4</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.ant</groupId>
+                                       <artifactId>ant</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.commons</groupId>
+                                       
<artifactId>commons-compress</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.ivy</groupId>
+                                       <artifactId>ivy</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.zookeeper</groupId>
+                                       <artifactId>zookeeper</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.curator</groupId>
+                                       <artifactId>apache-curator</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.curator</groupId>
+                                       
<artifactId>curator-framework</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.codehaus.groovy</groupId>
+                                       <artifactId>groovy-all</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.calcite</groupId>
+                                       <artifactId>calcite-core</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.apache.calcite</groupId>
+                                       <artifactId>calcite-druid</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>org.apache.calcite.avatica</groupId>
+                                       <artifactId>avatica</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>com.google.code.gson</groupId>
+                                       <artifactId>gson</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>stax</groupId>
+                                       <artifactId>stax-api</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+
+               <!-- test dependencies -->
+
+               <dependency>
+                       <groupId>org.apache.derby</groupId>
+                       <artifactId>derby</artifactId>
+                       <version>10.10.2.0</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-table-common</artifactId>
+                       <version>${project.version}</version>
+                       <type>test-jar</type>
+                       <scope>test</scope>
+               </dependency>
+
+       </dependencies>
+
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-jar-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>test-jar</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-shade-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>shade-flink</id>
 
 Review comment:
   ok, exlcuded

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to