尝试设置群集时出现问题。
我将描述详细的configuration(因为我找不到在两个不同的PC上做的集群示例,它们都是在一个本地主机上完成的):
3个ubuntu虚拟机:1个域pipe理员和2个实例。
我在每个instanace上安装了(unziped)1 glassfish服务器并启动它们。 然后我为域pipe理员(也是glassfish)上的每一个创build了一个ssh节点,
所以我有
node1 192.168.193.134 SSH节点
node2 192.168.193.133 SSH节点
两者都成功连接。
最后我通过这样的命令行创build了集群
:〜$ asadmin create-cluster clusterm
:〜$ asadmin create-instance –node node1 –cluster clusterm inst1
:〜$ asadmin create-instance –node node2 –cluster clusterm inst2
但是当我试图启动群集( :~$ asadmin start-cluster clusterm )时,它失败了抛出这个错误:
remote failure: inst1: Could not start instance inst1 on node node1 (192.168.193.134). Command failed on node node1 (192.168.193.134): Previous synchronization failed at May 20, 2013 12:16:45 AM Will perform full synchronization. Removing all cached state for instance inst1. Command start-local-instance failed. CLI802 Synchronization failed for directory config, caused by: remote failure: Unknown server instance: inst1 To complete this operation run the following command locally on host 192.168.193.134 from the GlassFish install location /opt/glassfish3: bin/asadmin start-local-instance --node node1 --sync normal inst1 inst2: Could not start instance inst2 on node node2 (192.168.193.133). Command failed on node node2 (192.168.193.133): Previous synchronization failed at May 20, 2013 12:18:09 AM Will perform full synchronization. Removing all cached state for instance inst2. CLI802 Synchronization failed for directory config, caused by: remote failure: Unknown server instance: inst2 Command start-local-instance failed. To complete this operation run the following command locally on host 192.168.193.133 from the GlassFish install location /opt/glassfish3: bin/asadmin start-local-instance --node node2 --sync normal inst2 The command start-instance failed for: inst1 inst2 Command start-cluster failed.
我会感谢你帮助我弄清楚为什么会发生这种情况(或者我做错了什么)。
你必须跑步
asadmin start-local-instance --node node2 --sync normal i1
那么你可以停止实例并再次运行集群。
我知道这是一个旧的职位,但我有同样的问题,并花了一些时间。
在我的情况下,我不得不修改每个节点的/path/to/node/agent/config/das.properties文件。
改变价值观应该做的
agent.das.port=das_port agent.das.host=das_hostname