<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Cannot add service Kafka: JVM BROKER_HEAP_SIZE zero in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-add-service-Kafka-JVM-BROKER-HEAP-SIZE-zero/m-p/41972#M6765</link>
    <description>&lt;P&gt;But how would he fix it, if he did need it?? I am experiencing the same thing.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2016 05:20:12 GMT</pubDate>
    <dc:creator>MidwestMike</dc:creator>
    <dc:date>2016-06-14T05:20:12Z</dc:date>
    <item>
      <title>Cannot add service Kafka: JVM BROKER_HEAP_SIZE zero</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-add-service-Kafka-JVM-BROKER-HEAP-SIZE-zero/m-p/30120#M6761</link>
      <description>&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;+ echo 'Pwd: /var/run/cloudera-scm-agent/process/419-kafka-KAFKA_BROKER'
+ echo 'CONF_DIR: /var/run/cloudera-scm-agent/process/419-kafka-KAFKA_BROKER'
+ echo 'KAFKA_HOME: /opt/cloudera/parcels/KAFKA-0.8.2.0-1.kafka1.3.0.p0.29/lib/kafka'
+ echo 'Zoookeper Quorum: bichdp1.xxx.local:2181,bichdp3.xxx.local:2181,bichdp4.xxx.local:2181'
+ echo 'Chroot: '
+ echo 'JMX_PORT: 9393'
+ echo 'ENABLE_MONITORING: true'
+ echo 'METRIC_REPORTERS: nl.techop.kafka.KafkaHttpMetricsReporter'
&lt;STRONG&gt;+ echo 'BROKER_HEAP_SIZE: 0'&lt;/STRONG&gt;
+ QUORUM=bichdp1.xxx.local:2181,bichdp3.xxx.local:2181,bichdp4.xxx.local:2181
+ [[ -n '' ]]
+ echo 'Final Zookeeper Quorum is bichdp1.xxx.local:2181,bichdp3.xxx.local:2181,bichdp4.xxx.local:2181'
+ grep zookeeper.connect= /var/run/cloudera-scm-agent/process/419-kafka-KAFKA_BROKER/kafka.properties
+ [[ true == \t\r\u\e ]]
+ echo kafka.metrics.reporters=nl.techop.kafka.KafkaHttpMetricsReporter
+ export KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:/var/run/cloudera-scm-agent/process/419-kafka-KAFKA_BROKER/log4j.properties
+ KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:/var/run/cloudera-scm-agent/process/419-kafka-KAFKA_BROKER/log4j.properties
++ pwd
+ export LOG_DIR=/var/run/cloudera-scm-agent/process/419-kafka-KAFKA_BROKER
+ LOG_DIR=/var/run/cloudera-scm-agent/process/419-kafka-KAFKA_BROKER
+ export KAFKA_HEAP_OPTS=-Xmx0M
+ KAFKA_HEAP_OPTS=-Xmx0M
+ exec /opt/cloudera/parcels/KAFKA-0.8.2.0-1.kafka1.3.0.p0.29/lib/kafka/bin/kafka-server-start.sh /var/run/cloudera-scm-agent/process/419-kafka-KAFKA_BROKER/kafka.properties
Invalid maximum heap size: -Xmx0M
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Hi guys, after downloading, distributing and activating Kafka parcel I tried to add a Kafka as a new service to the cluster, but the installation process fails on this error.&lt;/P&gt;&lt;P&gt;The variable BROKER_HEAP_SIZE is not set, and I dont know why, and how to workaround this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:35:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-add-service-Kafka-JVM-BROKER-HEAP-SIZE-zero/m-p/30120#M6761</guid>
      <dc:creator>Tomas79</dc:creator>
      <dc:date>2022-09-16T09:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot add service Kafka: JVM BROKER_HEAP_SIZE zero</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-add-service-Kafka-JVM-BROKER-HEAP-SIZE-zero/m-p/30121#M6762</link>
      <description>Can you confirm what version of Cloudera Manager and CDH you are running?&lt;BR /&gt;&lt;BR /&gt;Within the Kafka service configuration, if you search for "Java Heap Size of Broker in Megabytes" is there anything set for this value? If not, try to set it to 256 MB (at least) and attempt to restart.&lt;BR /&gt;&lt;BR /&gt;-PD</description>
      <pubDate>Mon, 27 Jul 2015 21:55:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-add-service-Kafka-JVM-BROKER-HEAP-SIZE-zero/m-p/30121#M6762</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2015-07-27T21:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot add service Kafka: JVM BROKER_HEAP_SIZE zero</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-add-service-Kafka-JVM-BROKER-HEAP-SIZE-zero/m-p/30154#M6763</link>
      <description>&lt;P&gt;Running the latest Cloudera Manager and CDH 5.4.4&lt;/P&gt;&lt;P&gt;The workaround you suggested worked, after adding the service to the cluster with error result I returned to the configuration and found the Java Heap size option and set from 0 to 256.&lt;/P&gt;&lt;P&gt;After the restart the Kafka brokers are in green but the Kafka Mirror (provisioned on one host) still fails to start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message is:L&lt;/P&gt;&lt;PRE&gt;Supervisor returned FATAL. Please check the role log file, stderr, or stdout.&lt;/PRE&gt;&lt;P&gt;STDERR: last few lines, no ERROR mentioned there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;+ find /var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER -name topology.py -exec perl -pi -e 's#{{CMF_CONF_DIR}}#/var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER#g' '{}' ';'&lt;BR /&gt;+ export COMMON_SCRIPT=/usr/lib64/cmf/service/common/cloudera-config.sh&lt;BR /&gt;+ COMMON_SCRIPT=/usr/lib64/cmf/service/common/cloudera-config.sh&lt;BR /&gt;+ chmod u+x /var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER/scripts/mirrormaker_control.sh&lt;BR /&gt;+ exec /var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER/scripts/mirrormaker_control.sh start&lt;BR /&gt;+ echo ''&lt;BR /&gt;++ date&lt;BR /&gt;+ echo 'Date: Tue Jul 28 12:14:55 CEST 2015'&lt;BR /&gt;++ hostname -f&lt;BR /&gt;+ echo 'Host: bichdp6.xxx.local'&lt;BR /&gt;++ pwd&lt;BR /&gt;+ echo 'Pwd: /var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER'&lt;BR /&gt;+ echo 'CONF_DIR: /var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER'&lt;BR /&gt;+ echo 'KAFKA_HOME: /opt/cloudera/parcels/KAFKA-0.8.2.0-1.kafka1.3.0.p0.29/lib/kafka'&lt;BR /&gt;+ echo 'Zoookeper Quorum: bichdp1.xxx.local:2181,bichdp3.xxx.local:2181,bichdp4.xxx.local:2181'&lt;BR /&gt;+ echo 'Chroot: '&lt;BR /&gt;+ echo 'no.data.loss: true'&lt;BR /&gt;+ echo 'whitelist: '&lt;BR /&gt;+ echo 'blacklist: '&lt;BR /&gt;+ echo 'num.producers: 1'&lt;BR /&gt;+ echo 'num.streams: 1'&lt;BR /&gt;+ echo 'queue.size: 10000'&lt;BR /&gt;+ echo 'JMX_PORT: 9394'&lt;BR /&gt;+ QUORUM=bichdp1.xxx.local:2181,bichdp3.xxx.local:2181,bichdp4.xxx.local:2181&lt;BR /&gt;+ [[ -n '' ]]&lt;BR /&gt;+ echo 'Final Zookeeper Quorum is bichdp1.xxx.local:2181,bichdp3.xxx.local:2181,bichdp4.xxx.local:2181'&lt;BR /&gt;+ grep zookeeper.connect= /var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER/mirror_maker_consumers.properties&lt;BR /&gt;+ [[ true == \t\r\u\e ]]&lt;BR /&gt;+ DATA_LOSS_PARAM=--no.data.loss&lt;BR /&gt;+ echo 'data loss param: --no.data.loss'&lt;BR /&gt;+ [[ -n '' ]]&lt;BR /&gt;+ [[ -n '' ]]&lt;BR /&gt;+ [[ -n 1 ]]&lt;BR /&gt;+ PRODUCER_PARAM='--num.producers 1'&lt;BR /&gt;+ [[ -n 1 ]]&lt;BR /&gt;+ STREAM_PARAM='--num.streams 1'&lt;BR /&gt;+ [[ -n 10000 ]]&lt;BR /&gt;+ QUEUE_SIZE_PARAM='--queue.size 10000'&lt;BR /&gt;+ [[ -n 100000000 ]]&lt;BR /&gt;+ QUEUE_BYTE_SIZE_PARAM='--queue.byte.size 100000000'&lt;BR /&gt;+ export KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:/var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER/log4j.properties&lt;BR /&gt;+ KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:/var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER/log4j.properties&lt;BR /&gt;++ pwd&lt;BR /&gt;+ export LOG_DIR=/var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER&lt;BR /&gt;+ LOG_DIR=/var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER&lt;BR /&gt;+ exec /opt/cloudera/parcels/KAFKA-0.8.2.0-1.kafka1.3.0.p0.29/lib/kafka/bin/kafka-mirror-maker.sh --new.producer --no.data.loss --num.producers 1 --num.streams 1 --queue.size 10000 --queue.byte.size 100000000 --consumer.config /var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER/mirror_maker_consumers.properties --producer.config /var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER/mirror_maker_producers.properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STDOUT:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date: Tue Jul 28 12:14:44 CEST 2015&lt;BR /&gt;Host: bichdp6.xxx.local&lt;BR /&gt;Pwd: /var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER&lt;BR /&gt;CONF_DIR: /var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER&lt;BR /&gt;KAFKA_HOME: /opt/cloudera/parcels/KAFKA-0.8.2.0-1.kafka1.3.0.p0.29/lib/kafka&lt;BR /&gt;Zoookeper Quorum: bichdp1.xxx.local:2181,bichdp3.xxx.local:2181,bichdp4.xxx.local:2181&lt;BR /&gt;Chroot:&lt;BR /&gt;no.data.loss: true&lt;BR /&gt;whitelist:&lt;BR /&gt;blacklist:&lt;BR /&gt;num.producers: 1&lt;BR /&gt;num.streams: 1&lt;BR /&gt;queue.size: 10000&lt;BR /&gt;JMX_PORT: 9394&lt;BR /&gt;Final Zookeeper Quorum is bichdp1.xxx.local:2181,bichdp3.xxx.local:2181,bichdp4.xxx.local:2181&lt;BR /&gt;data loss param: --no.data.loss&lt;BR /&gt;Exactly one of whitelist or blacklist is required.&lt;BR /&gt;Tue Jul 28 12:14:46 CEST 2015&lt;BR /&gt;JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera&lt;BR /&gt;Using /var/run/cloudera-scm-agent/process/427-kafka-KAFKA_MIRROR_MAKER as conf dir&lt;BR /&gt;Using scripts/mirrormaker_control.sh as process script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ROLE LOG:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Jul 28, 12:13:31.061 PM&lt;/TD&gt;&lt;TD&gt;INFO&lt;/TD&gt;&lt;TD&gt;kafka.tools.MirrorMaker$&lt;/TD&gt;&lt;TD&gt;&lt;PRE&gt;Starting mirror maker&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jul 28, 12:13:35.759 PM&lt;/TD&gt;&lt;TD&gt;INFO&lt;/TD&gt;&lt;TD&gt;kafka.tools.MirrorMaker$&lt;/TD&gt;&lt;TD&gt;&lt;PRE&gt;Starting mirror maker&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jul 28, 12:14:45.452 PM&lt;/TD&gt;&lt;TD&gt;INFO&lt;/TD&gt;&lt;TD&gt;kafka.tools.MirrorMaker$&lt;/TD&gt;&lt;TD&gt;&lt;PRE&gt;Starting mirror maker&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jul 28, 12:14:47.973 PM&lt;/TD&gt;&lt;TD&gt;INFO&lt;/TD&gt;&lt;TD&gt;kafka.tools.MirrorMaker$&lt;/TD&gt;&lt;TD&gt;&lt;PRE&gt;Starting mirror maker&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jul 28, 12:14:51.621 PM&lt;/TD&gt;&lt;TD&gt;INFO&lt;/TD&gt;&lt;TD&gt;kafka.tools.MirrorMaker$&lt;/TD&gt;&lt;TD&gt;&lt;PRE&gt;Starting mirror maker&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jul 28, 12:14:56.344 PM&lt;/TD&gt;&lt;TD&gt;INFO&lt;/TD&gt;&lt;TD&gt;kafka.tools.MirrorMaker$&lt;/TD&gt;&lt;TD&gt;&lt;PRE&gt;Starting mirror maker&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 10:26:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-add-service-Kafka-JVM-BROKER-HEAP-SIZE-zero/m-p/30154#M6763</guid>
      <dc:creator>Tomas79</dc:creator>
      <dc:date>2015-07-28T10:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot add service Kafka: JVM BROKER_HEAP_SIZE zero</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-add-service-Kafka-JVM-BROKER-HEAP-SIZE-zero/m-p/30178#M6764</link>
      <description>MirrorMaker is only needed if you are syncing topics from one kafka cluster to another. If you only have one kafka installation, you won't be using the MirrorMaker role.</description>
      <pubDate>Tue, 28 Jul 2015 14:08:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-add-service-Kafka-JVM-BROKER-HEAP-SIZE-zero/m-p/30178#M6764</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2015-07-28T14:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot add service Kafka: JVM BROKER_HEAP_SIZE zero</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-add-service-Kafka-JVM-BROKER-HEAP-SIZE-zero/m-p/41972#M6765</link>
      <description>&lt;P&gt;But how would he fix it, if he did need it?? I am experiencing the same thing.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 05:20:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cannot-add-service-Kafka-JVM-BROKER-HEAP-SIZE-zero/m-p/41972#M6765</guid>
      <dc:creator>MidwestMike</dc:creator>
      <dc:date>2016-06-14T05:20:12Z</dc:date>
    </item>
  </channel>
</rss>

