-
-
Notifications
You must be signed in to change notification settings - Fork 6
feat(spark-k8s): Add the Spark HBase connector #878
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 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8a6fc11
feat(spark-k8s): Add the Spark HBase connector
siegfriedweber 3822ecd
Copy modules from Hadoop and HBase builder images instead of Nexus
siegfriedweber e1c1145
Update changelog
siegfriedweber 3042121
Merge branch 'main' into feat/spark-hbase-connector
siegfriedweber 5d85e14
Fix linter warnings
siegfriedweber da5561b
Use AWS_JAVA_SDK_BUNDLE instead of a wildcard
siegfriedweber a3e6898
Add mvn parameters
siegfriedweber 6c23c4a
Merge branch 'main' into feat/spark-hbase-connector
siegfriedweber 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,51 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
VERSION=${1:?"Missing version number argument (arg 1)"} | ||
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"} | ||
|
||
read -r -s -p "Nexus Password: " NEXUS_PASSWORD | ||
echo "" | ||
|
||
# https://stackoverflow.com/questions/4632028/how-to-create-a-temporary-directory | ||
# Find the directory name of the script | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
# the temp directory used, within $DIR | ||
WORK_DIR=$(mktemp -d -p "$DIR") | ||
|
||
# check if tmp dir was created | ||
if [[ ! "$WORK_DIR" || ! -d "$WORK_DIR" ]]; then | ||
echo "Could not create temp dir" | ||
exit 1 | ||
fi | ||
|
||
# deletes the temp directory | ||
function cleanup { | ||
rm -rf "$WORK_DIR" | ||
} | ||
|
||
# register the cleanup function to be called on the EXIT signal | ||
trap cleanup EXIT | ||
|
||
cd "$WORK_DIR" || exit | ||
|
||
download_url="https://github.com/apache/hbase-connectors/archive/refs/tags/rel/${VERSION}.tar.gz" | ||
|
||
tar_gz_file="hbase-connectors_${VERSION}.tar.gz" | ||
|
||
echo "Downloading hbase-connectors source from ${download_url}" | ||
curl --fail -L -o "${tar_gz_file}" "${download_url}" | ||
|
||
echo "Uploading hbase-connectors source to Nexus" | ||
EXIT_STATUS=0 | ||
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${tar_gz_file}" 'https://repo.stackable.tech/repository/packages/hbase-connectors/' || EXIT_STATUS=$? | ||
|
||
if [ $EXIT_STATUS -ne 0 ]; then | ||
echo "ERROR: Upload failed" | ||
exit 1 | ||
fi | ||
|
||
echo "Successfully uploaded version $VERSION of hbase-connectors to Nexus" | ||
echo "https://repo.stackable.tech/service/rest/repository/browse/packages/hbase-connectors/" |
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
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.
Uh oh!
There was an error while loading. Please reload this page.