linux安全更新zookeeper docker

最近项目在更新zookeeper并且要做安全验证,zookeeper部署在一台机器上,项目使用docker部署在另一台服务器上

然后Jenkins Build的时候不报错,但是服务器上显示有错,错误如下:

main-SendThread(172.16.30.194:2386) trace_id- WARN ClientCnxn:1163 - SASL configuration failed. Will continue connection to Zookeeper server without SASL authentication, if Zookeeper s

erver allows it.

javax.security.auth.login.LoginException: Zookeeper client cannot authenticate using the 'Client' section of the supplied JAAS configuration: '/root/dubbo/suchen/farm-web/classes/zookeeper_jaas_test.conf' be

cause of a RuntimeException: java.lang.SecurityException: java.io.IOException: /root/dubbo/suchen/farm-web/classes/zookeeper_jaas_test.conf (No such file or directory)

查阅许多资料都说是权限问题或者确认文件本身是否存在

按照说加上权限并且确定文件存在后发现还是报同样的错误

绝对路径和相对路径都试过了还是没用,进入容器里面查看,然后使用绑定的本地目录还是同样的错误,最后在大神的指导下,进入容器里面查看,直接使用容器里面的目录和文件,终于成功。

注:这类操作一定使用容器里面的目录

相关推荐
未济2 天前
linux 配置环境变量
linux
傲世仙尊2 天前
目录即文件-Ext文件系统收尾篇
linux·c语言
分布式存储与RustFS2 天前
MinIO 官方 Docker 镜像被移除:依赖它的项目该怎么办
docker·云原生·devops·对象存储·minio·分布式存储
_艾伦 耶格尔.2 天前
进程间通信
linux
Liuqy-052 天前
Linux IO编程——静态库、动态库
linux
彧azz2 天前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题
linux·redis·笔记·学习·面试
玉&心2 天前
通过Arthas在线诊断K8S中的内存及JVM等使用情况
docker·k8s·arthas
xing-xing2 天前
Docker容器中Nginx站点根目录网页配置访问
nginx·docker
-梅2 天前
linux(8) 软硬链接
linux·运维·服务器
guo_wen_qiang2 天前
上传本地镜像到harbor中
docker·容器·持续部署