You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "胡晓东 (JIRA)" <ji...@apache.org> on 2016/11/03 00:44:58 UTC

[jira] [Issue Comment Deleted] (SOLR-9714) can not stop solr with $STOP_PORT

     [ https://issues.apache.org/jira/browse/SOLR-9714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

胡晓东 updated SOLR-9714:
----------------------
    Comment: was deleted

(was: But when I show help, it shows that this shuold work.
     (The specified port (SOLR_PORT) will also be used to determine the stop port)

[root@huxiaodong01 bin]# ./solr start -help

Usage: solr start [-f] [-c] [-h hostname] [-p port] [-d directory] [-z zkHost] [-m memory] [-e example] [-s solr.solr.home] [-a "additional-options"] [-V]

  -f            Start Solr in foreground; default starts Solr in the background
                  and sends stdout / stderr to solr-PORT-console.log

  -c or -cloud  Start Solr in SolrCloud mode; if -z not supplied, an embedded Zookeeper
                  instance is started on Solr port+1000, such as 9983 if Solr is bound to 8983

  -h <host>     Specify the hostname for this Solr instance

  -p <port>     Specify the port to start the Solr HTTP listener on; default is 8983
                  *The specified port (SOLR_PORT) will also be used to determine the stop port*
                  STOP_PORT=($SOLR_PORT-1000) and JMX RMI listen port RMI_PORT=(1$SOLR_PORT). 
                  For instance, if you set -p 8985, then the STOP_PORT=7985 and RMI_PORT=18985
  .....
)

> can not stop solr with $STOP_PORT
> ---------------------------------
>
>                 Key: SOLR-9714
>                 URL: https://issues.apache.org/jira/browse/SOLR-9714
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 5.5.3, 6.2.1
>            Reporter: 胡晓东
>         Attachments: SOLR-9714.patch
>
>
> start:
>        export SOLR_PORT="8983"
>        export STOP_PORT="8984"
>        ... ...
> and use command  '$SOLR_HOME/bin/solr start ' to start solr
> stop:
>       export SOLR_PORT="8983"
>       export STOP_PORT="8984"
>       ... ...
>       use command  '$SOLR_HOME/bin/solr stop'  will throw exception below
>        Sending stop command to Solr running on port 8983 ... waiting 5 seconds to allow Jetty process 18791 to stop gracefully.
> + /usr/java/jdk/bin/java -jar /opt/ZDH/parcels/lib/solr/server/start.jar STOP.PORT=7983 STOP.KEY=solrrocks --stop
> java.net.ConnectException: Connection refused
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
> 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
> 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> 	at java.net.Socket.connect(Socket.java:579)
> 	at java.net.Socket.connect(Socket.java:528)
> 	at java.net.Socket.<init>(Socket.java:425)
> 	at java.net.Socket.<init>(Socket.java:241)
> 	at org.eclipse.jetty.start.Main.stop(Main.java:869)
> 	at org.eclipse.jetty.start.Main.stop(Main.java:848)
> 	at org.eclipse.jetty.start.Main.doStop(Main.java:839)
> 	at org.eclipse.jetty.start.Main.start(Main.java:692)
> 	at org.eclipse.jetty.start.Main.main(Main.java:112)



--
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