[ 
https://issues.apache.org/jira/browse/TEZ-1854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14249376#comment-14249376
 ] 

Jeff Zhang edited comment on TEZ-1854 at 12/17/14 3:04 AM:
-----------------------------------------------------------

[~hitesh], Could we set a random port for AHS, otherwise 
TestATSHistoryWithACLswill fail due to port conflict it there's another ATS 
running. ( We may have ATS running in local for dev )

{code}
2014-12-17 10:37:41,447 INFO  [Thread-349] http.HttpServer2 
(HttpServer2.java:start(830)) - HttpServer.start() threw a non Bind IOException
java.net.BindException: Port in use: 0.0.0.0:8188
        at 
org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:891)
        at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:827)
        at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:273)
        at 
org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.startWebApp(ApplicationHistoryServer.java:269)
        at 
org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.serviceStart(ApplicationHistoryServer.java:110)
        at 
org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
        at 
org.apache.hadoop.yarn.server.MiniYARNCluster$ApplicationHistoryServerWrapper$1.run(MiniYARNCluster.java:694)
Caused by: java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:444)
        at sun.nio.ch.Net.bind(Net.java:436)
        at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at 
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
        at 
org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:886)
        ... 6 more
2014-12-17 10:37:41,448 ERROR [Thread-349] 
applicationhistoryservice.ApplicationHistoryServer 
(ApplicationHistoryServer.java:startWebApp(277)) - AHSWebApp failed to start.
org.apache.hadoop.yarn.webapp.WebAppException: Error starting http server
        at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:278)
        at 
org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.startWebApp(ApplicationHistoryServer.java:269)
        at 
org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.serviceStart(ApplicationHistoryServer.java:110)
        at 
org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
        at 
org.apache.hadoop.yarn.server.MiniYARNCluster$ApplicationHistoryServerWrapper$1.run(MiniYARNCluster.java:694)
Caused by: java.net.BindException: Port in use: 0.0.0.0:8188
        at 
org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:891)
        at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:827)
        at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:273)
        ... 4 more
Caused by: java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:444)
        at sun.nio.ch.Net.bind(Net.java:436)
        at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at 
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
        at 
org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:886)
        ... 6 more
{code}




was (Author: zjffdu):
[~hitesh], Could we set a random port for AHS, otherwise 
TestATSHistoryWithACLswill fail due to port conflict it there's another ATS 
running. ( We may have ATS running in local for dev )



> Failing tests due to host resolution timing out
> -----------------------------------------------
>
>                 Key: TEZ-1854
>                 URL: https://issues.apache.org/jira/browse/TEZ-1854
>             Project: Apache Tez
>          Issue Type: Sub-task
>            Reporter: Hitesh Shah
>            Assignee: Hitesh Shah
>            Priority: Blocker
>         Attachments: TEZ-1854.1.patch, TEZ-1854.2.patch, TEZ-1854.3.patch
>
>
> java.lang.Exception: test timed out after 5000 milliseconds
>       at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
>       at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:876)
>       at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1229)
>       at java.net.InetAddress.getAllByName0(InetAddress.java:1180)
>       at java.net.InetAddress.getAllByName(InetAddress.java:1110)
>       at java.net.InetAddress.getAllByName(InetAddress.java:1046)
>       at java.net.InetAddress.getByName(InetAddress.java:996)
>       at org.apache.hadoop.net.NetUtils.normalizeHostName(NetUtils.java:561)
>       at org.apache.hadoop.net.NetUtils.normalizeHostNames(NetUtils.java:578)
>       at 
> org.apache.hadoop.net.CachedDNSToSwitchMapping.resolve(CachedDNSToSwitchMapping.java:109)
>       at 
> org.apache.hadoop.yarn.util.RackResolver.coreResolve(RackResolver.java:101)
>       at 
> org.apache.hadoop.yarn.util.RackResolver.resolve(RackResolver.java:95)
>       at 
> org.apache.tez.dag.app.dag.impl.TaskAttemptImpl$ScheduleTaskattemptTransition.transition(TaskAttemptImpl.java:1029)
>       at 
> org.apache.tez.dag.app.dag.impl.TestTaskAttempt.testHostResolveAttempt(TestTaskAttempt.java:236)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to