You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2022/06/08 21:59:59 UTC

[pulsar] branch master updated: Added Java M1 installation instruction to Next version as well (#15982)

This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 8bc7ca1cb3a Added Java M1 installation instruction to Next version as well (#15982)
8bc7ca1cb3a is described below

commit 8bc7ca1cb3a0926bb91a752161df92308f3b4d4b
Author: Asaf Mesika <as...@gmail.com>
AuthorDate: Thu Jun 9 00:59:52 2022 +0300

    Added Java M1 installation instruction to Next version as well (#15982)
---
 site2/docs/getting-started-standalone.md | 58 ++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

diff --git a/site2/docs/getting-started-standalone.md b/site2/docs/getting-started-standalone.md
index 93bba009322..7b48e39283f 100644
--- a/site2/docs/getting-started-standalone.md
+++ b/site2/docs/getting-started-standalone.md
@@ -30,6 +30,64 @@ Broker is only supported on 64-bit JVM.
 
 :::
 
+#### Install JDK on M1
+In the current version, Pulsar uses a BookKeeper version which in turn uses RocksDB. RocksDB is compiled to work on x86 architecture and not ARM. Therefore, Pulsar can only work with x86 JDK. This is planned to be fixed in future versions of Pulsar.
+
+One of the ways to easily install an x86 JDK is to use [SDKMan](http://sdkman.io) as outlined in the following steps:
+
+1. Install [SDKMan](http://sdkman.io).
+
+* Method 1: follow instructions on the SDKMan website.
+
+* Method 2: if you have [Homebrew](https://brew.sh) installed, enter the following command.
+
+```shell
+
+brew install sdkman
+
+```
+
+2. Turn on Rosetta2 compatibility for SDKMan by editing `~/.sdkman/etc/config` and changing the following property from `false` to `true`.
+
+```properties
+
+sdkman_rosetta2_compatible=true
+
+```
+
+3. Close the current shell / terminal window and open a new one.
+4. Make sure you don't have any previously installed JVM of the same version by listing existing installed versions.
+
+```shell
+
+sdk list java|grep installed
+
+```
+
+Example output:
+
+```text
+
+               | >>> | 17.0.3.6.1   | amzn    | installed  | 17.0.3.6.1-amzn
+
+```
+
+If you have any Java 17 version installed, uninstall it.
+
+```shell
+
+sdk uinstall java 17.0.3.6.1
+
+```
+
+5. Install any Java versions greater than Java 8.
+
+```shell
+
+ sdk install java 17.0.3.6.1-amzn
+
+```
+
 ### Install Pulsar using binary release
 
 To get started with Pulsar, download a binary tarball release in one of the following ways: