Alexandre Linte created HIVE-15092:
--------------------------------------
Summary: WebHCat doesn't support RM HA
Key: HIVE-15092
URL: https://issues.apache.org/jira/browse/HIVE-15092
Project: Hive
Issue Type: Bug
Components: WebHCat
Affects Versions: 2.1.0
Environment: Hadoop 2.7.2, Hive 2.1.0
Reporter: Alexandre Linte
We have two resource managers in our environment. For testing purpose, the
first resourcemanager has been turned off. In that case, launching a job
through webhcat will not work. The webhcat server returns the stacktrace below:
{noformat}
Oct 27 14:32:19 webhcat01.bigdata.fr webhcat INFO -
org.apache.hadoop.io.retry.RetryInvocationHandlerException while invoking
getDelegationToken of class ApplicationClientProtocolPBClientImpl over rm1
after 8 fail over attempts. Trying to fail over after sleeping for 23697ms.
java.net.ConnectException: Call From webhcat01.bigdata.fr/192.168.200.214 to
resourcemanager01.bigdata.fr:8032 failed on connection exception:
java.net.ConnectException: Connection refused; For more details see:
http://wiki.apache.org/hadoop/ConnectionRefused
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) ~[?:1.7.0_101]
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
~[?:1.7.0_101]
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
~[?:1.7.0_101]
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
~[?:1.7.0_101]
at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:792)
~[hadoop-common-2.7.2.jar:?]
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:732)
~[hadoop-common-2.7.2.jar:?]
at org.apache.hadoop.ipc.Client.call(Client.java:1479)
~[hadoop-common-2.7.2.jar:?]
at org.apache.hadoop.ipc.Client.call(Client.java:1412)
~[hadoop-common-2.7.2.jar:?]
at
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
~[hadoop-common-2.7.2.jar:?]
at com.sun.proxy.$Proxy79.getDelegationToken(Unknown Source) ~[?:?]
at
org.apache.hadoop.yarn.api.impl.pb.client.ApplicationClientProtocolPBClientImpl.getDelegationToken(ApplicationClientProtocolPBClientImpl.java:310)
~[hadoop-yarn-common-2.7.2.jar:?]
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) ~[?:?]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.7.0_101]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_101]
at
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:191)
~[hadoop-common-2.7.2.jar:?]
at
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
[hadoop-common-2.7.2.jar:?]
at com.sun.proxy.$Proxy80.getDelegationToken(Unknown Source) [?:?]
at
org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.getRMDelegationToken(YarnClientImpl.java:513)
[hadoop-yarn-client-2.7.2.jar:?]
at
org.apache.hadoop.mapred.ResourceMgrDelegate.getDelegationToken(ResourceMgrDelegate.java:175)
[spark-assembly-1.4.1-hadoop2.7.1.jar:?]
at
org.apache.hadoop.mapred.YARNRunner.getDelegationToken(YARNRunner.java:221)
[spark-assembly-1.4.1-hadoop2.7.1.jar:?]
at
org.apache.hadoop.mapreduce.Cluster.getDelegationToken(Cluster.java:401)
[hadoop-mapreduce-client-core-2.7.2.jar:?]
at org.apache.hadoop.mapred.JobClient$16.run(JobClient.java:1232)
[hadoop-mapreduce-client-core-2.7.2.jar:?]
at org.apache.hadoop.mapred.JobClient$16.run(JobClient.java:1229)
[hadoop-mapreduce-client-core-2.7.2.jar:?]
at java.security.AccessController.doPrivileged(Native Method)
~[?:1.7.0_101]
at javax.security.auth.Subject.doAs(Subject.java:415) [?:1.7.0_101]
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
[hadoop-common-2.7.2.jar:?]
at
org.apache.hadoop.mapred.JobClient.getDelegationToken(JobClient.java:1228)
[hadoop-mapreduce-client-core-2.7.2.jar:?]
at
org.apache.hive.hcatalog.templeton.tool.TempletonControllerJob.run(TempletonControllerJob.java:137)
[hive-webhcat-2.1.0.jar:2.1.0]
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
[hadoop-common-2.7.2.jar:?]
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
[hadoop-common-2.7.2.jar:?]
at
org.apache.hive.hcatalog.templeton.LauncherDelegator$1.run(LauncherDelegator.java:111)
[hive-webhcat-2.1.0.jar:2.1.0]
at
org.apache.hive.hcatalog.templeton.LauncherDelegator$1.run(LauncherDelegator.java:107)
[hive-webhcat-2.1.0.jar:2.1.0]
at java.security.AccessController.doPrivileged(Native Method)
~[?:1.7.0_101]
at javax.security.auth.Subject.doAs(Subject.java:415) [?:1.7.0_101]
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
[hadoop-common-2.7.2.jar:?]
at
org.apache.hive.hcatalog.templeton.LauncherDelegator.queueAsUser(LauncherDelegator.java:107)
[hive-webhcat-2.1.0.jar:2.1.0]
at
org.apache.hive.hcatalog.templeton.LauncherDelegator.enqueueController(LauncherDelegator.java:85)
[hive-webhcat-2.1.0.jar:2.1.0]
at
org.apache.hive.hcatalog.templeton.PigDelegator.run(PigDelegator.java:60)
[hive-webhcat-2.1.0.jar:2.1.0]
at org.apache.hive.hcatalog.templeton.Server.pig(Server.java:778)
[hive-webhcat-2.1.0.jar:2.1.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.7.0_101]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
~[?:1.7.0_101]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.7.0_101]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_101]
at
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1480)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1411)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1360)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1350)
[jersey-server-1.14.jar:1.14]
at
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
[jersey-servlet-1.14.jar:1.14]
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
[jersey-servlet-1.14.jar:1.14]
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
[jersey-servlet-1.14.jar:1.14]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
[servlet-api-2.5.jar:2.5]
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1360)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:595)
[hadoop-auth-2.7.2.jar:?]
at
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:554)
[hadoop-auth-2.7.2.jar:?]
at org.apache.hadoop.hdfs.web.AuthFilter.doFilter(AuthFilter.java:88)
[hadoop-hdfs-2.7.2.jar:?]
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at org.eclipse.jetty.server.Server.handle(Server.java:349)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:925)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)
[jetty-all-7.6.0.v20120127.jar:7.6.0.v20120127]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_101]
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
~[?:1.7.0_101]
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
~[?:1.7.0_101]
at
org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
~[hadoop-common-2.7.2.jar:?]
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531)
~[hadoop-common-2.7.2.jar:?]
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:495)
~[hadoop-common-2.7.2.jar:?]
at
org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:614)
~[hadoop-common-2.7.2.jar:?]
at
org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:712)
~[hadoop-common-2.7.2.jar:?]
at org.apache.hadoop.ipc.Client$Connection.access$2900(Client.java:375)
~[hadoop-common-2.7.2.jar:?]
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1528)
~[hadoop-common-2.7.2.jar:?]
at org.apache.hadoop.ipc.Client.call(Client.java:1451)
~[hadoop-common-2.7.2.jar:?]
... 76 more
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)