[
https://issues.apache.org/jira/browse/BEAM-11863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17318211#comment-17318211
]
Daniel Kulp commented on BEAM-11863:
------------------------------------
This is already fixed/updated on master. If you update the generated pom to
change the beam.version to 2.30.0-SNAPSHOT, then it will pickup the newer
version of Snappy which supports the m1 Mac. The sample then runs.
> Java Quick Start is not working on MAC M1
> -----------------------------------------
>
> Key: BEAM-11863
> URL: https://issues.apache.org/jira/browse/BEAM-11863
> Project: Beam
> Issue Type: Bug
> Components: examples-java
> Environment: macOS Big Sur, version 11.2.1
> MacBook Pro (13-inch, M1, 2020)
> openjdk 15.0.2 2021-01-19
> OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.2+7)
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.2+7, mixed mode, sharing
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /opt/homebrew/Cellar/maven/3.6.3_1/libexec
> Java version: 16, vendor: N/A, runtime:
> /opt/homebrew/Cellar/openjdk/15.0.1/libexec/openjdk.jdk/Contents/Home
> Default locale: en_IT, platform encoding: UTF-8
> OS name: "mac os x", version: "11.2.1", arch: "aarch64", family: "mac"
> Reporter: Ivan
> Priority: P2
>
> I'm trying to replicate the word-count java quick start
> https://beam.apache.org/get-started/quickstart-java/ running with
> {{direct-runner Runner }}on my MAC M1 and I get this error along the build
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java
> (default-cli) on project word-count-beam: An exception occured while
> executing the Java class. [FAILED_TO_LOAD_NATIVE_LIBRARY] no native library
> is found for os.name=Mac and os.arch=aarch64 -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> [http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)