Hi Olivier, thank you a lot for your effort and replies.
Until last week I used an older version from your git. After your first answer I updatet it. The options "-Dapgas.my.ip=" and "-Dapgas.my.master=" fixed my problems with the ResilientHelloWorld example. It works with two different mashines. After this simple test I tried something to let the first place wait for additional manually started places. Your mail today helps me a lot. The option "apgas.impl.NoLauncher" does exactly what you described. It works local and at the cluster, that I use. My "real" program runs very good with the NoLauncher, too. Currently the ssh launcher does not work for me. I created a hostfile with one node. Then I started the program with: java -cp .:../lib/hazelcast-3.5.2.jar -Dapgas.launcher=apgas.impl.SshLauncher -Dapgas.hostfile=hostfile -Dapgas.places=2 examples.ResilientHelloWorld The ssh connection to the node in the hostfile is successfull, but then there is an error: Error: Could not find or load main class apgas.GlobalRuntime Connection to xxx closed. Can you help me there? Many greetings Jonas 2015-09-28 16:55 GMT+02:00 Olivier Tardieu <tard...@us.ibm.com>: > Jonas, > > I pushed new launchers to git. > > I added a new ssh launcher. > java -Dapgas.launcher=apgas.impl.SshLauncher > -Dapgas.hostfile=/home/tardieu/hostfile -Dapgas.places=4 ... > It uses ssh to run on remote nodes. Place 0 always run on localhost. The > hostfile should contain the hosts for the remaining places. 1 per line. > > I added a new dummy launcher. > java -Dapgas.launcher=apgas.impl.NoLauncher -Dapgas.places=4 ... > This launcher does not do anything! It makes it possible for the user to > launch places explicitly instead of relying on a launcher. > Place 0 will wait for 3 other places to connect before running main. > > I added the -Dapgas.laucher.verbose property. > If set, the launcher prints the command executed to launch additional > places. > Use in combination with apgas.impl.NoLauncher to know the command to > invoke. > > Let me know if you still have issues running on multiple nodes. > > Olivier > > > Jonas Posner <jonas.pos...@student.uni-kassel.de> wrote on 09/23/2015 > 09:30:58 AM: > > > From: Jonas Posner <jonas.pos...@student.uni-kassel.de> > > To: x10-users@lists.sourceforge.net > > Date: 09/23/2015 09:31 AM > > Subject: [X10-users] APGAS lib: Adding Places across different mashines > > > > Hi all, > > > > I'm playing around with the APGAS library for Java. I want to add > > some places to a running application using the ip:port adress. I use > > for testing the ResilientWorld Class in examples. Local works it > > fine with the commands: > > 1.application: java -cp .:../lib/hazelcast-3.4.jar -Dapgas.places=1 > > examples.ResilientHelloWorld > > 2.application: java -cp .:../lib/hazelcast-3.4.jar -Dapgas.places=1 > > -Dapgas.master=localhost examples.ResilientHelloWorld > > > > The second application connects to the first and the output shows > > two places as expected. Application two can crash and app one > > catches a DeadPlaceException. Everything fine and as expected. > > > > But now i want to start the applications at tow different machines. > > Instead of "localhost" i wrote the ip of the first application. > > Additionally I added the port :5701. But application two doesn't > > connect. Both applications run alone. I also switched the port in > > the Transport Class of APGAS, without success. I don't know what to > > do now. What requirements must be met? > > > > Thanks and many greetings > > Jonas Posner > > > > ------------------------------------------------------------------------------ > > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > > Get real-time metrics from all of your servers, apps and tools > > in one place. > > SourceForge users - Click here to start your Free Trial of Datadog now! > > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 > > _______________________________________________ > > X10-users mailing list > > X10-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/x10-users > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > X10-users mailing list > X10-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/x10-users >
------------------------------------------------------------------------------
_______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users