【问题标题】:Solr 5.0.0 is not starting properly in CentOSSolr 5.0.0 在 CentOS 中无法正常启动
【发布时间】:2015-07-14 18:12:19
【问题描述】:

当我运行命令bin/solr start -e cloud 时,它不会要求我收集名称和其他信息,例如没有副本和配置设置。

我得到以下输出

Welcome to the SolrCloud example!


This interactive session will help you launch a SolrCloud cluster on your local workstation.

To begin, how many Solr nodes would you like to run in your local cluster? (specify 1-4 nodes) [2] 2
Ok, let's start up 2 Solr nodes for your example SolrCloud cluster.

Please enter the port for node1 [8983] 
8983
Please enter the port for node2 [7574] 
7574
Creating Solr home directory /home/webuser/abhijeet/solr-5.0.0/example/cloud/node1/solr
Cloning Solr home directory /home/webuser/abhijeet/solr-5.0.0/example/cloud/node1 into /home/webuser/abhijeet/solr-5.0.0/example/cloud/node2

Starting up SolrCloud node1 on port 8983 using command:

solr start -cloud -s example/cloud/node1/solr -p 8983   



Started Solr server on port 8983 (pid=23735). Happy searching!

【问题讨论】:

  • 尝试在您的 Web 浏览器中访问 Solr Admin UI:localhost:8983/solr。并检查更多信息。它似乎 Solr 使用两个“节点”运行,一个在端口 7574 上,一个在端口 8983 上。正如您所要求的 2。有一个自动创建的集合,“gettingstarted”,一个两个分片集合,每个有两个副本。 solr-5.0.0/example/cloud/node1/solr/gettingstarted_shard2_replica1/core.properties 中提到了这一点
  • 感谢您的快速回复。我使用 netstat 命令检查了 solr 仅在 8983 端口上运行,但不在 7574 端口上运行。管理页面未在 [localhost:8983/solr] 上正确加载。
  • [localhost:8983/solr]( [localhost:8983/solr]) 显示 SolrCore 初始化失败
  • 我用 solr5.0.0 试过了,它对我来说工作正常......也许你只是重新启动 iit n 试一试
  • 我也在 ubuntu 上试过,它运行良好。但是在centos中它不起作用..

标签: solr lucene centos solrcloud


【解决方案1】:

我试过了......就这样......唯一的区别是我在 Ubantu 上试过

abhijit@abhijit:~/Downloads/solr-5.0.0$ bin/solr start -e cloud 

Welcome to the SolrCloud example!


This interactive session will help you launch a SolrCloud cluster on your local workstation.

To begin, how many Solr nodes would you like to run in your local cluster? (specify 1-4 nodes) [2] 2
Ok, let's start up 2 Solr nodes for your example SolrCloud cluster.

Please enter the port for node1 [8983] 8983
Oops! Looks like port 8983 is already being used by another process. Please choose a different port. 8985
8985
Please enter the port for node2 [7574] 7576
7576

Starting up SolrCloud node1 on port 8985 using command:

solr start -cloud -s example/cloud/node1/solr -p 8985   


Waiting to see Solr listening on port 8985 [|]  
Started Solr server on port 8985 (pid=7092). Happy searching!



Starting node2 on port 7576 using command:

solr start -cloud -s example/cloud/node2/solr -p 7576 -z localhost:9985   


Waiting to see Solr listening on port 7576 [\]  
Started Solr server on port 7576 (pid=7461). Happy searching!


Now let's create a new collection for indexing documents in your 2-node cluster.

Please provide a name for your new collection: [gettingstarted] testCore
testCore
How many shards would you like to split testCore into? [2] 2
2
How many replicas per shard would you like to create? [2] 2
2
Please choose a configuration for the testCore collection, available options are:
basic_configs, data_driven_schema_configs, or sample_techproducts_configs [data_driven_schema_configs] data_driven_schema_configs
Connecting to ZooKeeper at localhost:9985
Uploading /home/abhijit/Downloads/solr-5.0.0/server/solr/configsets/data_driven_schema_configs/conf for config testCore to ZooKeeper at localhost:9985

Creating new collection 'testCore' using command:
http://127.0.1.1:7576/solr/admin/collections?action=CREATE&name=testCore&numShards=2&replicationFactor=2&maxShardsPerNode=2&collection.configName=testCore

{
  "responseHeader":{
    "status":0,
    "QTime":7468},
  "success":{"":{
      "responseHeader":{
        "status":0,
        "QTime":7057},
      "core":"testCore_shard1_replica2"}}}



SolrCloud example running, please visit http://localhost:8985/solr 

【讨论】:

  • 在 CentOS 中,没有安装 lsof,因此无法正常工作。谢谢:)
  • 您是如何发现 Isof 丢失的?
  • 在 bin/solr 脚本中,使用了 lsof
猜你喜欢
  • 2019-04-16
  • 2015-07-18
  • 2017-06-23
  • 1970-01-01
  • 2018-08-30
  • 1970-01-01
  • 2020-01-25
  • 2015-03-03
  • 2021-04-11
相关资源
最近更新 更多