我正在使用 JBoss Fuse 6.2 并尝试创建具有 3 台服务器的整体。服务器是 3 台物理服务器,运行 Ubuntu 14.04.3 LTS,并安装了 JDK 1.8.0_60。
我将etc/system.properties中的根容器分别重命名为root1、root2和root3,并确保所有服务器上的etc/user.properties中没有配置用户。
然后我在 server1 上启动 fusion 并运行命令
fabric:create --new-user admin --new-user-password admin --new-user-role Administrator --zookeeper-password admin --resolver manualip --manual-ip xxx.xxx.xxx.xxx --wait-for-provisioning
xxx.xxx.xxx.xxx 是 server1 的 IP
然后我在 server2 和 server3 上启动 fusion 并运行以下命令:
fabric:join --zookeeper-password admin server1:2181
一切正常,server1 上 container-list
的输出为
[id] [version] [type] [connected] [profiles] [provision status]
root1* 1.0 karaf yes fabric success
fabric-ensemble-0000-1
jboss-fuse-full
root2 1.0 karaf yes fabric success
root3 1.0 karaf yes fabric success
然后,当我运行命令将 root2 和 root3 添加到集合中时:
fabric:ensemble-add root2 root3
我收到此错误:
执行命令时出错:java.lang.SecurityException:操作的角色/凭据不足
我在 JBoss Fuse 问题跟踪器中发现了类似此问题的内容:ENTESB-3530
有人对这项工作有什么建议吗?
最佳答案
尽量不要在 fabric:create
命令中使用 --new-user-role Administrator
参数。现在 Fuse 6.2 中的角色名称似乎有所不同。让 Fuse 结构分配默认结构。
查看fabric:create --help
所说的内容:
--new-user-role
The role of the new user. The option refers to karaf user (ssh, http, jmx).
(defaults to _g_:admin)
关于java - 在 JBoss Fuse 6.2 中使用 ensemble-add 时,角色/凭据不足,无法进行操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32202575/