没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
安装三个node的SolrCloud集群,配置3个zookeeper样例
SolrCloud 服务器: s1.solr.com,s2.solr.com,s3.solr.com
Zookeeper 服务器: z1.com,z2.com,z3.com
默认安装目录 /home/myuser
首先启动zookeeper集群
按照顺序启动 z1.com,z2.com,z3.com
1.从 http://hadoop.apache.org/zookeeper/releases.html 下载zookeeper
2.解压缩zookeeper到zookeeper目录 tar -xf -C /home/myuser/zookeeper/
3.编辑zookeeper配置文件
vi /home/myuser/zookeeper/conf/zoo.cfg and put something similar to
# The number of milliseconds of each tick tickTime=2000
# The number of ticks that the initial synchronization phase can take initLimit=10
# The number of ticks that can pass between # sending a request and getting an acknowledgement syncLimit=5
# the directory where the snapshot is stored. # Choose appropriately for your environment dataDir=/home/myuser/zookeeper/data/
# the port at which the clients will connect clientPort=2181
# the directory where transaction log is stored. # this parameter provides dedicated log device for ZooKeeper dataLogDir=/home/myuser/zookeeper/log/
# ZooKeeper server and its port no. # ZooKeeper ensemble should know about every other machine in the ensemble # specify server id by creating 'myid' file in the dataDir # use hostname instead of IP address for convenient maintenance server.1=z1.com:2888:3888 server.2=z2.com:2888:3888 server.3=z3.com:2888:3888
SolrCloud 服务器: s1.solr.com,s2.solr.com,s3.solr.com
Zookeeper 服务器: z1.com,z2.com,z3.com
默认安装目录 /home/myuser
首先启动zookeeper集群
按照顺序启动 z1.com,z2.com,z3.com
1.从 http://hadoop.apache.org/zookeeper/releases.html 下载zookeeper
2.解压缩zookeeper到zookeeper目录 tar -xf -C /home/myuser/zookeeper/
3.编辑zookeeper配置文件
vi /home/myuser/zookeeper/conf/zoo.cfg and put something similar to
# The number of milliseconds of each tick tickTime=2000
# The number of ticks that the initial synchronization phase can take initLimit=10
# The number of ticks that can pass between # sending a request and getting an acknowledgement syncLimit=5
# the directory where the snapshot is stored. # Choose appropriately for your environment dataDir=/home/myuser/zookeeper/data/
# the port at which the clients will connect clientPort=2181
# the directory where transaction log is stored. # this parameter provides dedicated log device for ZooKeeper dataLogDir=/home/myuser/zookeeper/log/
# ZooKeeper server and its port no. # ZooKeeper ensemble should know about every other machine in the ensemble # specify server id by creating 'myid' file in the dataDir # use hostname instead of IP address for convenient maintenance server.1=z1.com:2888:3888 server.2=z2.com:2888:3888 server.3=z3.com:2888:3888
资源评论
princemortor
- 粉丝: 13
- 资源: 266
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功