You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/06/09 00:16:01 UTC

[pulsar-site] branch main updated: Docs sync done from apache/pulsar(#0052003)

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

urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 06d8593beaf Docs sync done from apache/pulsar(#0052003)
06d8593beaf is described below

commit 06d8593beaf758eae2099fe0dac65e49beb0f09e
Author: Pulsar Site Updater <de...@pulsar.apache.org>
AuthorDate: Thu Jun 9 00:15:56 2022 +0000

    Docs sync done from apache/pulsar(#0052003)
---
 .../docs/getting-started-standalone.md             | 58 ++++++++++++++++++++++
 site2/website-next/docs/security-encryption.md     |  4 +-
 2 files changed, 60 insertions(+), 2 deletions(-)

diff --git a/site2/website-next/docs/getting-started-standalone.md b/site2/website-next/docs/getting-started-standalone.md
index 93bba009322..7b48e39283f 100644
--- a/site2/website-next/docs/getting-started-standalone.md
+++ b/site2/website-next/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:
diff --git a/site2/website-next/docs/security-encryption.md b/site2/website-next/docs/security-encryption.md
index 0a5547758b3..d827b334587 100644
--- a/site2/website-next/docs/security-encryption.md
+++ b/site2/website-next/docs/security-encryption.md
@@ -100,7 +100,7 @@ Reader<byte[]> reader = pulsarClient.newReader()
 Client client("pulsar://localhost:6650");
 std::string topic = "persistent://my-tenant/my-ns/my-topic";
 // DefaultCryptoKeyReader is a built-in implementation that reads public key and private key from files
-auto keyReader = std::make_shared<DefaultCryptoKeyReader>("test_ecdsa_pubkey.pem", "test_ecdsa_privkey.pem");
+auto keyReader = std::make_shared<DefaultCryptoKeyReader>("test_rsa_pubkey.pem", "test_rsa_privkey.pem");
 
 Producer producer;
 ProducerConfiguration producerConf;
@@ -130,7 +130,7 @@ from pulsar import Client, CryptoKeyReader
 client = Client('pulsar://localhost:6650')
 topic = 'persistent://my-tenant/my-ns/my-topic'
 # CryptoKeyReader is a built-in implementation that reads public key and private key from files
-key_reader = CryptoKeyReader('test_ecdsa_pubkey.pem', 'test_ecdsa_privkey.pem')
+key_reader = CryptoKeyReader('test_rsa_pubkey.pem', 'test_rsa_privkey.pem')
 
 producer = client.create_producer(
     topic=topic,