-
Notifications
You must be signed in to change notification settings - Fork 475
Add Hive integration tests #207
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1852188
Add Hive for CI
Fokko 5e77a9f
Merge branch 'main' of github.com:apache/iceberg-python into fd-hive
Fokko 6d3ba16
Add Hive integration tests
Fokko 906323b
Add missing licenses
Fokko 9ba99b1
Fix
Fokko 2e77cb7
Remove Arrow
Fokko a25c1b7
Merge branch 'main' of github.com:apache/iceberg-python into fd-hive
Fokko 6a27220
Merge branch 'main' of github.com:apache/iceberg-python into fd-hive
Fokko 5ce1c8a
Add catalog
Fokko fc25fff
Update test suite
Fokko 64f4732
Whitespace
Fokko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| FROM openjdk:8-jre-slim AS build | ||
|
|
||
| RUN apt-get update -qq && apt-get -qq -y install curl | ||
|
|
||
| ENV AWSSDK_VERSION=2.20.18 | ||
| ENV HADOOP_VERSION=3.1.0 | ||
|
|
||
| RUN curl https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/1.11.271/aws-java-sdk-bundle-1.11.271.jar -Lo /tmp/aws-java-sdk-bundle-1.11.271.jar | ||
| RUN curl https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/${HADOOP_VERSION}/hadoop-aws-${HADOOP_VERSION}.jar -Lo /tmp/hadoop-aws-${HADOOP_VERSION}.jar | ||
|
|
||
|
|
||
| FROM apache/hive:3.1.3 | ||
|
|
||
| ENV AWSSDK_VERSION=2.20.18 | ||
| ENV HADOOP_VERSION=3.1.0 | ||
|
|
||
| COPY --from=build /tmp/hadoop-aws-${HADOOP_VERSION}.jar /opt/hive/lib/hadoop-aws-${HADOOP_VERSION}.jar | ||
| COPY --from=build /tmp/aws-java-sdk-bundle-1.11.271.jar /opt/hive/lib/aws-java-sdk-bundle-1.11.271.jar | ||
| COPY core-site.xml /opt/hadoop/etc/hadoop/core-site.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| <?xml version="1.0"?> | ||
| <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <configuration> | ||
| <property> | ||
| <name>fs.defaultFS</name> | ||
| <value>s3a://warehouse/hive</value> | ||
| </property> | ||
| <property> | ||
| <name>fs.s3a.impl</name> | ||
| <value>org.apache.hadoop.fs.s3a.S3AFileSystem</value> | ||
| </property> | ||
| <property> | ||
| <name>fs.s3a.fast.upload</name> | ||
| <value>true</value> | ||
| </property> | ||
| <property> | ||
| <name>fs.s3a.endpoint</name> | ||
| <value>http://minio:9000</value> | ||
| </property> | ||
| <property> | ||
| <name>fs.s3a.access.key</name> | ||
| <value>admin</value> | ||
| </property> | ||
| <property> | ||
| <name>fs.s3a.secret.key</name> | ||
| <value>password</value> | ||
| </property> | ||
| <property> | ||
| <name>fs.s3a.connection.ssl.enabled</name> | ||
| <value>false</value> | ||
| </property> | ||
| <property> | ||
| <name>fs.s3a.path.style.access</name> | ||
| <value>true</value> | ||
| </property> | ||
| </configuration> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need
pyarrowin the docker image? I think inprovision.pywe only need pyiceberg to create some empty table with UUID column. Since we use minio for storage,s3fscan help us write the metadataThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I got an error before, and therefore I added it, but I've removed it again and it seems to work fine 👍