zookeeper中上传文件的内容 作为路径的值
安装Solr参考wget http://archive.apache.org/dist/lucene/solr/8.1.1/solr-8.1.1.tgztar -zxvf solr-8.1.1.tgz -C /usr/local[root@hadoop2 cloud-scripts]# ./zkcli.sh -zkhost 172.31.234.62:2181, 171.31.234.76:218
·
安装Solr
# 目录 /root/solr
wget http://archive.apache.org/dist/lucene/solr/8.1.1/solr-8.1.1.tgz
tar -zxvf solr-8.1.1.tgz
[root@hadoop2 cloud-scripts]# pwd
/root/solr/solr-8.1.1/server/scripts/cloud-scripts
上传文件中的数据
[root@hadoop2 cloud-scripts]# pwd
/root/solr/solr-8.1.1/server/scripts/cloud-scripts
# 上传配置文件
./zkcli.sh -zkhost 172.31.234.62:2181,171.31.234.76:2182,172.31.234.97:2183 -cmd upconfig -confname myconf -confdir /root/solr/solr-8.1.1/server/solr/configsets/_default/conf/
./zkcli.sh -zkhost 172.31.234.62:2181,171.31.234.76:2182,172.31.234.97:2183 -cmd upconfig -confname myconf -confdir /root/solr/solr-8.1.1/server/solr/configsets/sample_techproducts_configs/conf/
上传文件
./zkcli.sh -zkhost 172.31.234.62:2181,171.31.234.76:2182,172.31.234.97:2183 -cmd putfile /test_file.txt test.txt
更多推荐
已为社区贡献2条内容
所有评论(0)