-
Notifications
You must be signed in to change notification settings - Fork 429
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
[GLUTEN-7307][VL] Update openssl version in velox setup for centos9 #7308
Conversation
ep/build-velox/src/get_velox.sh
Outdated
@@ -107,7 +107,7 @@ function process_setup_centos9 { | |||
sed -i '/^.*dnf_install autoconf/a\ dnf_install libxml2-devel libgsasl-devel libuuid-devel' scripts/setup-centos9.sh | |||
|
|||
ensure_pattern_matched 'install_gflags' scripts/setup-centos9.sh | |||
sed -i '/^function install_gflags.*/i function install_openssl {\n wget_and_untar https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1s.tar.gz openssl \n cd openssl \n ./config no-shared && make depend && make && sudo make install \n cd ..\n}\n' scripts/setup-centos9.sh | |||
sed -i '/^function install_gflags.*/i function install_openssl {\n wget_and_untar https://github.com/openssl/openssl/releases/download/openssl-3.2.2/openssl-3.2.2.tar.gz openssl \n cd openssl \n ./config no-shared && make depend && make && sudo make install \n cd ..\n}\n' scripts/setup-centos9.sh |
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.
should use cd ${DEPENDENCY_DIR}/openssl
as recent Velox have this change?
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.
Velox doesn't seem to be bringing openssl 3.x as a part of centOS9 setup. It is gluten which is bringing openssl for build process.
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.
@pratham76 scripts/setup-centos9.sh
is coming from Velox.
In Velox, there was a recent change facebookincubator/velox#10920 to use ${DEPENDENCY_DIR}
for dependencies. As @zhouyuan suggested, we need to use cd ${DEPENDENCY_DIR}/openssl
when wget_and_untar
is used.
Can you validate your change on the latest gluten main branch?
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.
got it. will update and validate.
This change does not seem to be added to gluten main branch yet - there are other dependencies being installed in current directory instead of ${DEPENDENCY_DIR}
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.
Interesting! Velox is updated daily and I do see this PR here https://github.com/oap-project/velox
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.
yes but gluten overrides those and adds new installs in this script which also has to be updated. As these does not use ${DEPENDENCY_DIR}
currently
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.
Then why is ${DEPENDENCY_DIR} not being used?
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.
Have updated the changes as requested and validated the build with manual tests. Kindly review the changes. In the above comment i was noting that as gluten overrides the velox setup scripts using sed
, changes wrt install directories have to be added here too.
ep/build-velox/src/get_velox.sh
Outdated
@@ -107,7 +107,7 @@ function process_setup_centos9 { | |||
sed -i '/^.*dnf_install autoconf/a\ dnf_install libxml2-devel libgsasl-devel libuuid-devel' scripts/setup-centos9.sh | |||
|
|||
ensure_pattern_matched 'install_gflags' scripts/setup-centos9.sh | |||
sed -i '/^function install_gflags.*/i function install_openssl {\n wget_and_untar https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1s.tar.gz openssl \n cd openssl \n ./config no-shared && make depend && make && sudo make install \n cd ..\n}\n' scripts/setup-centos9.sh | |||
sed -i '/^function install_gflags.*/i function install_openssl {\n wget_and_untar https://github.com/openssl/openssl/releases/download/openssl-3.2.2/openssl-3.2.2.tar.gz openssl \n cd ${DEPENDENCY_DIR}/openssl \n ./config no-shared && make depend && make && sudo make install \n}\n' scripts/setup-centos9.sh |
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.
You have to use curly braces if you want to cd in a subshell and avoid cd ../..
( cd ${DEPENDENCY_DIR}/openssl \n ./config no-shared && make depend && make && sudo make install )
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.
updated. Will keep this in mind
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.
@majetideepak please review and lmk if any more changes are required. Thanks.
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.
Thanks, @pratham76
@zhouyuan Kindly review/approve the changes and inform if any more changes are required according to you. Thanks |
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.
👍
===== Performance report for TPCDS SF2000 with Velox backend, for reference only ====
|
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
What changes were proposed in this pull request?
The current velox setup script for centOS9 brings
opnssl-1.1.1s
which seems to be outdated all the currentspark-3.x
runtimes on centOS9 useopenssl-3.x
versions which causes the spark applications to fail due to this version mismatch.To handle the above issue - upgraded the openssl version is the current setup.
Fixes: #7307
How was this patch tested?
manual tests