Parpool Java exception occurred: 2014a & Mac - Only when wifi at home turned on?
Mostrar comentarios más antiguos
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 comentarios
Edric Ellis
el 3 de Jul. de 2014
Could you please try the following in a MATLAB session when your wifi is switched on:
clear classes
c = parcluster('local')
(I'm expecting this to cause problems too - it would be great if you could post the full error).
Craig
el 3 de Jul. de 2014
Craig
el 6 de Jul. de 2014
Edric Ellis
el 9 de Jul. de 2014
Hm, I'm not totally sure what's going wrong here. There's something awry with the network name resolution on your machine. I suggest you might be best contacting our installation support team to see if they can help you.
Craig
el 9 de Jul. de 2014
Marco Borges
el 13 de Ag. de 2014
I have the same error! Maybe is related with this java but, don't you think?
https://bugs.openjdk.java.net/browse/JDK-7180557
Respuestas (4)
Craig
el 7 de Ag. de 2014
4 votos
4 comentarios
Viktor Ivanov
el 26 de Ag. de 2014
Modifying the hosts file fixed the issue for me. In terminal, typing
hostname
or at the matlab prompt '!hostname' will tell you your local host name. Copy the output from that command and go to the file /etc/hosts and add the line
127.0.0.1 {your local host name}
You need sudo privileges to modify this file. That did the trick for me.
Daniel
el 24 de Sept. de 2014
I also had the same issue on 2013b and OS X 10.9.5 Adding my own machine to /etc/hosts did the trick for me! Thanks & Cheers, Daniel
Franck Dernoncourt
el 2 de Feb. de 2015
Same here, matlab prompt '!hostname' and adding it to host file worked for me. Ubuntu 12.04 with R2014a x64. Thanks!
Zhi Feng
el 11 de Dic. de 2015
it works. Thanks
Thomas Ibbotson
el 2 de Feb. de 2015
2 votos
Carsten Hoever
el 5 de Ag. de 2014
0 votos
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 comentarios
Steven
el 5 de Ag. de 2014
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
el 7 de Ag. de 2014
Steven
el 7 de Ag. de 2014
0 votos
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...
Categorías
Más información sobre Parallel Computing Fundamentals en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!