manual cluster join

The following steps are similar to joining a cluster node using the GUI. That means the data is copied over the network, and the search index is re-created (which may take some time):


  • Start Master instance or make sure that desired master instance is running


  • Copy the files crx-quickstart-2.2.*.jar and to the desired directory (usually on a different machine from the master, unless you are just testing).
  • Unpack the JAR file:

            java -Xmx512m -jar crx-quickstart-2.2.*.jar -unpack

  •  Copy the files repository.xml and from the master:

           cp  <master>/crx-quickstart/repository/repository.xml <slave>/crx-quickstart/repository/

           cp  <master>/crx-quickstart/repository/ <slave>crx-quickstart/repository/

  •  If this new slave is on a different machine from the master, append the IP address of the master to the file of the slave:

            echo "addresses=x.x.x.x" >> crx-quickstart/repository/

            where x.x.x.x is replaced by the correct address. At the master, the IP address of the slave should be added to the file as well.

  •  Create the directory repository under repository in slave

          mkdir  <slave>/crx-quickstart/repository/repository

  •  Copy the namespaces directory from the master at crxquickstart/

            cp <master>/repository/repository/namespaces <slave> /crx-quickstart/repository/repository/

  •  Start the instance:
  •  java -Xmx512m -jar crx-quickstart-2.2.*.jar