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 小时前
Docker Volume -- 对照总结及综合实战案例操作演示
运维·docker·容器
dingdingfish4 小时前
TLPI 第52章 读书笔记:POSIX Message Queues
linux·mq·ipc·posix·message·tlpi
wacsii4 小时前
【Linux进程(五)】进程控制全解析:从创建、终止、等待到程序替换
linux·服务器
七夜zippoe5 小时前
Nexent Linux 部署:用 deploy.sh
linux·服务器·docker·部署·ai智能体·nexent
去码头整点薯条985 小时前
NFS服务器
linux·运维·服务器
蜗牛一步步往上爬6 小时前
第一章 初识Linux shell
linux·运维·服务器
拂拉氏6 小时前
【知识讲解】 Linux线程中锁的认识
linux·互斥锁
无足鸟ICT6 小时前
【RHCA+】系统调优配置文件
linux·服务器
时间的拾荒人8 小时前
Shell 脚本核心语法详解(下篇):流程控制、函数、重定向与文件包含
linux·运维·服务器·bash·脚本编程