1:软件版本
solr-5.5.0.zip
zookeeper-3.4.8.tar.gz
2:部署环境
ip : 10.27.58.42
drwxrwxr-x 2 wasuser wasuser 4096 Feb 27 10:36 backup
drwxr-xr-x 9 wasuser wasuser 4096 Feb 27 15:38 solr-node1
drwxr-xr-x 9 wasuser wasuser 4096 Feb 27 10:33 solr-node2
drwxrwxr-x 10 wasuser wasuser 4096 Feb 6 11:50 zookeeper-node1
drwxrwxr-x 10 wasuser wasuser 4096 Feb 27 10:37 zookeeper-node2
drwxrwxr-x 10 wasuser wasuser 4096 Feb 27 10:37 zookeeper-node3
[wasuser@eciassitapp13 solr]$ pwd
/opt/pec/solr
zookeeper-node1 设置的端口为 2222
zookeeper-node2 、zookeeper-node3 未启动
3:solrCloud 方式启动
1)启动solr-node2 节点 端口 7573
[wasuser@eciassitapp13 solr-node2]$ bin/solr start -c -p 7573 -z 127.0.0.1:2222
2)solr-node1 中启动cloud
[wasuser@eciassitapp13 solr-node1]$ bin/solr start -c -m 1g -z 127.0.0.1:2222 -a "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044" &
3)创建collection
[wasuser@eciassitapp13 solr-node1]$ bin/solr create -c collectionName -d data_driven_schema_configs -shards 2
-replicationFactor 2
4.删除collection
[wasuser@eciassitapp13 bin]$ ./solr delete -c collectionName -deleteConfig true