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

Reply via email to