真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

solrCloud單個(gè)配置文件更新后該如何上傳zookeeper-創(chuàng)新互聯(lián)

本篇文章給大家分享的是有關(guān)solrCloud單個(gè)配置文件更新后該如何上傳zookeeper,小編覺(jué)得挺實(shí)用的,因此分享給大家學(xué)習(xí),希望大家閱讀完這篇文章后可以有所收獲,話不多說(shuō),跟著小編一起來(lái)看看吧。

站在用戶的角度思考問(wèn)題,與客戶深入溝通,找到嵊州網(wǎng)站設(shè)計(jì)與嵊州網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗(yàn),讓設(shè)計(jì)與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個(gè)性化、用戶體驗(yàn)好的作品,建站類型包括:成都網(wǎng)站設(shè)計(jì)、成都網(wǎng)站建設(shè)、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、主機(jī)域名、網(wǎng)絡(luò)空間、企業(yè)郵箱。業(yè)務(wù)覆蓋嵊州地區(qū)。

如果solrcloud的配置文件更新了,那么應(yīng)該怎么上傳更新到zookeeper
一.用zookeeper的zkCli.sh命令連接上zookeeper
進(jìn)入zookeeper的bin目錄,然后執(zhí)行如下命令:
[root@elk3 bin]# ./zkCli.sh
Connecting to localhost:2181
2018-01-09 10:21:57,985 [myid:] - INFO  [main:Environment@100] - Client environment:zookeeper.version=3.4.10-39d3a4f269333c922ed3db283be479f9deacaa0f, built on 03/23/2017 10:13 GMT
2018-01-09 10:21:57,992 [myid:] - INFO  [main:Environment@100] - Client environment:host.name=elk3
2018-01-09 10:21:57,993 [myid:] - INFO  [main:Environment@100] - Client environment:java.version=1.8.0_111
2018-01-09 10:21:57,997 [myid:] - INFO  [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2018-01-09 10:21:57,997 [myid:] - INFO  [main:Environment@100] - Client environment:java.home=/usr/local/jdk/jre
2018-01-09 10:21:57,997 [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:21:57,998 [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:21:57,998 [myid:] - INFO  [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2018-01-09 10:21:57,998 [myid:] - INFO  [main:Environment@100] - Client environment:java.compiler=
2018-01-09 10:21:57,998 [myid:] - INFO  [main:Environment@100] - Client environment:os.name=Linux
2018-01-09 10:21:57,998 [myid:] - INFO  [main:Environment@100] - Client environment:os.arch=amd64
2018-01-09 10:21:57,999 [myid:] - INFO  [main:Environment@100] - Client environment:os.version=2.6.32-504.el6.x86_64
2018-01-09 10:21:57,999 [myid:] - INFO  [main:Environment@100] - Client environment:user.name=root
2018-01-09 10:21:57,999 [myid:] - INFO  [main:Environment@100] - Client environment:user.home=/root
2018-01-09 10:21:58,000 [myid:] - INFO  [main:Environment@100] - Client environment:user.dir=/data/solrcloud/zookeeper-3.4.10/bin
2018-01-09 10:21:58,002 [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:21:58,048 [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:21:58,190 [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:21:58,205 [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] 


二.查看配置文件:
[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


三.刪除對(duì)應(yīng)配置文件組目錄下的配置文件,刪除文件命令可以用delete或rmr
[zk: localhost:2181(CONNECTED) 4] delete /configs/topic/managed-schema    (備注:也可以用rmr /configs/topic/managed-schema)
[zk: localhost:2181(CONNECTED) 5] 



四.上傳單個(gè)文件命令:
solr/server/scripts/cloud-scripts/zkcli.sh -zkhost 192.168.0.1:2281,192.168.0.2:2181  -cmd putfile /configs/chenfeng/managed-schema /data/solrcloud/solr/server/solr/configsets/basic_configs/conf/managed-schema

上傳配置文件目錄方法:
solr/server/scripts/cloud-scripts/zkcli.sh -zkhost 192.168.16.65:2281,192.168.184.120:2181  -cmd upconfig -confdir /data/solrcloud/solr/server/solr/configsets/basic_configs/conf -confname topic
這里注意,confname應(yīng)寫為solr集合的名字,否則會(huì)在界面里找不到對(duì)應(yīng)的配置文件


連接zookeeper再次查看上傳的文件:
[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
 
 
   
     
   

   
     
   

 

 
 
 
 

五. 重新reload集合或者重啟solrcloud:
http://192.168.184.120:8080/solr/admin/collections?action=RELOAD&name=topic

以上就是solrCloud單個(gè)配置文件更新后該如何上傳zookeeper,小編相信有部分知識(shí)點(diǎn)可能是我們?nèi)粘9ぷ鲿?huì)見(jiàn)到或用到的。希望你能通過(guò)這篇文章學(xué)到更多知識(shí)。更多詳情敬請(qǐng)關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道。


名稱欄目:solrCloud單個(gè)配置文件更新后該如何上傳zookeeper-創(chuàng)新互聯(lián)
標(biāo)題來(lái)源:http://weahome.cn/article/gpcio.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部