title: /opt/kafka/kafka_2.12-2.6.0/bin/kafka-run-class.sh: line 318: /usr/lib/jvm/java-8-openjdk-amd64 /bin/java: No such file or directory
body: <p>When I start Kafka on my machine this error appeared.</p>
  <pre><code>giangnt@node2:/opt/kafka/kafka_2.12-2.6.0/bin$ nohup: ignoring input and appending output to 'nohup.out'
  
  [1]+  Exit 127                nohup ./kafka-server-start.sh /opt/kafka/kafka_2.12-2.6.0/config/server.properties
  giangnt@node2:/opt/kafka/kafka_2.12-2.6.0/bin$ ./kafka-topics.sh --create --zookeeper master:2181,node1:2181,node2:2181 --replication-factor 3 --partitions 3 --topic meetuprsvptopic
  /opt/kafka/kafka_2.12-2.6.0/bin/kafka-run-class.sh: line 318: /usr/lib/jvm/java-8-openjdk-amd64 /bin/java: No such file or directory
  giangnt@node2:/opt/kafka/kafka_2.12-2.6.0/bin$ 
  </code></pre>
  <p>My Kafka cluster has 3 servers. I can start one server, but 2 other brokers can't start and got error:</p>
  <pre><code>[1]+  Exit 127                nohup ./kafka-server-start.sh /opt/kafka/kafka_2.12-2.6.0/config/server.properties 
  </code></pre>
  <p>When I try to create topic in other server, I got this error,</p>
  <p>My directory of JAVA_HOME has an space, is it the cause??:</p>
  <pre><code>/opt/kafka/kafka_2.12-2.6.0/bin/kafka-run-class.sh: line 318: /usr/lib/jvm/java-8-openjdk-amd64 /bin/java: No such file or directory
  </code></pre>