Try adding this into your /etc/hosts 127.0.0.1 java.sun.com
The problem is that we have this in the web.xml for datanode <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"> </web-app> When parsing the web.xml we will fetch from this url, and sometimes it will be very very slow. I used to think this only happens for us in China so I didn't post it out... 2018-05-21 13:44 GMT+08:00 ramkrishna vasudevan < [email protected]>: > Hi all > > Trying to debug some minicluster based testcases on master and branch-2 > with eclipse IDE. But the cluster startup seems to hang in the HttpServer > start up as part of HDFS cluster setup. > > The older 3.0 branches were not having this issue and seems to happen in > the later 2.0 and master branches. > > Is there anyway to solve this - wrt to POM changes or anyother config > updates? > > The same tests run fine when we run using 'mvn test' command. > > "Time-limited test" #17 daemon prio=5 os_prio=0 tid=0x00007fc6c4f6b000 > nid=0xb91 runnable [0x00007fc6565c4000] > java.lang.Thread.State: RUNNABLE > at java.net.PlainSocketImpl.socketConnect(Native Method) > at > java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java: > 345) > - locked <0x000000058857eeb0> (a java.net.SocksSocketImpl) > at > java.net.AbstractPlainSocketImpl.connectToAddress( > AbstractPlainSocketImpl.java:206) > at > java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) > at java.net.Socket.connect(Socket.java:589) > at java.net.Socket.connect(Socket.java:538) > at sun.net.NetworkClient.doConnect(NetworkClient.java:180) > at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) > at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) > - locked <0x000000058857ec70> (a sun.net.www.http.HttpClient) > at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) > at sun.net.www.http.HttpClient.New(HttpClient.java:308) > at sun.net.www.http.HttpClient.New(HttpClient.java:326) > at > sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient( > HttpURLConnection.java:1168) > at > sun.net.www.protocol.http.HttpURLConnection.plainConnect0( > HttpURLConnection.java:1104) > at > sun.net.www.protocol.http.HttpURLConnection.plainConnect( > HttpURLConnection.java:998) > at > sun.net.www.protocol.http.HttpURLConnection.connect( > HttpURLConnection.java:932) > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream0( > HttpURLConnection.java:1512) > - locked <0x000000058857d600> (a > sun.net.www.protocol.http.HttpURLConnection) > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream( > HttpURLConnection.java:1440) > > > After some time the test case fails with 'Exception' msg. > > There is no firewall and so firewall is not the reason for this. > I tracked the pom changes but not able to make out any obvious differences > here. > Any inputs here would be very helpful. > > Regards > Ram >
