Solr 5.0.0在CentOS中无法正常启动 [英] Solr 5.0.0 is not starting properly in CentOS

查看:415
本文介绍了Solr 5.0.0在CentOS中无法正常启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When I running command bin/solr start -e cloud it is not asking me to collection name and other information like no of replicas and configuration settings.

我有以下输出

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

I tried it ...here it goes...only difference is I tried on 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 

这篇关于Solr 5.0.0在CentOS中无法正常启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆