5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 06:09:47 +08:00

SQOOP-3360: Fix hive-exec dependency issues in Gradle

(Szabolcs Vasas via Boglarka Egyed)
This commit is contained in:
Boglarka Egyed 2018-08-10 10:23:48 +02:00
parent c3d916ab20
commit ec18e6f47e
4 changed files with 13 additions and 0 deletions

View File

@ -80,6 +80,7 @@ configurations.all {
resolutionStrategy { resolutionStrategy {
force group: 'org.apache.avro', name: 'avro', version: avroVersion force group: 'org.apache.avro', name: 'avro', version: avroVersion
force group: 'org.apache.avro', name: 'avro-mapred', version: avroVersion force group: 'org.apache.avro', name: 'avro-mapred', version: avroVersion
force group: 'com.google.guava', name: 'guava', version: guavaVersion
} }
exclude group: 'org.apache.hadoop', module: 'avro' exclude group: 'org.apache.hadoop', module: 'avro'
} }
@ -106,7 +107,11 @@ dependencies {
common group: 'org.apache.hbase', name: 'hbase-common', version: hbaseVersion common group: 'org.apache.hbase', name: 'hbase-common', version: hbaseVersion
common (group: 'org.apache.hive.hcatalog', name: 'hive-hcatalog-core', version: hcatalogVersion) { common (group: 'org.apache.hive.hcatalog', name: 'hive-hcatalog-core', version: hcatalogVersion) {
exclude group: 'org.apache.avro', module: 'avro' exclude group: 'org.apache.avro', module: 'avro'
exclude group: 'org.apache.hive', module: 'hive-exec'
} }
common group: 'org.apache.hive', name: 'hive-exec', version: hcatalogVersion, classifier: 'core'
// Kryo is a dependency of hive-exec:core
common group: 'com.esotericsoftware.kryo', name: 'kryo', version: kryoVersion
common (group: 'org.apache.hive', name: 'hive-jdbc', version: hcatalogVersion) { common (group: 'org.apache.hive', name: 'hive-jdbc', version: hcatalogVersion) {
exclude group: 'org.apache.avro', module: 'avro' exclude group: 'org.apache.avro', module: 'avro'
} }

View File

@ -26,6 +26,8 @@ aspectjVersion=1.7.4
zookeeperVersion=3.4.6 zookeeperVersion=3.4.6
hbaseVersion=1.2.4 hbaseVersion=1.2.4
hcatalogVersion=1.2.1 hcatalogVersion=1.2.1
kryoVersion=2.22
guavaVersion=14.0.1
accumuloVersion=1.6.2 accumuloVersion=1.6.2

View File

@ -204,8 +204,13 @@ under the License.
rev="${hcatalog.version}" conf="common->default"> rev="${hcatalog.version}" conf="common->default">
<artifact name="hive-hcatalog-core" type="jar"/> <artifact name="hive-hcatalog-core" type="jar"/>
<exclude org="org.apache.avro" module="avro" /> <exclude org="org.apache.avro" module="avro" />
<exclude org="org.apache.hive" module="hive-exec" />
</dependency> </dependency>
<dependency org="org.apache.hive" name="hive-exec" rev="${hcatalog.version}" conf="common->default" m:classifier="core" />
<!-- Kryo is a dependency of hive-exec:core -->
<dependency org="com.esotericsoftware.kryo" name="kryo" rev="${kryo.version}" conf="common->default" />
<dependency org="org.postgresql" name="postgresql" <dependency org="org.postgresql" name="postgresql"
rev="${postgresql.version}" conf="common->default" /> rev="${postgresql.version}" conf="common->default" />

View File

@ -58,6 +58,7 @@ slf4j.version=1.7.7
hadoop.version=2.8.0 hadoop.version=2.8.0
hbase.version=1.2.4 hbase.version=1.2.4
hcatalog.version=1.2.1 hcatalog.version=1.2.1
kryo.version=2.22
jackson-databind.version=2.9.5 jackson-databind.version=2.9.5
parquet.version=1.6.0 parquet.version=1.6.0