-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
[SPARK-3826][SQL]enable hive-thriftserver to support hive-0.13.1 #2685
Changes from 21 commits
ae47489
7c66b8e
c6da3ce
dfd1c63
0bc53aa
4b681f4
13afde0
41f727b
f48d3a5
f51ff4e
3529e98
52674a4
c359822
bcf943f
f7c93ae
0d7f6cf
8a4daf2
fa21d09
18fb1ff
578234d
f5cac74
f26f3be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,17 +142,24 @@ CURRENT_BLOCK=$BLOCK_BUILD | |
# We always build with Hive because the PySpark Spark SQL tests need it. | ||
BUILD_MVN_PROFILE_ARGS="$SBT_MAVEN_PROFILES_ARGS -Phive -Phive-0.12.0" | ||
|
||
echo "[info] Building Spark with these arguments: $BUILD_MVN_PROFILE_ARGS" | ||
|
||
# NOTE: echo "q" is needed because sbt on encountering a build file with failure | ||
#+ (either resolution or compilation) prompts the user for input either q, r, etc | ||
#+ to quit or retry. This echo is there to make it not block. | ||
# NOTE: Do not quote $BUILD_MVN_PROFILE_ARGS or else it will be interpreted as a | ||
# NOTE: Do not quote $BUILD_MVN_PROFILE_ARGS or else it will be interpreted as a | ||
#+ single argument! | ||
# QUESTION: Why doesn't 'yes "q"' work? | ||
# QUESTION: Why doesn't 'grep -v -e "^\[info\] Resolving"' work? | ||
# First build with 0.12 to ensure patches do not break the hive 12 build | ||
echo "[info] Compile with hive 0.12" | ||
echo -e "q\n" \ | ||
| sbt/sbt $BUILD_MVN_PROFILE_ARGS clean package assembly/assembly \ | ||
| sbt/sbt $BUILD_MVN_PROFILE_ARGS clean hive/compile hive-thriftserver/compile \ | ||
| grep -v -e "info.*Resolving" -e "warn.*Merging" -e "info.*Including" | ||
|
||
# Then build with default version(0.13.1) because tests are based on this version | ||
echo "[info] Building Spark with these arguments: $SBT_MAVEN_PROFILES_ARGS -Phive" | ||
echo -e "q\n" \ | ||
| sbt/sbt $SBT_MAVEN_PROFILES_ARGS -Phive clean package assembly/assembly \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we try removing the "clean" here and see if things work? It will take a lot more time to double compile everything which is likely contributing to timeouts. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure |
||
| grep -v -e "info.*Resolving" -e "warn.*Merging" -e "info.*Including" | ||
} | ||
|
||
|
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.
I actually don't think this is compiling against Hive 0.12 right now... is it?
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.
i think it's against 0.12 because
BUILD_MVN_PROFILE_ARGS="$SBT_MAVEN_PROFILES_ARGS -Phive -Phive-0.12.0"
, right?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.
It should be,
BUILD_MVN_PROFILE_ARGS
is defined above with-Phive-0.12.0
: