Skip to content

Commit ea27ed7

Browse files
authored
HIVE-20189: Separate metastore client code into its own module (#5924)
1 parent a77ada1 commit ea27ed7

File tree

41 files changed

+463
-1031
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+463
-1031
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>

hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HCatUtil.java

Lines changed: 79 additions & 109 deletions
Large diffs are not rendered by default.

hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HiveClientCache.java

Lines changed: 0 additions & 541 deletions
This file was deleted.

hcatalog/core/src/test/java/org/apache/hive/hcatalog/common/TestHiveClientCache.java

Lines changed: 0 additions & 269 deletions
This file was deleted.

hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestPassProperties.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void testSequenceTableWriteReadMR() throws Exception {
114114
assertTrue(((InvocationTargetException)e.getCause().getCause().getCause()).getTargetException().getMessage().contains(
115115
"Could not connect to meta store using any of the URIs provided"));
116116
assertTrue(e.getCause().getMessage().contains(
117-
"Unable to instantiate org.apache.hive.hcatalog.common.HiveClientCache$CacheableHiveMetaStoreClient"));
117+
"Unable to instantiate org.apache.hadoop.hive.metastore.HiveClientCache$CacheableHiveMetaStoreClient"));
118118
}
119119
assertTrue(caughtException);
120120
}
@@ -132,7 +132,7 @@ public void map(LongWritable key, Text value, Context context) throws IOExceptio
132132
}
133133

134134
private HCatSchema getSchema() throws HCatException {
135-
HCatSchema schema = new HCatSchema(new ArrayList<HCatFieldSchema>());
135+
HCatSchema schema = new HCatSchema(new ArrayList<>());
136136
schema.append(new HCatFieldSchema("a0", HCatFieldSchema.Type.INT,
137137
""));
138138
schema.append(new HCatFieldSchema("a1",
@@ -142,5 +142,4 @@ private HCatSchema getSchema() throws HCatException {
142142
return schema;
143143
}
144144

145-
146145
}

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>

itests/qtest-druid/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@
9898
<artifactId>druid-hdfs-storage</artifactId>
9999
<version>${druid.version}</version>
100100
<exclusions>
101+
<exclusion>
102+
<groupId>org.apache.hadoop</groupId>
103+
<artifactId>hadoop-hdfs-client</artifactId>
104+
</exclusion>
101105
<exclusion>
102106
<groupId>com.sun.jersey</groupId>
103107
<artifactId>jersey-servlet</artifactId>

metastore/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</dependency>
4747
<dependency>
4848
<groupId>org.apache.hive</groupId>
49-
<artifactId>hive-standalone-metastore-common</artifactId>
49+
<artifactId>hive-standalone-metastore-client</artifactId>
5050
<version>${standalone-metastore.version}</version>
5151
</dependency>
5252
<dependency>
@@ -183,6 +183,12 @@
183183
<classifier>tests</classifier>
184184
<scope>test</scope>
185185
</dependency>
186+
<dependency>
187+
<groupId>org.apache.hive</groupId>
188+
<artifactId>hive-standalone-metastore-server</artifactId>
189+
<version>${standalone-metastore.version}</version>
190+
<scope>test</scope>
191+
</dependency>
186192
<!-- test inter-project -->
187193
<dependency>
188194
<groupId>junit</groupId>

0 commit comments

Comments
 (0)