shbhmrzd
11/10/2023, 5:44 AM"/Users/<username>/.rustup/toolchains/1.71.0-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-6840aac782a5387e.rlib" "-ljvm" "-lhdfs" "-framework" "Security" "-framework" "Security" "-framework" "SystemConfiguration" "-lz" "-framework" "CoreFoundation" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/<username>/.rustup/toolchains/1.71.0-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/<username>/Projects/shbhm-forks/timeline-rust/target/debug/deps/tlb2-38efc16b827f3c33" "-Wl,-dead_strip" "-nodefaultlibs"
= note: ld: unknown file type in '/opt/homebrew/Cellar/hadoop-3.2.4/lib/native/libhdfs.so.0.0.0'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It seems the libhdfs.so library is built for x86-64 architecture (ELF 64-bit LSB shared object, x86-64) and is not supported for mac aarch64.
Please help me with the following queries
1. How is OpenDAL connecting to hdfs ? I read it uses hdrs internally which relies on hdfs-sys. hdfs-sys uses JNI to call functions provided by jars that provided by hadoop releases. - https://github.com/Xuanwo/hdfs-sys#runtime
But why does the error rely on a native library libhdfs.so
2. If the native library is a hard dependency how do I work around the libhdfs.so (x86) file type. Do I need to build these libs for aarch64 ? How to go about it ?
Thank you!Xuanwo
11/10/2023, 5:56 AMXuanwo
11/10/2023, 5:57 AMXuanwo
11/10/2023, 5:57 AMXuanwo
11/10/2023, 5:59 AMhdrs into deps and enable the vendored feature.Xuanwo
11/10/2023, 5:59 AMshbhmrzd
11/10/2023, 6:25 AMXuanwo
11/10/2023, 6:26 AMXuanwo
11/10/2023, 6:47 AMshbhmrzd
11/10/2023, 7:58 AMshbhmrzd
11/10/2023, 7:59 AMXuanwo
11/10/2023, 8:04 AMshbhmrzd
11/10/2023, 10:22 AMXuanwo
11/10/2023, 10:23 AM