Announcement

Collapse
No announcement yet.

voltdb creation error (2 Nodes Cluster, 6.6)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • voltdb creation error (2 Nodes Cluster, 6.6)

    Hi,
    I need some assistance to tackle a startup error in a two cluster environment.
    I'm receiving the following error during cluster startup:

    # My deployment.xml
    Code:
    <?xml version="1.0"?>
    <deployment>
        <cluster hostcount="2" kfactor="1"/>
        <httpd enabled="true">
            <jsonapi enabled="true"/>
        </httpd>
    </deployment>
    # volt01 (leader host)
    Code:
    [centos@volt01 volt]$ bin/voltdb create -d deployment.xml --host=volt01
    
    Build: 6.6 voltdb-6.6-0-g06834b8 Enterprise Edition
    Initializing VoltDB...
    Connecting to VoltDB cluster as the leader...
    Host id of this node is: 0
    
    WARN: Received remote hangup from foreign host volt02    <-- After Starting voltdb at volt02 server
    WARN: Host 1 failed. Cluster remains operational.
    FATAL: Unable to write topology to ZK, dying
    FATAL: Fatal exception
    java.lang.IllegalArgumentException
    	at com.google_voltpatches.common.base.Preconditions.checkArgument(Preconditions.java:108)
    	at org.voltdb.RealVoltDB.registerClusterConfig(RealVoltDB.java:1612)
    	at org.voltdb.RealVoltDB.getTopology(RealVoltDB.java:1574)
    	at org.voltdb.RealVoltDB.initialize(RealVoltDB.java:894)
    	at org.voltdb.VoltDB.initialize(VoltDB.java:1230)
    	at org.voltdb.VoltDB.main(VoltDB.java:1214)
    VoltDB has encountered an unrecoverable error and is exiting.
    The log may contain additional information.
    # volt02
    Code:
    [centos@volt02 volt]$ bin/voltdb create --host=volt01
    
    Build: 6.6 voltdb-6.6-0-g06834b8 Enterprise Edition
    Initializing VoltDB...
    Host id of this node is: 1
    FATAL: Expected to find 1 hosts in cluster at startup but found 2.  Terminating this host.
    VoltDB has encountered an unrecoverable error and is exiting.
    The log may contain additional information
    Thank You.

  • #2
    Hi,

    please start volt01 (leader node) before you start the leader node, or provide the same deployment file if you want to start the volt02 first

    alternative you may issue the init command on both nodes

    Code:
    init -C deployment.xml
    using the -f flag you are re-initializing a directory

    from that point on

    you can issue the following command on both nodes

    Code:
    voltdb start -c 2 -H volt01,volt02
    Ciao
    Stefano

    Comment


    • #3
      Thank you very much :)
      I solved this problem for your help.

      Comment

      Working...
      X