Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-13473

Missing quotes in cassandra-env.ps1

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Low
    • Resolution: Unresolved
    • None
    • Local/Config
    • None
    • Low

    Description

      Cannot start Cassandra on Windows via Powershell if the configuration path contains spaces.

      diff --git a/conf/cassandra-env.ps1 b/conf/cassandra-env.ps1
      index 806eabc..c2765f8 100644
      --- a/conf/cassandra-env.ps1
      +++ b/conf/cassandra-env.ps1
      @@ -376,9 +376,9 @@ Function SetCassandraEnvironment
               }
           }
       
      -    # provides hints to the JIT compiler
      -    $env:JVM_OPTS = "$env:JVM_OPTS -XX:CompileCommandFile=$env:CASSANDRA_CONF\hotspot_compiler"
      -
      +    # provides hints to the JIT compiler
      +    $env:JVM_OPTS = "$env:JVM_OPTS -XX:CompileCommandFile=""$env:CASSANDRA_CONF\hotspot_compiler"""
      +
           # add the jamm javaagent
           if (($env:JVM_VENDOR -ne "OpenJDK") -or ($env:JVM_VERSION.CompareTo("1.6.0") -eq 1) -or
               (($env:JVM_VERSION -eq "1.6.0") -and ($env:JVM_PATCH_VERSION.CompareTo("22") -eq 1)))
      

      Attachments

        Activity

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

          People

            Unassigned Unassigned Assign to me
            jameshowe James Howe

            Dates

              Created:
              Updated:

              Slack

                Issue deployment