Buscar este blog

martes, 23 de junio de 2015

JBoss - Unable to authenticate cluster user: HORNETQ.CLUSTER.ADMIN.USER

Environment:
  • JBoss EAP 6.2.0
  • Domain configuration
  • One Domain Controller and multiple Host Controllers
Just to remind, in domain mode with cluster configuration you usually have the following structure:
Domain Controller. 
This node is the centralized administrion hub of configuration for the rest of the nodes.
In this node you configure host.xml (copied from host-master.xml) and domain.xml.
In domain.xml is where all servers and profiles are configured.

Host Controllers.
There would be multiple host controllers, one per node. These are the worker nodes of the domain.
In this node you configure only host.xml (copied from host-slave.xml) and point it to the domain controller IP.


So, you get this error in profile full-ha, which is the one with de cluster configuration (remember domain is not cluster), because HornetQ needs to share configuration across the rest of the nodes.

HORNETQ.CLUSTER.ADMIN.USER is the default user used in the cluster configuration.

Solution: 
Modify  hornetq-server tag, inside profile full-ha, in domain.xml of Domain Controller and add a user and password to it.

Defaults values:
<hornetq-server>
 <cluster-password>${jboss.messaging.cluster.password:CHANGE ME!!}</cluster-password>
 <persistence-enabled>true</persistence-enabled>
 <journal-type>NIO</journal-type>
 <journal-min-files>2</journal-min-files>
 
 (...)
</hornetq-server>

Change for this:
<hornetq-server>
 <cluster-user>adminCluster</cluster-user>
 <cluster-password>supersecretpass</cluster-password>
 <persistence-enabled>true</persistence-enabled>
 <journal-type>NIO</journal-type>
 <journal-min-files>2</journal-min-files>
 
 (...)
</hornetq-server>

No hay comentarios:

Publicar un comentario