lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pratik Patel <>
Subject Streaming expressions and Jetty Host
Date Sun, 09 Jul 2017 16:17:49 GMT
Hi Everyone,

We are running solr 6.4.1 in cloud mode on CentOS production server.
Currently, we are using the embedded zookeeper. It is a simple set up with
one collection and one shard.

By default, Jetty server binds to all interfaces which is not safe so we
have changed the bin/solr script. We have added "" in
SOLR_START_OPTS so that it looks like as follows.

 SOLR_START_OPTS=('-server' "${JAVA_MEM_OPTS[@]}" "${GC_TUNE[@]}"
"${GC_LOG_OPTS[@]}" \
    "" "-Djetty.port=$SOLR_PORT"
"-DSTOP.PORT=$stop_port" "-DSTOP.KEY=$STOP_KEY" \
    "${SOLR_HOST_ARG[@]}" "-Duser.timezone=$SOLR_TIMEZONE" \
    "-Djetty.home=$SOLR_SERVER_DIR" "-Dsolr.solr.home=$SOLR_HOME"
"-Dsolr.install.dir=$SOLR_TIP" \
    "${LOG4J_CONFIG[@]}" "${SOLR_OPTS[@]}")

We just found that with this change everything works fine in cloud mode
except the streaming expressions. With streaming expressions, we get
following response.

org.apache.solr.client.solrj.SolrServerException: Server refused connection
> at: http://<server ip>:8081/solr/collection1_shard1_replica1

We don't get this error if we let jetty server bind to all interfaces. Any
idea about what's the problem here?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message