It's not clear to me if you are setting the X10_HOSTFILE environment variable. Here are some steps to try. Can you please let me know if these work for you?
1) Create a file, named hostfile.txt, and put it in the same location on both machines. In this file, put two lines: "192.168.2.126" and "192.168.2.127", without quotes. You are running four places, but only have two lines in the hostfile, so you will get two places running on each machine. 2) type "export X10_HOSTFILE=/location/of/your/hostfile.txt", using the correct path to your file. 3) type "export X10_NPLACES=4". You only need to do this on the machine where you are launching your program from. 4) Execute your program. e.g. "./a.out". Alternatively, you can skip all of the above, and simply type at the command line: "X10_NPLACES=4 X10_HOSTLIST=192.168.2.126,192.168.2.127 ./a.out", assuming your executable is named a.out. - Ben From: 马思翔 <sixiangma0...@gmail.com> To: x10-users@lists.sourceforge.net, Date: 05/14/2012 04:39 Subject: [X10-users] Problem about using x10 with multipe machines Hi: I have a problem about using x10 with two machines. I do the configuration as the following: I set X10_NPLACES=4 on each machines, and ssh is established, and I also have your executable and hostfile available in the same location on every machine listed in the hostfile. the hostfile is same on 2 machines in same location : master slave the /etc/hosts file is same on 2 machines: 127.0.0.1 localhost 127.0.0.1 masixiang-virtual.machine 192.168.2.126 master 192.168.2.127 slave but when i run the program , problem happened :" FATAL Error 110:cannot resolve remote hostname;Connection timed out" And i use IP address to substitute master and slave , it is still this problem. I can run the program successfully in one machine , the program is simple ,just to write the place.id into a file of the seperate local machine. I read the following configuration many times, and i do as it said. Is there anybody can give me some solution? "Running x10 programs using Sockets transport The sockets transport is the default transport if you don't compile with the "-x10rt" flag. Running with sockets is easy - you simply execute the binary that was produced when you compiled your program. This will run your program in a single place on your local machine. To use more places, you set an environment variable X10_NPLACES to specify the number of places. There are two ways to specify the machines to run on: Set the environment variable X10_HOSTFILE to the full path for a hostfile. The hostfile is a simple text file that contains a list of hostnames to run on, with one line per machine. Set the environment variable X10_HOSTLIST, to a list of hostnames, one per line without spaces. This run configuration variable is checked only if X10_HOSTFILE was not set. Both of the above will wrap if there are more places than hostnames specified. For example, setting X10_NPLACES to 4 and X10_HOSTLISTto host1,host2 will cause places 0 and 2 to run on host1, and places 1 and 3 to run on host2. If neither of the above is set, and there is more than 1 place, then it defaults to running everything on localhost. If you're running on more than one machine, you should have public/private key ssh authentication set up, so you can ssh from one machine to another without getting a password prompt. You should also have your executable and hostfile available in the same location on every machine listed in the hostfile. You compile your program, and with ssh in place, and the run configuration variables set, you run your executable. You don't have to launch from one of the machines in the hostfile, but you do need to have the ssh authentication set up between the machine you launch from and the first machine in the list. " ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users
<<inline: graycol.gif>>
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users