无法启动solr服务

时间:2018-05-08 13:07:26

标签: java solr

我似乎无法在8983端口启动solr serer ..

每次我尝试访问它时,都会收到以下错误消息:

C:\sitecore\solr-6.6.2\bin>solr.cmd -p 8983
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: Option UseParNewGC was deprecated in version 9.0 and will likely be removed in a future release.
Waiting up to 30 to see Solr running on port 8983
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.eclipse.jetty.util.BufferUtil (file:/C:/sitecore/solr-6.6.2/server/lib/jetty-util-9.3.14.v20161028.jar) to field java.nio.MappedByteBuffer.fd
WARNING: Please consider reporting this to the maintainers of org.eclipse.jetty.util.BufferUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

ERROR: Solr at https://localhost:8983/solr did not come online within 30 seconds!

这个端口似乎是solr服务的标准,这有点奇怪吗?

2 个答案:

答案 0 :(得分:0)

java 9和solr的问题试图从那开始,所以你得到了这个waring。根据您的solr版本,请选择java版本。我希望这会得到解决。

答案 1 :(得分:0)

此问题是Java 9更改的一部分,已在SOLR-8689中进行了描述(请参阅上述几条评论。

不要将Java 9与您的Solr版本一起使用,也不要将Solr更新为最新版本。