---
title: 上传配置至ZooKeeper集群
description: 1. 请提前启动ZooKeeper集群。
url: "https://www.hikunpeng.com/document/detail/zh/kunpengbds/ecosystemEnable/Solr/kunpengsolr_04_0016.html"
---

# 上传配置至ZooKeeper集群

1. 请提前启动ZooKeeper集群。
2. 在Datanode1上传。
  1 java -classpath .:/usr/local/solrCloud/tomcat/webapps/solr/WEB-INF/lib/* org.apache.solr.cloud.ZkCLI -cmd upconfig -zkhost agent1:2181,agent2:2181,agent3:2181 -confdir /usr/local/solrCloud/solrConfig/ -confname solrconfig

3. 查看配置是否成功上传至ZooKeeper。
  1 2 3 cd /usr/local/zookeeper/bin ./zkCli.sh -server agent1:2181 ls /configs/solrconfig

4. 退出连接。
  1 quit
