Closed mingmxu closed 1 month ago
@gortiz I remember you encountered similar issue?
Hi @mingmxu. You have to options:
mvn --version
, which prints the arch
it is using. It should say amd64
. When Rosetta is disabled, it prints arch: "aarch64"
. You may also need to install a amd64
JVM.mvn --version
, which also indicates the JVM.Thanks @gortiz for the suggestions. I don't find a amd64
JVM, would try the approach later.
Java17 helps to block the LArray JNI failure, there's another clp-ffi
in pinot-core
module, cc @kirkrodrigues who might have some context.
I usually use sdkman to install different JDKs. In case you are using it, you need to enable Rosetta in sdkman as well in order to install the amd64 JDK. This article explains how to do use sdkman to install JDKs in different architectures: https://itnext.io/how-to-install-x86-and-arm-jdks-on-the-mac-m1-apple-silicon-using-sdkman-872a5adc050d.
Hi @mingmxu, clp-ffi doesn't have aarch64 support yet. I will try and add it this weekend and submit a PR.
@kirkrodrigues : if it is not a lot of work for you folks, can you try to add this support?
mvn tests don't work on M1/M2 systems because of this.
Sorry, things keep getting reprioritized. We did create a build with the new binaries, just need to finish testing it on different platforms. Will release a new clp-ffi version in the next couple days and then PR to Pinot.
I don't find a amd64 JVM, would try the approach later.
You can try to use sdkman or download it from temurin web page.
Assuming you don't plan to use CLP (which is not supported in ARM), you can also run with Java 17/21 and just skip these tests.
We are just working on #13648 which adds profiles that skip these tests by default and #13639 which disables larray by default.
Anyway, as a developer that uses M1, I have to say you should get used to these issues and how to use Rosetta, because there are still some software that doesn't work with ARM processors.
We have now Maven profiles for aarch64 (see https://github.com/apache/pinot/pull/13648) which disabled the CLP tests. Once we have the CLP binaries for aarch64 we can enable these tests again.
Should we close this issue as resolved?
This worked for me finally! Thanks a lot folks!
Will close this. We can re-open if the issue still exists.
When running
mvn clean install
on latest code, some unit tests(from modulepinot-segment-spi
,pinot-segment-local
,pinot-core
, ...), fail with error message like below:I suspect it's related with xerial/larray which doesn't mention MacM1/2 support. Should create a
mac_m1_m2
profile to exclude these tests?cc @mayankshriv