开发者社区> 问答> 正文

requestGet for canal config error: canal.propertie

我把配置替换成IP,日志提示:

[root@canal-server-stable-1 bin]# tail -f /home/canal/logs/canal/canal.log 2021-05-26 09:09:45.519 [main] INFO com.alibaba.otter.canal.deployer.CanalLauncher - ## set default uncaught exception handler 2021-05-26 09:09:45.549 [main] INFO com.alibaba.otter.canal.deployer.CanalLauncher - ## load canal configurations 2021-05-26 09:09:45.934 [main] ERROR com.alibaba.otter.canal.deployer.CanalLauncher - ## Something goes wrong when starting up the canal Server: com.alibaba.otter.canal.common.CanalException: load manager config failed. Caused by: com.alibaba.otter.canal.common.CanalException: requestGet for canal config error: canal.properties config is empty

这是我的Kubernetes ConfigMap配置:

{ "config.sh": "cat > /home/canal/conf/canal.properties <<- EOF # register ip # ${HOSTNAME} 为podname,canal-server-discovery-svc-stable为svc名称 # StatefulSet类型pod名称是固定的,k8s集群内pod域名规则为pod_name.svc_name.namespace.svc.cluster.local # canal.register.ip = ${HOSTNAME}.canal-server-discovery-svc-stable.hades-pro.svc.cluster.local canal.register.ip = 10.244.5.5

	# canal admin config
	canal.admin.manager = canal-admin-stable:8089
	canal.admin.port = 11110
	canal.admin.user = admin
	canal.admin.passwd = 4ACFE3202A5FF5CF467898FC58AAB1D615029441
	# admin auto register
	canal.admin.register.auto = true
	canal.admin.register.cluster = online
	EOF
	sh /home/canal/bin/restart.sh
	"

}

原提问者GitHub用户jiangxiaoqiang

展开
收起
山海行 2023-04-27 16:44:41 277 0
1 条回答
写回答
取消 提交回答
  • canal-admin服务端机群新增配置模版

    原回答者GitHub用户jiangxiaoqiang

    2023-04-27 22:39:54
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载