jlalwani-amazon commented on code in PR #37:
URL:
https://github.com/apache/flink-connector-hive/pull/37#discussion_r3312928283
##########
flink-connector-hive/pom.xml:
##########
@@ -1425,5 +1427,78 @@ under the License.
<jdk>[11,)</jdk>
</activation>
</profile>
+ <profile>
+ <id>hive4</id>
+ <properties>
+ <hive.version>4.0.0</hive.version>
+ <hive.hadoop.version>3.3.6</hive.hadoop.version>
+
<hive4.datanucleus-api-jdo.version>5.2.8</hive4.datanucleus-api-jdo.version>
+
<hive4.datanucleus-rdbms.version>5.2.10</hive4.datanucleus-rdbms.version>
+ </properties>
+ <dependencies>
+ <!--
+ hive-exec 4.x bundles protobuf 3.x
(unshaded). Override the transitive
+ protobuf 2.5.0 from Hadoop so the
bundled ORC/protobuf code works on
+ the flat test classpath. The production
fat jar handles this via shading.
+ -->
+ <dependency>
+ <groupId>com.google.protobuf</groupId>
+ <artifactId>protobuf-java</artifactId>
+ <version>3.3.0</version>
+ <scope>test</scope>
+ </dependency>
+ <!-- Hive 4 requires compatible DataNucleus for
the embedded metastore.
+ 4.0.x uses 5.x, 4.1+ uses 6.x.
Override via -Dhive4.datanucleus-api-jdo.version=6.0.3 etc. -->
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+
<artifactId>datanucleus-api-jdo</artifactId>
+
<version>${hive4.datanucleus-api-jdo.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+
<artifactId>datanucleus-rdbms</artifactId>
+
<version>${hive4.datanucleus-rdbms.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <!-- Hive 4 needs Hadoop 3.x; promote
hdfs-client from provided to test -->
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+
<artifactId>hadoop-hdfs-client</artifactId>
+ <version>3.3.6</version>
Review Comment:
Hive 4.0.0 uses 3.3.6. I didn't want to introduce incompatibility. I'll
extract it to property
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]