Parpool Java exception occurred: 2014a & Mac - Only when wifi at home turned on?

조회 수: 11 (최근 30일)
Craig
Craig 2014년 7월 2일
편집: Walter Roberson 2015년 12월 11일
Setup: Matlab 2014a, Mac OS x 10.7.5.
Problem: Parpool throws a Java exception when I try to run it with my home wifi turned on and works when I turn it off.
Run: parpool
Error:
Error using parpool (line 99)
Java exception occurred:
java.net.UnknownHostException: craig-2: craig-2: nodename nor servname provided, or not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1438)
Caused by: java.net.UnknownHostException: craig-2: nodename nor servname provided, or not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258)
at java.net.InetAddress.getLocalHost(InetAddress.java:1434)
Any ideas?
Thanks,
Craig
  댓글 수: 7
Steven
Steven 2014년 7월 30일
편집: Steven 2014년 7월 30일
Hi Craig and Edric,
I am experiencing this issue as well. I am running 2014a on Mac OS x 10.9.4. Were you able to find a solution?
Thanks, Blair
Marco Borges
Marco Borges 2014년 8월 13일
I have the same error! Maybe is related with this java but, don't you think?
https://bugs.openjdk.java.net/browse/JDK-7180557

댓글을 달려면 로그인하십시오.

답변 (4개)

Craig
Craig 2014년 8월 7일
I'm away and can't check but just received some advice from support:
In this last case, one possible cause could be related to a corrupted hosts file.
On Macintosh and Linux systems, the file is under the directory:
/etc/hosts Please make sure to map hostnames to valid IP addresses.
The IP address and the username for the local host can be searched using the following instructions:
>> ip = char( getHostAddress(java.net.InetAddress.getLocalHost)) >> user = getenv('UserName')
Please ping the machine name to test.
  댓글 수: 4
Franck Dernoncourt
Franck Dernoncourt 2015년 2월 2일
Same here, matlab prompt '!hostname' and adding it to host file worked for me. Ubuntu 12.04 with R2014a x64. Thanks!

댓글을 달려면 로그인하십시오.


Thomas Ibbotson
Thomas Ibbotson 2015년 2월 2일
A patch has been released for this bug see: Bug report 1119179

Carsten Hoever
Carsten Hoever 2014년 8월 5일
Did you find a solution for the problem? I am having the same problem with OSX 10.9.3:
Error using matlabpool (line 137) Java exception occurred: java.net.UnknownHostException: server.munkiisland.private: server.munkiisland.private: nodename nor servname provided, or not known at java.net.InetAddress.getLocalHost(InetAddress.java:1438) Caused by: java.net.UnknownHostException: server.munkiisland.private: nodename nor servname provided, or not known at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258) at java.net.InetAddress.getLocalHost(InetAddress.java:1434)
  댓글 수: 2
Steven
Steven 2014년 8월 5일
I have not found a permanent solution, but the issue seems to be related to network settings. When I unplug my computer from the network and turn off WiFi, I am able to get the parallel pool to start. This is only a temporary workaround, but I hope to figure out the underlying cause with a bit more investigation.
-Blair
Craig
Craig 2014년 8월 7일
Yes, sorry for the late reply - but I've done exactly the same, turn wifi off, start par pool - turn back on. Dirty but it works! Best, Craig

댓글을 달려면 로그인하십시오.


Steven
Steven 2014년 8월 7일
Thanks for the suggestion Craig! I went to check the host file and noticed that my parpool is starting up fine now. The only thing that changed is that I shutdown and brought my laptop home for a few days where I used it on a different network. Very curious...

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by