### Motivation

Command `./bin/pulsar-admin clusters list` failed with `Error: Could not find 
or load main class "` in my k8s deployment by using helm charts.

### Modifications

With helm deployment the env var PULSAR_MEM is quoted with `"`, taking it for 
`pulsar-admin` will make the exec command to be:

```exec /docker-java-home/bin/java -cp '/pulsar/conf:::/pulsar/lib/*:' 
-Dlog4j.configurationFile=log4j2.yaml -Djava.net.preferIPv4Stack=true '"' 
-Xms1g -Xmx1g '-XX:MaxDirectMemorySize=1g"' -client 
-Dio.netty.leakDetectionLevel=disabled ... 
org.apache.pulsar.admin.cli.PulsarAdminTool /pulsar/conf/client.conf clusters 
list```

The fix is to take out the use of env var PULSAR_MEM in 
`conf/pulsar_tools_env.sh`.

### Result

`pulsar-admin` works as expected.


[ Full content available at: 
https://github.com/apache/incubator-pulsar/pull/2484 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to