Liferay clustering in the same machine
Is there a way to give different Cluster ids to Jackrabbit when running two nodes in the same machine?
Those two nodes do have two home directories, right? So you should have two directories where the Jackrabbit configuration is stored (repository.xml if I recall correctly), thus you can enter the relevant ID in every single file.
If you don't have that already, I'd suggest to separate the directories for both servers.
By the way: Configuring a cluster is typically either done for stability (e.g. survive a server going down) or load distribution. In your case neither would give you benefit - what's your usecase for setting up a cluster on the same machine? Testing? Demo?