REST API list-running Jobs
I am trying to use "rest/jobs/list-running" for getting back the list of running jobs without success.
The body is coming back with:
{
"status": "failure",
"reason": null
}
In order to test it I am executing: curl --insecure -u user:password -X GET https://[URL]/rest/jobs/list-running
Anyone with the same problem?
-
Thanks for the short test.
Logging in via the user interface should not deliver a JSON response. If you accessing the page
https://<host>:8443/login
with your browser and provide the same credentials as for the REST API call, is possible to access the Datameer UI and see the Datameer File Browser?
-
Hi Joel,
Effectively taking a look to the logs I can see an exception:
Error while transaction handling. Do a rollback.
org.springframework.web.util.NestedServletException:
Request processing failed; nested exception is datameer.dap.sdk.util.RestExceptionHave you experienced this before ? Or any hint about what could be causing it ?
-
Is there any more context around these lines? Usually there is a stacktrace which includes statements starting with "Caused by". These statements tend to point to the root cause.
Here is a generic example demonstrating a stacktrace:
ERROR [2015-01-01 00:00:00.000] [JobScheduler thread-1] (JobScheduler.java:800) - Job 1234 failed with exception. java.lang.RuntimeException: java.lang.RuntimeException: Failed to run cluster job for 'Workbook job (1234): Workbook#Attributes(Group by operation)' at datameer.dap.common.graphv2.ConcurrentClusterSession$1.run(ConcurrentClusterSession.java:51) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: Failed to run cluster job for 'Workbook job (1234): Workbook#Attributes(Group by operation)' at datameer.dap.common.graphv2.ClusterSession.execute(ClusterSession.java:196) at datameer.dap.common.graphv2.ConcurrentClusterSession$1.run(ConcurrentClusterSession.java:48) ... 6 more Caused by: java.lang.RuntimeException: Job job_201503171121_1154 failed! Failure info: NA at datameer.dap.sdk.util.ExceptionUtil.convertToRuntimeException(ExceptionUtil.java:49) at datameer.dap.sdk.util.ExceptionUtil.convertToRuntimeException(ExceptionUtil.java:31) at datameer.dap.common.graphv2.hadoop.MrJob.runImpl(MrJob.java:197) at datameer.dap.common.graphv2.ClusterJob.run(ClusterJob.java:129) at datameer.dap.common.graphv2.ClusterSession.execute(ClusterSession.java:189) ... 7 more Caused by: java.io.IOException: Job job_201503171121_1154 failed! Failure info: NA at datameer.dap.common.job.mr.HadoopMrJobClient.waitUntilJobCompletion(HadoopMrJobClient.java:172) at datameer.dap.common.job.mr.HadoopMrJobClient.runJobImpl(HadoopMrJobClient.java:76) at datameer.dap.common.job.mr.MrJobClient.runJob(MrJobClient.java:34) at datameer.dap.common.graphv2.hadoop.MrJob.runImpl(MrJob.java:185) ... 9 more Caused by: java.lang.RuntimeException: Task: Error: java.lang.ClassNotFoundException: datameer.das.functions.logical.OrFunction$1 at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at datameer.dap.sdk.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:59) at datameer.das.functions.logical.OrFunction.createComputor(OrFunction.java:31) at datameer.dap.common.formula.SimpleFunctionExpression.getValueComputor(SimpleFunctionExpression.java:80) at datameer.dap.common.formula.SimpleFunctionExpression.computeValue(SimpleFunctionExpression.java:41) at datameer.dap.common.graphv2.FilterRecordProcessor$1.apply(FilterRecordProcessor.java:36) at datameer.dap.common.graphv2.FilterRecordProcessor$1.apply(FilterRecordProcessor.java:31) at datameer.dap.sdk.sequence.Sequence$11.computeNext(Sequence.java:560) at datameer.dap.sdk.sequence.Sequence$Simple.moveToNext(Sequence.java:157) at datameer.dap.sdk.sequence.Sequence$13.moveToNext(Sequence.java:603) at datameer.dap.common.graphv2.hadoop.MrJobKeyValueMapper.run(MrJobKeyValueMapper.java:76) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:706) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:351) at org.apache.hadoop.mapred.Child$4.run(Child.java:282) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1122) at org.apache.hadoop.mapred.Child.main(Child.java:271)
-
Here more detail:
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:713)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: datameer.dap.sdk.util.RestException
at datameer.dap.sdk.util.ExceptionUtil.convertToRestException(ExceptionUtil.java:61)
at datameer.dap.conductor.webapp.controller.rest.RestApiController.renderRunningJobsStatus(RestApiController.java:160)
at sun.reflect.GeneratedMethodAccessor543.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)It could be related to ssl since there is something above about it and I am also getting in stdouterr.log the following: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
-
Thanks for sharing more context from the logs. This message stands out to me here:
Caused by: datameer.dap.sdk.util.
RestException This seems to be that there is some sort of other failure message that may be before or after the actual REST API exception. Perhaps there is a SQL error with pulling in the requested information. Are there any other log messages around that time with FATAL, ERROR or WARN status?
If general functionality and other REST API calls are working through SSL, it seems unlikely that there is a problem with the SSL configuration.
Please sign in to leave a comment.
Comments
9 comments