当前位置:网站首页>Solrcloud related commands
Solrcloud related commands
2022-07-06 17:29:00 【geekqian】
Reference link : https://blog.csdn.net/qq_37936542/article/details/83113083
Make a note of , Memo
zookeeper Query configuration in
- Get into
zookeeper
/bin Catalog , function./zkCli.sh
Connect to the client .cd /work/install/zookeeper/zookeeper-3.4.6/bin/ && ./zkCli.sh
- Use
ls /
View all directories under the root directory , Usels /configs
View all configuration directories , And so on, you can view the list of all configuration files - Use
get /configs/xxx/data-config.xml
Get the file content and display it on the terminal
Upload the configuration
- Get into
solr
This path under the directory/server/scripts/cloud-scripts/
:cd /work/install/solr/solr-7.5.0/server/scripts/cloud-scripts/
- Use the following command to upload
./zkcli.sh -zkhost xx.x.x.17:2181,x.x.x.xx:2181,xx.x.x.23:2181 -cmd upconfig -confdir /work/install/solr/solr-7.5.0/server/solr/configsets/xxx_xxx_configs/conf -confname xxx_xxx_configs
explain :-zkhost
The following oneszookeeper
Cluster nodes ;-confdir
Followed by the directory where the configuration file is located ;-confname
Followed by the name of the uploaded directory , The name is in the partition of this file :vim /work/install/solr/solr-data/data/xxx_xxx_collection_shard1_replica_n1/core.properties
amongcollection.configName
Namely .
Unverified commands
Reference link : https://cloud.tencent.com/developer/article/1403896
Modify a configuration file separately :./zkcli.sh -zkhost node96.xdata:2181,node97.xdata:2181,node98.xdata:2181 -cmd putfile /infra-solr/configs/ranger_audits/solr-data-config.xml /usr/lib/ambari-infra-solr/example/example-DIH/solr/solr/conf/solr-data-config.xml
Delete the configuration directory ./zkcli.sh -zkhost node96.xdata:2181,node97.xdata:2181,node98.xdata:2181 -cmd clear /infra-solr/configs/collection1
Delete a single profile ./zkcli.sh -zkhost node96.xdata:2181,node97.xdata:2181,node98.xdata:2181 -cmd delete /infra-solr/configs/ranger_audits/solr-data-config.xml
边栏推荐
猜你喜欢
C# WinForm系列-Button简单使用
How does wechat prevent withdrawal come true?
C version selenium operation chrome full screen mode display (F11)
Flink 解析(四):恢复机制
Flink源码解读(三):ExecutionGraph源码解读
案例:检查空字段【注解+反射+自定义异常】
Logical operation instruction
轻量级计划服务工具研发与实践
Serial serialold parnew of JVM garbage collector
07个人研发的产品及推广-人力资源信息管理系统
随机推荐
Programmer orientation problem solving methodology
暑假刷题嗷嗷嗷嗷
Data transfer instruction
Interview collection library
关于Selenium启动Chrome浏览器闪退问题
Redis快速入门
PostgreSQL 14.2, 13.6, 12.10, 11.15 and 10.20 releases
[ciscn 2021 South China]rsa writeup
02个人研发的产品及推广-短信平台
JVM垃圾回收概述
Display picture of DataGridView cell in C WinForm
DataGridView scroll bar positioning in C WinForm
關於Stream和Map的巧用
Detailed explanation of data types of MySQL columns
当前系统缺少NTFS格式转换器(convert.exe)
Based on infragistics Document. Excel export table class
Integrated development management platform
TCP's three handshakes and four waves
MySQL报错解决
[reverse intermediate] eager to try