标签:新建 上传 web ges share images 环境搭建 action 搭建
详细步骤见ZK笔记
详细步骤见Solr笔记09
java -classpath C:\Tomcat\webapps\solr\WEB_INF\lib/* org.apache.solr.cloud.ZKCLI -zkhost zookeeper01:2181,zookeeper02:2181,zookeeper03:2181, -cmd upconfig -confdir D:\SolrCloud\solrhome\collection1\conf -confname myconf
# tomcat/bin/catalina.bat
set JAVA_OPTS="-DzkHost=zookeeper01:2181,zookeeper02:2181,zookeeper03:2181"
# 在浏览器中访问如下地址,新建collection2,有两个分片,每个分片有两个节点
http://127.0.0.1/solr/admin/collections?action=CREATE&name=collection2&numShareds=2&replicationFactor=2
疑问:为什么不需要定义字段
http://127.0.0.1/solr/admin/collections?action=DELETE&name=collection1
标签:新建 上传 web ges share images 环境搭建 action 搭建
原文地址:http://www.cnblogs.com/wesly186/p/27accc054b0ec8b2ad8dde4a69825ac5.html