Customize Solr startup configuration
in /etc/default/solr.in.sh
Waiting up to
180 seconds to see Solr running on port 8983 [/]
Started Solr server on port
8983 (pid=5180). Happy searching!
Found
1 Solr nodes:
Solr process
5180 running on port 8983
{
"solr_home":"/var/solr/data","version":"7.1.0 84c90ad2c0218156c840e19a64d72b8a38550659 - ubuntu - 2017-10-13 16:15:59","startTime":"2017-11-23T13:46:22.578Z","uptime":"0 days, 0 hours, 0 minutes, 18 seconds","memory":"23.7 MB (%4.8) of 490.7 MB"}
[iyunv@localhost mysoft]# service solr start
Waiting up to
180 seconds to see Solr running on port 8983 [/]
Started Solr server on port
8983 (pid=6675). Happy searching!
[iyunv@localhost mysoft]# service solr status
Found
1 Solr nodes:
Solr process
6675 running on port 8983
{
"solr_home":"/var/solr/data","version":"7.1.0 84c90ad2c0218156c840e19a64d72b8a38550659 - ubuntu - 2017-10-13 16:15:59","startTime":"2017-11-23T13:58:08.059Z","uptime":"0 days, 0 hours, 3 minutes, 21 seconds","memory":"30.4 MB (%6.2) of 490.7 MB","cloud":{"ZooKeeper":"192.168.127.129:2181,192.168.127.130:2181,192.168.127.131:2181/solr","liveNodes":"3","collections":"0"}}
numShares这里只能输入1,否则会报错:. Value of numShards is 1,​ value of nrtReplicas is 3,​ value of tlogReplicas is 0 and value of pullReplicas is 0. This requires 3 shards to be created (higher than the allowed number)
应该在配置文件里面可以设置最大share数量
现在再看集群状态,Collections变成了1