Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9034

kafka-run-class.sh will fail if JAVA_HOME has space

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: tools
    • Labels:
    • Environment:
      macOS

      Description

      If set JAVA_HOME to IntelliJ's java, bin/zookeeper-server-start.sh can't work because the path has space in it.

       

      export JAVA_HOME="/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/"

       

      We can fix this by quote "$JAVA" in the shell script according to: https://stackoverflow.com/a/7740746/1203241

       

      I can send a PR if you like.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                manasvigupta Manasvi Gupta
                Reporter:
                wangfenjin Fenjin Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: