簡體   English   中英

Solr 5.0.0在CentOS中無法正常啟動

[英]Solr 5.0.0 is not starting properly in CentOS

當我運行命令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!

我嘗試過...這里去...唯一的區別是我在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 

唯一的amdin頁面

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM