Skip to content
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-3806][VL] Add Arm64 libhdfs3 support for velox build #6190

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

guyuqi
Copy link
Member

@guyuqi guyuqi commented Jun 24, 2024

What changes were proposed in this pull request?

SSE4.2 is always enabled in Project oap-project/libhdfs3 Options.cmake.
When building Gluten-Velox with enabling HDFS(--enable_hdfs=ON) on Arm64 Ubuntu, build issues occurred:

c++: error: unrecognized command-line option ‘-msse4.2’
ninja: build stopped: subcommand failed.

How was this patch tested?

Build Gluten-Velox with --enable_hdfs=ON
./dev/builddeps-veloxbe.sh --build_tests=ON --build_benchmarks=ON --enable_hdfs=ON

libhdfs.so could be properly installed.

Change-Id: Ifd356fd6c60fecb4f928b6cd363b74e1e723f945
Copy link

#3806

@@ -137,7 +137,7 @@ function process_setup_centos8 {
sed -i '/^ run_and_time install_fbthrift/a \ run_and_time install_openssl' scripts/setup-centos8.sh

if [ $ENABLE_HDFS == "ON" ]; then
sed -i '/^function install_gflags.*/i function install_libhdfs3 {\n cd "\${DEPENDENCY_DIR}"\n github_checkout oap-project/libhdfs3 master\n cmake_install\n}\n' scripts/setup-centos8.sh
sed -i '/^function install_gflags.*/i function install_libhdfs3 {\n cd "\${DEPENDENCY_DIR}"\n github_checkout oap-project/libhdfs3 master\n git apply ../../../src/modify_libhdfs3.patch\n cd ..\n cmake_install\n}\n' scripts/setup-centos8.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use CURRENT_DIR ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it seems CURRENT_DIR is deprecated.
Removed it. Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The libhdfs codebase is maintained by oap self. I'm wondering if we can push to libhdfs repo directly.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ulysses-you Thanks for your comments.

It makes sense to push it to libhdfs repo directly.
I've submitted the related PR in oap-project/libhdfs3.
However, it appears that oap-project/libhdfs3 is an inactive project. I'm unsure about the time it will take for the PR process to conclude.
I've added my comments inline. I'll continue to track this issue and will remove this libhdfs patch as soon as oap-project/libhdfs3 accepts the related PR.

Would it be possible to accept this PR in the meantime?

Thank you. :-)

Change-Id: I069f7febe92a342a0bc2d843093d1ed7cd1e6226
Signed-off-by: Yuqi Gu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants