Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed made to successfully build the clients #16

Open
wants to merge 1 commit into
base: branch-1.10.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ To build the Hive client, you need to first apply this [patch](https://issues.ap
patch -p0 <HIVE-12679.branch-2.3.patch
mvn clean install -DskipTests

If you are using the default Maven settings, this will install a new version of patched Hive in ~/.m2/repositories/, i.e. ~/.m2/repository/org/apache/hive/hive/2.3.4-SNAPSHOT/. The specific version of Hive will depend on the current version in pom.xml. Presently, the latest version in the 2.3 branch (branch-2.3) is "2.3.4-SNAPSHOT". You will need this version to build the client.
If you are using the default Maven settings, this will install a new version of patched Hive in ~/.m2/repositories/, i.e. ~/.m2/repository/org/apache/hive/hive/2.3.7-SNAPSHOT/. The specific version of Hive will depend on the current version in pom.xml. Presently, the latest version in the 2.3 branch (branch-2.3) is "2.3.7-SNAPSHOT". You will need this version to build the client.

## Building the Hive Client

Once you have successfully patched and installed Hive locally, move into the AWS Glue Data Catalog Client repository and update the following property in pom.xml.

<hive2.version>2.3.4-SNAPSHOT</hive2.version>
<hive2.version>2.3.7-SNAPSHOT</hive2.version>

You are now ready to build the Hive client.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy;
import org.apache.log4j.Logger;
import org.apache.thrift.TException;
import org.apache.hadoop.hive.metastore.api.PartitionValuesRequest;
import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse;

import java.io.IOException;
import java.net.URI;
Expand Down Expand Up @@ -1783,4 +1785,10 @@ private Path constructRenamedPath(Path defaultNewPath, Path currentPath) {
defaultNewPath.toUri().getPath());
}

@Override
public PartitionValuesResponse listPartitionValues(PartitionValuesRequest arg0)
throws MetaException, TException, NoSuchObjectException {
return null;
}

}
4 changes: 2 additions & 2 deletions aws-glue-datacatalog-spark-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<artifactId>aws-glue-datacatalog-spark-client</artifactId>
<dependencies>
<dependency>
<groupId>org.spark-project.hive</groupId>
<groupId>org.apache.hive</groupId>
<artifactId>hive-metastore</artifactId>
<version>${spark-hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spark-project.hive</groupId>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
<version>${spark-hive.version}</version>
<scope>provided</scope>
Expand Down
16 changes: 10 additions & 6 deletions shims/spark-hive-shims/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<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
<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">
<parent>
<groupId>com.amazonaws.glue</groupId>
Expand All @@ -16,13 +14,13 @@

<dependencies>
<dependency>
<groupId>org.spark-project.hive</groupId>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
<version>${spark-hive.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spark-project.hive</groupId>
<groupId>org.apache.hive</groupId>
<artifactId>hive-metastore</artifactId>
<version>${spark-hive.version}</version>
<scope>provided</scope>
Expand All @@ -32,5 +30,11 @@
<artifactId>shims-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>${hadoop.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
</project>