-------备份SolrCloud------------------------
创建备份,默认为snapshot.<name>:
http://172.28.5.32:11010/solr/activity_shard1_replica1/replication?command=backup
删除名字为 [snapshot.20141111133105714]的备份,注意20141111133105714才是name,前面的snapshot.不算:
http://172.28.5.32:11010/solr/activity_shard1_replica1/replication?command=deletebackup&name=20141111133105714
创建 name为[2014-11-11_15-37],保留最近的5个备份[numberToKeep=5],存储位置为指定位置[location=]
http://172.28.5.32:11010/solr/activity_shard1_replica1/replication?command=backup&name=2014-11-11_15-37&numberToKeep=5&location=/home/java1/programs/data/SolrBackUp/SolrSlave1/activity_shard1_replica1/data/
删除 name为[2014-11-11_15-37],存储位置为指定位置[location=]
http://172.28.5.32:11010/solr/activity_shard1_replica1/replication?command=deletebackup&name=2014-11-11_15-37&location=/home/java1/programs/data/SolrBackUp/SolrSlave1/activity_shard1_replica1/data/
查看复制详细信息:
http://172.28.5.32:11010/solr/activity_shard1_replica1/replication?command=details
<1>:备份方式:
使用/replication?command=backup方式备份,且为每一个core进行备份.
<2>: 还原方式1:
- Stop the Solr server.
- Copy a backup index to the data directory for each core. Remember to use a backup created from the same Alfresco instance.
- Restart the Solr server. Solr will start to track the indexes based on the state of the restored index.
<3>: 还原方式2:
数据目录中的index.properties中的内容: (例如: /usercard_shard1_replica3/data/index.properties)
index=index.20141110200201428
停止solr,将index=改为目标加载目录名称
即可,如果没有index.properties, 默认会加载 index 文件中的内容
参考1:http://stackoverflow.com/questions/7593184/change-solr-search-directory-to-my-custom-named-index-directory
You can also use the index.properties file to point to which directory Solr loads. It goes in the data directory and it has a index property pointing to the directory name to be used instead of 'index'
That's worked for me without issue. I believe this was done to help make replication work seamlessly.
参考2:http://blog.csdn.net/duck_genuine/article/details/6165314
对于下载文件内容,对应命令是filecontent。下载的文件显然需要放到临时目录中,这个临时目录和已有的索引目录(默认名字index)在同一数据目录下,只是命名为index.<时间戳>。下载完毕后,copy数据有两种情况:1)如果是完全下载,则不需要将临时目录中的文件copy到已有目录中,而是修改数据目录中的index.properties,标识索引目录为新生成的临时目录,而旧索引目录并不会被删除,可以手工删掉,当然,通常是不应该出现slave的Generation大于master的异常情况。2)通常就是把临时索引目录的文件copy到旧索引目录,copy时要把segments_N放到最后copy,避免copy中途出现异常造成数据被毁。
--------------------------------------------
没有Solr数据备份时,且 全部都down掉且recovery不过来时, 挑一个数据较全的主Shard节点,然后把这个shard节点的其它副本从SolrCloud通过curl方式去掉,然后再通过curl方式加上,SolrCloud会自动将这个Shard的主节点数据同步到刚才加上的从节点
相关推荐
solr cloud6.x.x 都可以用,solr的拼音分词
华为 fusioninsight solrtest solrcloud java客户端测试
kafka-solr-sink连接器这是基于Java的简单Solr Sink Kafka连接器,它从kafka主题获取纯json数据并推送到solr,同时支持solr cloud和独立模式。 注意:仅支持JSON数据,对于值转换器,请保留schemas.enable=false 。...
Solr-SQL为Solr Cloud提供了SQL接口,开发人员可以通过JDBC协议在Solr Cloud上运行。同时,solr-sql是用于solr的Apache Calcite(见 http://calcite.apache.org)适配器。solr-sql 是用 Scala 编写的,它可以生成像 ...
一个用于启动/停止Apache Solr Cloud的Maven插件。 安装 在Maven Central上可用的发行版 < groupId>io.github.borisnaguet < artifactId>solr-maven-plugin < version>0.5.0 Sonatype信息库中的快照(每次推...
1. Solr Cloud 2. 函数查询 3. 地理位置查询 4. JSON Facet 章节四:Solr高级(下) 1. 深度分页 2. Solr Join查询 3. 相关度排序 4.Solr缓存 5.Spring Data Solr 章节五:综合案例,电商网站搜索页面 1.关键字搜索...
windows环境 1.伪集群,将压缩包解压后放在以下目录中(任意盘,此处是E:) :E:\solr\solr-5.3.0-cloud 2.修改 solr_home1\bin\solr.in.cmd中的SOLR_HOST 3.运行build脚本
solr-zkutil CLI实用程序关于solr-zkutil是使用Python编写的易于使用的工具,可让您快速了解有关Solr ZooKeeper集群的信息。 如果您生活在一个空虚的环境中,其中solr主机经常更改,或者您需要跟踪许多不同的solr...
13 Scaling Solr / Solr Cloud 14 Multi-lingual search 15 Complex data operations 16 Mastering Relevancy APPENDIXES A Pulling down the Solr code B Language-specific field type configurations – ...
solr.warsolr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包...
Tomcat上部署SolrCloud.txt
maxShardsPerNode 每个Solr服务器节点上最大Shard数量 createNodeSet 还不明白什么用 collection.configName 配置的名称(必须已存储在ZooKeeper)使用这个新的集合。如果没有提供创建操作将默认配置名称的集合名称...
Solr 备份和上传到 aws s3 存储桶安装所需的依赖项pip 安装需求.txt 设置变量sesese3solr_url = "" # solr url " " backup_dir = "" # solr 备份目录 "/home/solr/backup" s3_upload = False # 如果要上传到 s3 存储...
solr
solr cloud模块架构 .
solr
solr文档
solr manageschema 配置文件,增加了分词器后的配置文件
solr技术文solr技术文solr技术文
Solr定时更新Solr定时更新