-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(datahub-ingestion): remove old jars, sync pyspark version (#9217)
- Loading branch information
1 parent
0e3efab
commit ebd2e23
Showing
4 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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 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,22 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
HADOOP_CLIENT_DEPENDENCY="${HADOOP_CLIENT_DEPENDENCY:-org.apache.hadoop:hadoop-client:3.3.6}" | ||
ZOOKEEPER_DEPENDENCY="${ZOOKEEPER_DEPENDENCY:-org.apache.zookeeper:zookeeper:3.7.2}" | ||
PYSPARK_JARS="$(python -m site --user-site)/pyspark/jars" | ||
|
||
# Remove conflicting versions | ||
echo "Removing version conflicts from $PYSPARK_JARS" | ||
CONFLICTS="zookeeper hadoop- slf4j-" | ||
for jar in $CONFLICTS; do | ||
rm "$PYSPARK_JARS/$jar"*.jar | ||
done | ||
|
||
# Fetch dependencies | ||
mvn dependency:get -Dtransitive=true -Dartifact="$HADOOP_CLIENT_DEPENDENCY" | ||
mvn dependency:get -Dtransitive=true -Dartifact="$ZOOKEEPER_DEPENDENCY" | ||
|
||
# Move to pyspark location | ||
echo "Moving jars to $PYSPARK_JARS" | ||
find "$HOME/.m2" -type f -name "*.jar" -exec mv {} "$PYSPARK_JARS/" \; |
This file contains 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