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

ASF GitHub Bot commented on YARN-7773:
--------------------------------------

Github user Yiran-wu closed the pull request at:

    https://github.com/apache/hadoop/pull/331


> YARN Federation used Mysql as state store throw exception, Unknown column 
> 'homeSubCluster' in 'field list'
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-7773
>                 URL: https://issues.apache.org/jira/browse/YARN-7773
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: federation
>    Affects Versions: 2.9.0, 3.0.0-alpha1, 3.0.0-alpha2, 3.0.0-beta1, 
> 3.0.0-alpha4, 3.0.0-alpha3, 3.0.0
>         Environment: Hadoop 3.0.0
>            Reporter: Yiran Wu
>            Assignee: Yiran Wu
>            Priority: Blocker
>              Labels: patch
>             Fix For: 3.2.0
>
>         Attachments: YARN-7773.001.patch
>
>
> An error occurred when YARN Federation used Mysql as state store. The reason 
> I found it was because the field used to create the 
> applicationsHomeSubCluster table was 'subClusterId' and the stored procedure 
> used 'homeSubCluster'. I fixed this problem.
>  
> submitApplication appIdapplication_1516277664083_0014 try #0 on SubCluster 
> cluster1 , queue: root.bdp_federation
>  [2018-01-18T23:25:29.325+08:00] [ERROR] 
> store.impl.SQLFederationStateStore.logAndThrowRetriableException(FederationStateStoreUtils.java
>  158) [IPC Server handler 44 on 8050] : Unable to insert the newly generated 
> application application_1516277664083_0014
>  com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 
> 'homeSubCluster' in 'field list'
>  at sun.reflect.GeneratedConstructorAccessor15.newInstance(Unknown Source)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>  at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
>  at com.mysql.jdbc.Util.getInstance(Util.java:408)
>  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:944)
>  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
>  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
>  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)
>  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680)
>  at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2484)
>  at 
> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858)
>  at 
> com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2079)
>  at 
> com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2013)
>  at 
> com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5104)
>  at 
> com.mysql.jdbc.CallableStatement.executeLargeUpdate(CallableStatement.java:2418)
>  at com.mysql.jdbc.CallableStatement.executeUpdate(CallableStatement.java:887)
>  at 
> com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61)
>  at 
> com.zaxxer.hikari.pool.HikariProxyCallableStatement.executeUpdate(HikariProxyCallableStatement.java)
>  at 
> org.apache.hadoop.yarn.server.federation.store.impl.SQLFederationStateStore.addApplicationHomeSubCluster(SQLFederationStateStore.java:547)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at 
> org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
>  at 
> org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
>  at com.sun.proxy.$Proxy31.addApplicationHomeSubCluster(Unknown Source)
>  at 
> org.apache.hadoop.yarn.server.federation.utils.FederationStateStoreFacade.addApplicationHomeSubCluster(FederationStateStoreFacade.java:345)
>  at 
> org.apache.hadoop.yarn.server.router.clientrm.JDFederationClientInterceptor.submitApplication(JDFederationClientInterceptor.java:334)
>  at 
> org.apache.hadoop.yarn.server.router.clientrm.RouterClientRMService.submitApplication(RouterClientRMService.java:196)
>  at 
> org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProtocolPBServiceImpl.submitApplication(ApplicationClientProtocolPBServiceImpl.java:218)
>  at 
> org.apache.hadoop.yarn.proto.ApplicationClientProtocol$ApplicationClientProtocolService$2.callBlockingMethod(ApplicationClientProtocol.java:419)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:616)
>  at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:969)
>  at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2076)
>  at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2072)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at javax.security.auth.Subject.doAs(Subject.java:422)
>  at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1803)
>  at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2070)
>  [2018-01-18T23:25:29.326+08:00] [ERROR] 
> server.router.RouterServerUtil.logAndThrowException(RouterServerUtil.java 55) 
> [IPC Server handler 44 on 8050] : Unable to insert the ApplicationId 
> application_1516277664083_0014 into the FederationStateStore
>  
> org.apache.hadoop.yarn.server.federation.store.exception.FederationStateStoreRetriableException:
>  Unable to insert the newly generated application 
> application_1516277664083_0014
>  at 
> org.apache.hadoop.yarn.server.federation.store.utils.FederationStateStoreUtils.logAndThrowRetriableException(FederationStateStoreUtils.java:159)
>  at 
> org.apache.hadoop.yarn.server.federation.store.impl.SQLFederationStateStore.addApplicationHomeSubCluster(SQLFederationStateStore.java:593)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at 
> org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
>  at 
> org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
>  at com.sun.proxy.$Proxy31.addApplicationHomeSubCluster(Unknown Source)
>  at 
> org.apache.hadoop.yarn.server.federation.utils.FederationStateStoreFacade.addApplicationHomeSubCluster(FederationStateStoreFacade.java:345)
>  at 
> org.apache.hadoop.yarn.server.router.clientrm.JDFederationClientInterceptor.submitApplication(JDFederationClientInterceptor.java:334)
>  at 
> org.apache.hadoop.yarn.server.router.clientrm.RouterClientRMService.submitApplication(RouterClientRMService.java:196)
>  at 
> org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProtocolPBServiceImpl.submitApplication(ApplicationClientProtocolPBServiceImpl.java:218)
>  at 
> org.apache.hadoop.yarn.proto.ApplicationClientProtocol$ApplicationClientProtocolService$2.callBlockingMethod(ApplicationClientProtocol.java:419)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:616)
>  at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:969)
>  at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2076)
>  at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2072)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at javax.security.auth.Subject.doAs(Subject.java:422)
>  at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1803)
>  at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2070)
>  Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 
> Unknown column 'homeSubCluster' in 'field list'
>  at sun.reflect.GeneratedConstructorAccessor15.newInstance(Unknown Source)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>  at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
>  at com.mysql.jdbc.Util.getInstance(Util.java:408)
>  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:944)
>  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
>  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
>  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)
>  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680)
>  at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2484)
>  at 
> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858)
>  at 
> com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2079)
>  at 
> com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2013)
>  at 
> com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5104)
>  at 
> com.mysql.jdbc.CallableStatement.executeLargeUpdate(CallableStatement.java:2418)
>  at com.mysql.jdbc.CallableStatement.executeUpdate(CallableStatement.java:887)
>  at 
> com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61)
>  at 
> com.zaxxer.hikari.pool.HikariProxyCallableStatement.executeUpdate(HikariProxyCallableStatement.java)
>  at 
> org.apache.hadoop.yarn.server.federation.store.impl.SQLFederationStateStore.addApplicationHomeSubCluster(SQLFederationStateStore.java:547)
>  ... 20 more



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to