Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8552

Unbalanced quotes in bin/solr when -D arguments are passed via the -a switch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • scripts and tools
    • None

    Description

      This works:

      bin/solr start -p 8983 -h localhost -m 2g -e schemaless -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
      

      but this does not:

      bin/solr start -p 8983 -h localhost -m 2g -e schemaless -a "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
      

      The output for the latter is:

      Solr home directory /home/shalin/temp/bench/solr/wiki-4k-schema/example/schemaless/solr already exists.
      
      Starting up Solr on port 8983 using command:
      bin/solr start -p 8983 -s "example/schemaless/solr" -m 2g -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" -a "-Dcom.sun.management.jmxremote"
      
      
      ERROR: Unbalanced quotes in bin/solr start -p 8983 -s "example/schemaless/solr" -m 2g -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" -a "-Dcom.sun.management.jmxremote"
      

      I know bin/solr supports direct pass through of -D properties but it should still work with -a option because that is how many people would have configured -D properties before support for the pass-through was added.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shalin Shalin Shekhar Mangar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: