cluster glassfish falha no início

3

Eu tenho um problema ao tentar configurar um cluster.

Vou descrever a configuração detalhada (já que não consegui encontrar um exemplo de cluster feito em dois PCs diferentes, todos eles foram feitos em um host local):

3 máquinas virtuais do Ubuntu: 1 administrador de domínio e 2 instâncias.

Eu instalei (descompactou) 1 servidor glassfish em cada instância e os iniciei. Então eu criei um nó ssh para cada um no administrador do domínio (também um glassfish)

Então eu tenho

node1 192.168.193.134 SSH node
node2 192.168.193.133 SSH node

ambos conectados com sucesso.

Finalmente eu criei o cluster através da linha de comando como este

:~$ asadmin create-cluster clusterm
:~$ asadmin create-instance --node node1 --cluster clusterm inst1
:~$ asadmin create-instance --node node2 --cluster clusterm inst2

mas quando tentei iniciar o cluster ( :~$ asadmin start-cluster clusterm ), ele falhou ao enviar este erro:

    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.

Eu gostaria de me ajudar a descobrir por que isso acontece (ou o que fiz de errado).

    
por Marco Aviles 20.05.2013 / 20:05

2 respostas

0

Você deve executar

asadmin start-local-instance --node node2 --sync normal i1

você pode parar a instância e executar novamente o cluster.

    
por 18.12.2014 / 16:48
0

Eu sei que é um post antigo, mas eu tive o mesmo problema e passei algum tempo nisso.

No meu caso eu tive que modificar o arquivo /path/to/node/agent/config/das.properties para cada nó.

Alterar valores deve fazer o truque

agent.das.port=das_port
agent.das.host=das_hostname
    
por 12.09.2017 / 14:39