From commits-return-13625-archive-asf-public=cust-asf.ponee.io@pulsar.incubator.apache.org Thu Aug 30 02:48:40 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 844C518067B for ; Thu, 30 Aug 2018 02:48:39 +0200 (CEST) Received: (qmail 99040 invoked by uid 500); 30 Aug 2018 00:48:38 -0000 Mailing-List: contact commits-help@pulsar.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pulsar.incubator.apache.org Delivered-To: mailing list commits@pulsar.incubator.apache.org Received: (qmail 99031 invoked by uid 99); 30 Aug 2018 00:48:38 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2018 00:48:38 +0000 From: GitBox To: commits@pulsar.apache.org Subject: [GitHub] vli02 opened a new issue #2481: `./bin/pulsar-admin clusters list` failed with `Error: Could not find or load main class "` Message-ID: <153559011806.23132.2256409351078658831.gitbox@gitbox.apache.org> Date: Thu, 30 Aug 2018 00:48:38 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit vli02 opened a new issue #2481: `./bin/pulsar-admin clusters list` failed with `Error: Could not find or load main class "` URL: https://github.com/apache/incubator-pulsar/issues/2481 #### Expected behavior Expect to list the clusters I have created. #### Actual behavior It failed with Error: Could not find or load main class " #### Steps to reproduce * Deploy pulsar in a k8s cluster by using helm charts. * kubectl exec -ti -n ... pulsar-broker-... bash * ./bin/pulsar-admin clusters list #### System configuration **Pulsar version**: 2.1.0-incubating We find the problem is the conf/pulsar_tool_env.sh, the `PULSAR_MEM=${PULSAR_MEM:-"-Xmx256m -XX:MaxDirectMemorySize=256m"}` It should not take the PULSAR_MEM from env, it caused the actual command to exec 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 -Dpulsar.log.appender=RoutingAppender -Dpulsar.log.dir=/pulsar/logs -Dpulsar.log.level=info -Dpulsar.routing.appender.default=Console -Dpulsar.functions.java.instance.jar=/pulsar/instances/java-instance.jar -Dpulsar.functions.python.instance.file=/pulsar/instances/python-instance/python_instance_main.py org.apache.pulsar.admin.cli.PulsarAdminTool /pulsar/conf/client.conf clusters list``` The problem is fixed with the following fix: ```diff conf/pulsar_tools_env.sh.orig conf/pulsar_tools_env.sh 45c45 < PULSAR_MEM=${PULSAR_MEM:-"-Xmx256m -XX:MaxDirectMemorySize=256m"} --- > PULSAR_MEM="-Xmx256m -XX:MaxDirectMemorySize=256m" ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services