Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to upload zookeeper after solrCloud single profile update

2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

What this article shares with you is about how to upload zookeeper after the update of a single solrCloud configuration file. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

If the solrcloud configuration file is updated, how should the update be uploaded to zookeeper

one。 Use the zkCli.sh command of zookeeper to connect to zookeeper

Go to the bin directory of zookeeper and execute the following command:

[root@elk3 bin] #. / zkCli.sh

Connecting to localhost:2181

2018-01-09 10 main:Environment@100 21V 57985 [myid:]-INFO [main:Environment@100]-Client environment:zookeeper.version=3.4.10-39d3a4f269333c922ed3db283be479f9deacaa0f, built on 03 Greater 23 Greater 10:13 GMT

2018-01-09 10 main:Environment@100 21 main:Environment@100 57992 [myid:]-INFO [main:Environment@100]-Client environment:host.name=elk3

2018-01-09 10 main:Environment@100 21 main:Environment@100 57993 [myid:]-INFO [main:Environment@100]-Client environment:java.version=1.8.0_111

2018-01-09 10 main:Environment@100 21 main:Environment@100 57997 [myid:]-INFO [main:Environment@100]-Client environment:java.vendor=Oracle Corporation

2018-01-09 10 main:Environment@100 21 main:Environment@100 57997 [myid:]-INFO [main:Environment@100]-Client environment:java.home=/usr/local/jdk/jre

2018-01-09 10 main:Environment@100 21 main:Environment@100 57997 [myid:]-INFO [main:Environment@100]-Client environment:java.class.path=/data/solrcloud/zookeeper-3.4.10/bin/../build/classes:/data/solrcloud/zookeeper-3.4.10/bin/../build/lib/*.jar:/data/solrcloud/zookeeper-3.4.10/bin/../lib/slf4j-log4j12-1.6.1.jar:/data/solrcloud/zookeeper -3.4.10/bin/../lib/slf4j-api-1.6.1.jar:/data/solrcloud/zookeeper-3.4.10/bin/../lib/netty-3.10.5.Final.jar:/data/solrcloud/zookeeper-3.4.10/bin/../lib/log4j-1.2.16.jar:/data/solrcloud/zookeeper-3.4.10/bin/../lib/jline-0.9.94.jar:/data / solrcloud/zookeeper-3.4.10/bin/../zookeeper-3.4.10.jar:/data/solrcloud/zookeeper-3.4.10/bin/../src/java/lib/*.jar:/data/solrcloud/zookeeper-3.4.10/bin/../conf:

2018-01-09 10 main:Environment@100 21 main:Environment@100 57998 [myid:]-INFO [main:Environment@100]-Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

2018-01-09 10 main:Environment@100 21 main:Environment@100 57998 [myid:]-INFO [main:Environment@100]-Client environment:java.io.tmpdir=/tmp

2018-01-09 10 main:Environment@100 21 main:Environment@100 57998 [myid:]-INFO [main:Environment@100]-Client environment:java.compiler=

2018-01-09 10 main:Environment@100 21 main:Environment@100 57998 [myid:]-INFO [main:Environment@100]-Client environment:os.name=Linux

2018-01-09 10 main:Environment@100 21 main:Environment@100 57998 [myid:]-INFO [main:Environment@100]-Client environment:os.arch=amd64

2018-01-09 10 main:Environment@100 21lo 57999 [myid:]-INFO [main:Environment@100]-Client environment:os.version=2.6.32-504.el6.x86_64

2018-01-09 10 main:Environment@100 21V 57999 [myid:]-INFO [main:Environment@100]-Client environment:user.name=root

2018-01-09 10 main:Environment@100 21V 57999 [myid:]-INFO [main:Environment@100]-Client environment:user.home=/root

2018-01-09 10 main:Environment@100 21V 58000 [myid:]-INFO [main:Environment@100]-Client environment:user.dir=/data/solrcloud/zookeeper-3.4.10/bin

2018-01-09 10 main:ZooKeeper@438 21 main:ZooKeeper@438 58002 [myid:]-INFO [main:ZooKeeper@438]-Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@67424e82

Welcome to ZooKeeper!

2018-01-09 10 main-SendThread 21V 58048 [myid:]-INFO [main-SendThread (localhost:2181): ClientCnxn$SendThread@1032]-Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)

JLine support is enabled

2018-01-09 10 main-SendThread 21 localhost:2181 58190 [myid:]-INFO [main-SendThread (localhost:2181): ClientCnxn$SendThread@876]-Socket connection established to localhost/127.0.0.1:2181, initiating session

2018-01-09 10 main-SendThread 21V 58205 [myid:]-INFO [main-SendThread (localhost:2181): ClientCnxn$SendThread@1299]-Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x1608cd4eb18007e, negotiated timeout = 30000

WATCHER::

WatchedEvent state:SyncConnected type:None path:null

[zk: localhost:2181 (CONNECTED) 0]

two。 View the configuration file:

[zk: localhost:2181 (CONNECTED) 1] ls / configs

[topic, chenfeng]

[zk: localhost:2181 (CONNECTED) 2] ls / configs/topic

[currency.xml, protwords.txt, managed-schema, solrconfig.xml, synonyms.txt, elevate.xml, stopwords.txt, params.json, lang]

[zk: localhost:2181 (CONNECTED) 3] ls

three。 Delete the configuration files under the corresponding profile group directory. The delete file command can be delete or rmr.

[zk: localhost:2181 (CONNECTED) 4] delete / configs/topic/managed-schema (Note: rmr / configs/topic/managed-schema is also available)

[zk: localhost:2181 (CONNECTED) 5]

four。 Command to upload a single file:

Solr/server/scripts/cloud-scripts/zkcli.sh-zkhost 192.168.0.1 cmd putfile 2281192.168.0.2 cmd putfile / configs/chenfeng/managed-schema / data/solrcloud/solr/server/solr/configsets/basic_configs/conf/managed-schema

Upload configuration file directory method:

Solr/server/scripts/cloud-scripts/zkcli.sh-zkhost 192.168.16.65 confdir 2281192.168.184.120 cmd upconfig-confdir / data/solrcloud/solr/server/solr/configsets/basic_configs/conf-confname topic

Note here that confname should be written as the name of the solr collection, otherwise the corresponding configuration file will not be found in the interface

Connect to zookeeper to view the uploaded file again:

[zk: localhost:2181 (CONNECTED) 3] ls / configs/topic

[currency.xml, protwords.txt, managed-schema, solrconfig.xml, synonyms.txt, elevate.xml, stopwords.txt, params.json, lang]

[zk: localhost:2181 (CONNECTED) 4]

[zk: localhost:2181 (CONNECTED) 4]

[zk: localhost:2181 (CONNECTED) 4] get / configs/topic/managed-schema

KvUuid

KvTitle

five。 Restart the reload collection or restart solrcloud:

Http://192.168.184.120:8080/solr/admin/collections?action=RELOAD&name=topic

The above is how to upload zookeeper after the update of a single solrCloud configuration file. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report