DataSophon更换zookeeper版本
平台默认集成的zookeeper版本为:zookeeper-3.5.10.tar.gz
更换为:zookeeper-3.8.0.tar.gz
下载地址:https://archive.apache.org/dist/zookeeper/zookeeper-3.8.0/apache-zookeeper-3.8.0-bin.tar.gz
修改服务service_ddl.json 配置
{
"name": "ZOOKEEPER",
"label": "ZooKeeper",
"description": "分布式协调系统",
"version": "3.8.0", # 修改版本
"sortNum": 3,
"dependencies":[],
"packageName": "zookeeper-3.8.0.tar.gz", # 修改安装包
"decompressPackageName": "zookeeper-3.8.0", # 解压后的名称
.........
}
重启 datasophon-manager的api
cd /opt/datasophon/datasophon-manager-1.2.1
./bin/datasophon-api.sh restart api
安装zookeeper
修改配置
新增两个自定义配置,启用zookeeper3.8的Prometheus监控,否则平台监控会报服务节点故障。具体参数:
metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider
metricsProvider.httpPort=2191