我的/etc/hosts文件看起来像这样
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
#127.0.1.1 server3
x.y.z.x0 server1
x.y.z.x1 server2
x.y.z.x2 server3
x.x.z.x3 server4
但是当我尝试使用MPJExpress运行简单的 java 代码时,我发现以下异常
abraham@myserver:~/project$ mpjboot machines (machines 文件内容与 /etc/hosts 相同)
java.net.UnknownHostException: ip6-localnet
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:867)
at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1246)
at java.net.InetAddress.getAllByName0(InetAddress.java:1197)
at java.net.InetAddress.getAllByName(InetAddress.java:1128)
at java.net.InetAddress.getAllByName(InetAddress.java:1064)
at java.net.InetAddress.getByName(InetAddress.java:1014)
at runtime.starter.PortScan.main(PortScan.java:41)
mpjboot found port 10000 busy on ip6-localnet machine. There are two possibilities:
(1) The daemon might already be running...
(2) If the daemon is not running, then set a different port by modifying the wrapper.app.parameter.2 property in the /home/hduser/
我已尝试按照错误消息的建议更改端口号,但无济于事。
有任何想法吗?
这是我的平台信息: Ubuntu Linaro 12.08 running on armv7l