Skip to content

Commit bc40344

Browse files
committed
HIVE-20189: Separate metastore client code into its own module
1 parent e008e40 commit bc40344

File tree

15 files changed

+64
-35
lines changed

15 files changed

+64
-35
lines changed

hbase-handler/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,6 @@
292292
<groupId>org.apache.avro</groupId>
293293
<artifactId>avro</artifactId>
294294
</dependency>
295-
<dependency>
296-
<groupId>org.apache.hive</groupId>
297-
<artifactId>hive-standalone-metastore-server</artifactId>
298-
<version>${project.version}</version>
299-
</dependency>
300295
<dependency>
301296
<groupId>org.apache.hive</groupId>
302297
<artifactId>hive-standalone-metastore-server</artifactId>

iceberg/iceberg-catalog/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</dependency>
4040
<dependency>
4141
<groupId>org.apache.hive</groupId>
42-
<artifactId>hive-standalone-metastore-common</artifactId>
42+
<artifactId>hive-standalone-metastore-client</artifactId>
4343
</dependency>
4444
<dependency>
4545
<groupId>org.apache.hive</groupId>

iceberg/iceberg-handler/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</dependency>
4949
<dependency>
5050
<groupId>org.apache.hive</groupId>
51-
<artifactId>hive-standalone-metastore-common</artifactId>
51+
<artifactId>hive-standalone-metastore-client</artifactId>
5252
</dependency>
5353
<dependency>
5454
<groupId>org.apache.avro</groupId>

iceberg/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
</dependency>
148148
<dependency>
149149
<groupId>org.apache.hive</groupId>
150-
<artifactId>hive-standalone-metastore-common</artifactId>
150+
<artifactId>hive-standalone-metastore-client</artifactId>
151151
<version>${standalone-metastore.version}</version>
152152
</dependency>
153153
<dependency>

metastore/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
<artifactId>hive-standalone-metastore-common</artifactId>
5050
<version>${standalone-metastore.version}</version>
5151
</dependency>
52+
<dependency>
53+
<groupId>org.apache.hive</groupId>
54+
<artifactId>hive-standalone-metastore-client</artifactId>
55+
<version>${standalone-metastore.version}</version>
56+
</dependency>
5257
<dependency>
5358
<groupId>javolution</groupId>
5459
<artifactId>javolution</artifactId>

ql/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,7 @@
10601060
<include>org.apache.hive:hive-llap-client</include>
10611061
<include>org.apache.hive:hive-metastore</include>
10621062
<include>org.apache.hive:hive-standalone-metastore-common</include>
1063+
<include>org.apache.hive:hive-standalone-metastore-client</include>
10631064
<include>org.apache.hive:hive-standalone-metastore-server</include>
10641065
<include>org.apache.hive:hive-service-rpc</include>
10651066
<include>com.esotericsoftware.kryo:kryo5</include>
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
-->
13+
<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">
14+
<parent>
15+
<artifactId>hive-standalone-metastore</artifactId>
16+
<groupId>org.apache.hive</groupId>
17+
<version>4.2.0-SNAPSHOT</version>
18+
</parent>
19+
<modelVersion>4.0.0</modelVersion>
20+
<artifactId>hive-standalone-metastore-client</artifactId>
21+
<name>Hive Metastore Client</name>
22+
<dependencies>
23+
<dependency>
24+
<groupId>org.apache.hive</groupId>
25+
<artifactId>hive-standalone-metastore-common</artifactId>
26+
<version>${hive.version}</version>
27+
</dependency>
28+
</dependencies>
29+
<build>
30+
<plugins>
31+
<plugin>
32+
<!-- Suppress source assembly -->
33+
<groupId>org.apache.maven.plugins</groupId>
34+
<artifactId>maven-assembly-plugin</artifactId>
35+
<executions>
36+
<execution>
37+
<id>assemble</id>
38+
<phase>none</phase>
39+
<goals>
40+
<goal>single</goal>
41+
</goals>
42+
</execution>
43+
</executions>
44+
</plugin>
45+
</plugins>
46+
</build>
47+
</project>

standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java renamed to standalone-metastore/metastore-client/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java

File renamed without changes.

standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java renamed to standalone-metastore/metastore-client/src/main/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java

File renamed without changes.

standalone-metastore/metastore-rest-catalog/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<standalone.metastore.path.to.root>..</standalone.metastore.path.to.root>
2424
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2525
<log4j2.debug>false</log4j2.debug>
26-
<hive.version>${project.parent.version}</hive.version>
2726
<iceberg.version>1.9.1</iceberg.version>
2827
</properties>
2928
<dependencies>

0 commit comments

Comments
 (0)