You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2016/10/17 20:08:58 UTC

[jira] [Commented] (SOLR-8552) Unbalanced quotes in bin/solr when -D arguments are passed via the -a switch

    [ https://issues.apache.org/jira/browse/SOLR-8552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15583297#comment-15583297 ] 

Jan Høydahl commented on SOLR-8552:
-----------------------------------

Managed to reproduce with
{noformat}
bin/solr -e techproducts -a "-Dfoo -Dbar"
{noformat}

> Unbalanced quotes in bin/solr when -D arguments are passed via the -a switch
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-8552
>                 URL: https://issues.apache.org/jira/browse/SOLR-8552
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>            Reporter: Shalin Shekhar Mangar
>            Priority: Minor
>
> This works:
> {code}
> 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
> {code}
> but this does not:
> {code}
> 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"
> {code}
> The output for the latter is:
> {code}
> 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"
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org