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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.6.0
    • tools
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment