Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-13599

Pig View - Service "storage" check Failed - Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: ambari-views
    • Labels:
      None
    • Environment:

      OS- Centos 6
      Ambasri Database - Oracle

      Description

      Setup : agent was running through custom user
      Problem :
      While loading the created pig instance "Storage test" Failed

      Service 'storage' check failed:
      org.apache.ambari.view.PersistenceException: Caught exception trying to store view entity org.apache.ambari.view.pig.persistence.DataStoreStorage$SmokeTestEntity@60f57c84

      org.apache.ambari.view.PersistenceException: Caught exception trying to store view entity org.apache.ambari.view.pig.persistence.DataStoreStorage$SmokeTestEntity@60f57c84
      at org.apache.ambari.server.view.persistence.DataStoreImpl.throwPersistenceException(DataStoreImpl.java:648)
      at org.apache.ambari.server.view.persistence.DataStoreImpl.store(DataStoreImpl.java:148)
      at org.apache.ambari.view.pig.persistence.DataStoreStorage.store(DataStoreStorage.java:59)
      at org.apache.ambari.view.pig.persistence.DataStoreStorage.storageSmokeTest(DataStoreStorage.java:139)
      at org.apache.ambari.view.pig.services.HelpService.storageStatus(HelpService.java:115)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
      at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540)
      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.apache.ambari.server.security.authorization.AmbariAuthorizationFilter.doFilter(AmbariAuthorizationFilter.java:182)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
      at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
      at org.apache.ambari.server.api.MethodOverrideFilter.doFilter(MethodOverrideFilter.java:72)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
      at org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPersistFilter.java:47)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
      at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)
      at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:294)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandlerList.java:209)
      at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandlerList.java:198)
      at org.apache.ambari.server.controller.AmbariHandlerList.handle(AmbariHandlerList.java:145)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      at org.eclipse.jetty.server.Server.handle(Server.java:370)
      at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
      at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
      at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
      at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
      at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
      Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long

      Error Code: 972
      Call: SELECT DS_id, DS_data FROM DS_DATASTORESTORAGE$SMOKETESTENTITY_4 WHERE (DS_id = ?)
      bind => [1 parameter bound]
      Query: ReadObjectQuery(name="readDS_DataStoreStorage$SmokeTestEntity_4" referenceClass=DS_DataStoreStorage$SmokeTestEntity_4 sql="SELECT DS_id, DS_data FROM DS_DATASTORESTORAGE$SMOKETESTENTITY_4 WHERE (DS_id = ?)")
      at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:340)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:682)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:558)
      at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:2002)
      at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:570)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:242)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:228)
      at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectOneRow(DatasourceCallQueryMechanism.java:714)
      at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectOneRowFromTable(ExpressionQueryMechanism.java:2801)
      at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectOneRow(ExpressionQueryMechanism.java:2754)
      at org.eclipse.persistence.queries.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:545)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1168)
      at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:899)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1127)
      at org.eclipse.persistence.queries.ReadObjectQuery.execute(ReadObjectQuery.java:431)
      at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1215)
      at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2896)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1804)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1786)
      at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1737)
      at org.eclipse.persistence.internal.jpa.EntityManagerImpl.executeQuery(EntityManagerImpl.java:900)
      at org.eclipse.persistence.internal.jpa.EntityManagerImpl.findInternal(EntityManagerImpl.java:843)
      at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:719)
      at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:588)
      at org.apache.ambari.server.view.persistence.DataStoreImpl.persistEntity(DataStoreImpl.java:401)
      at org.apache.ambari.server.view.persistence.DataStoreImpl.store(DataStoreImpl.java:144)
      ... 92 more
      Caused by: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long

      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
      at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:863)
      at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1153)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1275)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576)
      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3620)
      at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:1007)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:642)
      ... 116 more

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-trunk-Commit #3739 (See https://builds.apache.org/job/Ambari-trunk-Commit/3739/)
          Revert "AMBARI-13599. Pig View - Service "storage" check Failed - (jluniya: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=1ea950806629a3b0c3a41bbcaaa322aab64492dd)

          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #3739 (See https://builds.apache.org/job/Ambari-trunk-Commit/3739/ ) Revert " AMBARI-13599 . Pig View - Service "storage" check Failed - (jluniya: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=1ea950806629a3b0c3a41bbcaaa322aab64492dd ) contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java contrib/views/pig/src/main/resources/view.xml AMBARI-13599 . Pig View - Service storage check Failed - Internal (jluniya: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=028143c4033f832b177d6d4d829ac4ad57a95c88 ) contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/SmokeTestEntity.java contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java contrib/views/pig/src/main/resources/view.xml
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-branch-2.1 #770 (See https://builds.apache.org/job/Ambari-branch-2.1/770/)
          Revert "AMBARI-13599. Pig View - Service "storage" check Failed - (jluniya: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=67484460ac5e118744b9f66964537c0be7d1de9b)

          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-branch-2.1 #770 (See https://builds.apache.org/job/Ambari-branch-2.1/770/ ) Revert " AMBARI-13599 . Pig View - Service "storage" check Failed - (jluniya: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=67484460ac5e118744b9f66964537c0be7d1de9b ) contrib/views/pig/src/main/resources/view.xml contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java AMBARI-13599 . Pig View - Service storage check Failed - Internal (jluniya: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=7d0af00927f48b62ba7baadb165a5fb61dc33b51 ) contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/SmokeTestEntity.java contrib/views/pig/src/main/resources/view.xml
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-trunk-Commit #3737 (See https://builds.apache.org/job/Ambari-trunk-Commit/3737/)
          AMBARI-13599. Pig View - Service "storage" check Failed - Internal (yusaku: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=369e8135dc32d28bf02ea20a1925818dbc70a4db)

          • contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java
          • contrib/views/pig/src/main/resources/view.xml
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #3737 (See https://builds.apache.org/job/Ambari-trunk-Commit/3737/ ) AMBARI-13599 . Pig View - Service "storage" check Failed - Internal (yusaku: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=369e8135dc32d28bf02ea20a1925818dbc70a4db ) contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java contrib/views/pig/src/main/resources/view.xml
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-branch-2.1 #768 (See https://builds.apache.org/job/Ambari-branch-2.1/768/)
          AMBARI-13599. Pig View - Service "storage" check Failed - Internal (yusaku: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=e0d784b3edb65d387463e88b88eb6d65ff53770a)

          • contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java
          • contrib/views/pig/src/main/resources/view.xml
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-branch-2.1 #768 (See https://builds.apache.org/job/Ambari-branch-2.1/768/ ) AMBARI-13599 . Pig View - Service "storage" check Failed - Internal (yusaku: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=e0d784b3edb65d387463e88b88eb6d65ff53770a ) contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java contrib/views/pig/src/main/resources/view.xml
          Hide
          u39kun Yusaku Sako added a comment -

          Committed to trunk, branch-2.1, and branch-2.1.2.

          Show
          u39kun Yusaku Sako added a comment - Committed to trunk, branch-2.1, and branch-2.1.2.

            People

            • Assignee:
              dipayanb DIPAYAN BHOWMICK
              Reporter:
              PankajSingh Pankaj Singh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development