Skip to content
Open
Changes from 1 commit
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
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ Obtain a copy of Hive from GitHub at https://github.com/apache/hive.

To build the Hive client, you need to first apply this [patch](https://issues.apache.org/jira/secure/attachment/12958418/HIVE-12679.branch-2.3.patch). Download this patch and move it to your local Hive git repository you created above. Apply the patch and build Hive.

git checkout branch-2.3
git checkout tags/rel/release-2.3.4 -branch rel-2.3.4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be "-b"?
git checkout tags/rel/release-2.3.4 -b rel-2.3.4

Note: I am running git version 2.17.2 (Apple Git-113)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, typo on my part. Thanks for the correction.

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.
Note that the `IMetaStore` API changed in version 2.3.6-SNAPSHOT that is not compatible with the client.

## Building the Hive Client

Expand All @@ -45,6 +45,15 @@ Go back to the AWS Glue Data Catalog Client repository and update the following

<spark-hive.version>1.2.3-SNAPSHOT</spark-hive.version>

You've built the Hive 1.2.x branch under the `org.apache.hive` folder of your local maven repository. Next create a copy of these jars to the directory where maven expects to find the files.

mkdir -p ~/.m2/repository/org/spark-project/hive/hive-metastore
mkdir -p ~/.m2/repository/org/spark-project/hive/hive-exec


cp -R ~/.m2/repository/org/apache/hive/hive-metastore/1.2.3-SNAPSHOT ~/.m2/repository/org/spark-project/hive/hive-metastore/
cp -R ~/.m2/repository/org/apache/hive/hive-exec/1.2.3-SNAPSHOT ~/.m2/repository/org/spark-project/hive/hive-exec/

You are now ready to build the Spark client.

cd aws-glue-datacatalog-spark-client
Expand Down