Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1516

JGroups not forming cluster between two linux machines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • None
    • 3.0.14
    • Compatibility/Configuration
    • Hide

      I am running two jgroup channel as below in two linux machines.

      Node 1 :-

      java -Djgroups.bind_addr=192.168.1.119 -cp ./jgroups-3.0.14.Final.jar:./$JAVA_HOME: SimpleChat

      public class SimpleChat extends ReceiverAdapter {
      JChannel channel;
      String user_name=System.getProperty("user.name", "n/a");
      final List<String> state=new LinkedList<String>();

      public void viewAccepted(View new_view)

      { System.out.println("This is from @ADMIN@ ** view: " + new_view); }

      channel=new JChannel();
      channel.setReceiver(this);
      channel.connect("ChatCluster");
      channel.getState(null, 10000);

      Node 2 :

      java -Djgroups.bind_addr=192.168.1.119 -cp ./jgroups-3.0.14.Final.jar:./$JAVA_HOME: SimpleChat1

      channel=new JChannel();
      channel.connect("ChatCluster");

      McastReceiverTest and McastSenderTest works fine also i tried -Djgroups.bind_port=8801 -Djava.net.preferIPv4Stack=true.But not forming cluster.

      in log :-

      dmin-PC-38687: dropped message 6 from root-57050 (sender not in table [admin-PC-38687, localhost-53705]), view=[admin-PC-38687|1] [admin-PC-38687, localhost-53705]

      Between linux and windows the sample woks fine.I used bind_addr for this.
      When new member join,viewAccepted() will be invoked.

      In linux also using this ,even though not forming cluster.(not invoking viewAccepted())

      Show
      I am running two jgroup channel as below in two linux machines. Node 1 :- java -Djgroups.bind_addr=192.168.1.119 -cp ./jgroups-3.0.14.Final.jar:./$JAVA_HOME: SimpleChat public class SimpleChat extends ReceiverAdapter { JChannel channel; String user_name=System.getProperty("user.name", "n/a"); final List<String> state=new LinkedList<String>(); public void viewAccepted(View new_view) { System.out.println("This is from @ADMIN@ ** view: " + new_view); } channel=new JChannel(); channel.setReceiver(this); channel.connect("ChatCluster"); channel.getState(null, 10000); Node 2 : java -Djgroups.bind_addr=192.168.1.119 -cp ./jgroups-3.0.14.Final.jar:./$JAVA_HOME: SimpleChat1 channel=new JChannel(); channel.connect("ChatCluster"); McastReceiverTest and McastSenderTest works fine also i tried -Djgroups.bind_port=8801 -Djava.net.preferIPv4Stack=true.But not forming cluster. in log :- dmin-PC-38687: dropped message 6 from root-57050 (sender not in table [admin-PC-38687, localhost-53705] ), view= [admin-PC-38687|1] [admin-PC-38687, localhost-53705] Between linux and windows the sample woks fine.I used bind_addr for this. When new member join,viewAccepted() will be invoked. In linux also using this ,even though not forming cluster.(not invoking viewAccepted())

    Description

      Between linux and windows the sample woks fine.
      I used bind_addr for this also firwall disabled.
      When new member join,viewAccepted() will be invoked.

      In between two linux ,am also using this configuration ,but not forming cluster.(not invoking viewAccepted()).Here also firwall disabled.
      McastReceiverTest and McastSenderTest works fine also i tried -Djgroups.bind_port=8801 -Djava.net.preferIPv4Stack=true.But not forming cluster.

      I am running two jgroup channel as below in two linux machines.

      Node 1 :-

      java -Djgroups.bind_addr=192.168.1.119 -cp ./jgroups-3.0.14.Final.jar:./$JAVA_HOME: SimpleChat

      public class SimpleChat extends ReceiverAdapter {
      JChannel channel;
      String user_name=System.getProperty("user.name", "n/a");
      final List<String> state=new LinkedList<String>();

      public void viewAccepted(View new_view)

      { System.out.println("This is from @ADMIN@ ** view: " + new_view); }

      channel=new JChannel();
      channel.setReceiver(this);
      channel.connect("ChatCluster");
      channel.getState(null, 10000);

      Node 2 :-

      java -Djgroups.bind_addr=192.168.1.119 -cp ./jgroups-3.0.14.Final.jar:./$JAVA_HOME: SimpleChat1

      channel=new JChannel();
      channel.connect("ChatCluster");

      in log :-

      admin-PC-38687: dropped message 6 from root-57050 (sender not in table [admin-PC-38687, localhost-53705]), view=[admin-PC-38687|1] [admin-PC-38687, localhost-53705]

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            bala4jgroups Balamurali L (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: