[
https://issues.apache.org/jira/browse/AMBARI-11957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14589139#comment-14589139
]
Hudson commented on AMBARI-11957:
---------------------------------
SUCCESS: Integrated in Ambari-branch-2.1 #57 (See
[https://builds.apache.org/job/Ambari-branch-2.1/57/])
AMBARI-11957 - Views : DataStore persistence error (tbeerbower) (tbeerbower:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=48557ec1870807d27e87c5be3c942f4a1ad23226)
*
ambari-server/src/main/java/org/apache/ambari/server/view/persistence/DataStoreImpl.java
*
ambari-server/src/test/java/org/apache/ambari/server/view/persistence/DataStoreImplTest.java
> Views : DataStore persistence error
> -----------------------------------
>
> Key: AMBARI-11957
> URL: https://issues.apache.org/jira/browse/AMBARI-11957
> Project: Ambari
> Issue Type: Bug
> Reporter: Tom Beerbower
> Assignee: Tom Beerbower
> Fix For: 2.1.0
>
>
> Seeing ...
> {code}
> java.lang.IllegalStateException:
> Exception Description: No transaction is currently active
> at
> org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.rollback(EntityTransactionImpl.java:176)
> at
> org.apache.ambari.server.view.persistence.DataStoreImpl.store(DataStoreImpl.java:135)
> at
> org.apache.ambari.view.hive.persistence.DataStoreStorage.store(DataStoreStorage.java:76)
> at
> org.apache.ambari.view.hive.resources.CRUDResourceManager.save(CRUDResourceManager.java:117)
> at
> {code}
> The underlying DataStore exception ...
> {code}
> Exception [EclipseLink-4002] (Eclipse Persistence Services -
> 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: org.postgresql.util.PSQLException: ERROR: value too long
> for type character varying(255)
> Error Code: 0
> Call: UPDATE DS_JOBIMPL_4 SET DS_applicationId = ?, DS_duration = ?,
> DS_sqlState = ?, DS_status = ?, DS_statusMessage = ? WHERE (DS_id = ?)
> bind => [6 parameters bound]
> {code}
> It looks like the query is failing ...
> {code}
> Error while processing statement: FAILED: Execution Error, return code 2 from
> org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex failed, vertexName=Reducer
> 2, vertexId=vertex_1434402937248_0003_1_01, diagnostics=[Task failed,
> taskId=task_1434402937248_0003_1_01_000000, diagnostics=[TaskAttempt 0
> failed, info=[Container container_e01_1434402937248_0003_01_000002 finished
> with diagnostics set to [Container failed, exitCode=1. Exception from
> container-launch.
> Container id: container_e01_1434402937248_0003_01_000002
> Exit code: 1
> Stack trace: ExitCodeException exitCode=1:
> at org.apache.hadoop.util.Shell.runCommand(Shell.java:545)
> at org.apache.hadoop.util.Shell.run(Shell.java:456)
> at
> org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)
> at
> org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211)
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Container exited with a non-zero exit code 1
> ]], TaskAttempt 1 failed, info=[Container
> container_e01_1434402937248_0003_01_000003 finished with diagnostics set to
> [Container failed, exitCode=1. Exception from container-launch.
> Container id: container_e01_1434402937248_0003_01_000003
> Exit code: 1
> Stack trace: ExitCodeException exitCode=1:
> at org.apache.hadoop.util.Shell.runCommand(Shell.java:545)
> at org.apache.hadoop.util.Shell.run(Shell.java:456)
> at
> org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)
> at
> org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211)
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Container exited with a non-zero exit code 1
> ]], TaskAttempt 2 failed, info=[Container
> container_e01_1434402937248_0003_01_000004 finished with diagnostics set to
> [Container failed, exitCode=1. Exception from container-launch.
> Container id: container_e01_1434402937248_0003_01_000004
> Exit code: 1
> Stack trace: ExitCodeException exitCode=1:
> at org.apache.hadoop.util.Shell.runCommand(Shell.java:545)
> at org.apache.hadoop.util.Shell.run(Shell.java:456)
> at
> org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)
> at
> org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211)
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Container exited with a non-zero exit code 1
> ]], TaskAttempt 3 failed, info=[Container
> container_e01_1434402937248_0003_01_000005 finished with diagnostics set to
> [Container failed, exitCode=1. Exception from container-launch.
> Container id: container_e01_1434402937248_0003_01_000005
> Exit code: 1
> Stack trace: ExitCodeException exitCode=1:
> at org.apache.hadoop.util.Shell.runCommand(Shell.java:545)
> at org.apache.hadoop.util.Shell.run(Shell.java:456)
> at
> org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)
> at
> org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211)
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Container exited with a non-zero exit code 1
> ]]], Vertex did not succeed due to OWN_TASK_FAILURE, failedTasks:1
> killedTasks:0, Vertex vertex_1434402937248_0003_1_01 [Reducer 2]
> killed/failed due to:null]DAG did not succeed due to VERTEX_FAILURE.
> failedVertices:1 killedVertices:0
> {code}
> The view tries to save the result but the String type in the entity is mapped
> to a VARCHAR(256), so the above exception string is too long to fit.
> Also, once the exception is thrown, the DataStore catches it and tries to
> rollback the transaction. It looks like the tx is already inactive at this
> point so a different exception is thrown out. The original exception should
> at least be logged by the DataStoreImpl.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)