• 报错:Exception: org.apache.sqoop.common.SqoopException Message: DRIVER_0002:Given job is already running


    报错背景:

    创建完成job之后,执行job的时候报错。

    报错现象:

    Exception: org.apache.sqoop.common.SqoopException Message: CLIENT_0001:Server has returned exception
    Stack trace:
         at  org.apache.sqoop.client.request.ResourceRequest (ResourceRequest.java:129)  
         at  org.apache.sqoop.client.request.ResourceRequest (ResourceRequest.java:179)  
         at  org.apache.sqoop.client.request.JobResourceRequest (JobResourceRequest.java:112)  
         at  org.apache.sqoop.client.request.SqoopResourceRequests (SqoopResourceRequests.java:154)  
         at  org.apache.sqoop.client.SqoopClient (SqoopClient.java:481)  
         at  org.apache.sqoop.shell.StartJobFunction (StartJobFunction.java:75)  
         at  org.apache.sqoop.shell.SqoopFunction (SqoopFunction.java:51)  
         at  org.apache.sqoop.shell.SqoopCommand (SqoopCommand.java:127)  
         at  org.apache.sqoop.shell.SqoopCommand (SqoopCommand.java:103)  
         at  org.codehaus.groovy.tools.shell.Command$execute (null:-1)  
         at  org.codehaus.groovy.runtime.callsite.CallSiteArray (CallSiteArray.java:42)  
         at  org.codehaus.groovy.tools.shell.Command$execute (null:-1)  
         at  org.codehaus.groovy.tools.shell.Shell (Shell.groovy:101)  
         at  org.codehaus.groovy.tools.shell.Groovysh (Groovysh.groovy:-1)  
         at  sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:-2)  
         at  sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:62)  
         at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:43)  
         at  java.lang.reflect.Method (Method.java:498)  
         at  org.codehaus.groovy.reflection.CachedMethod (CachedMethod.java:90)  
         at  groovy.lang.MetaMethod (MetaMethod.java:233)  
         at  groovy.lang.MetaClassImpl (MetaClassImpl.java:1054)  
         at  org.codehaus.groovy.runtime.ScriptBytecodeAdapter (ScriptBytecodeAdapter.java:128)  
         at  org.codehaus.groovy.tools.shell.Groovysh (Groovysh.groovy:173)  
         at  sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:-2)  
         at  sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:62)  
         at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:43)  
         at  java.lang.reflect.Method (Method.java:498)  
         at  org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce (PogoMetaMethodSite.java:267)  
         at  org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite (PogoMetaMethodSite.java:52)  
         at  org.codehaus.groovy.runtime.callsite.AbstractCallSite (AbstractCallSite.java:141)  
         at  org.codehaus.groovy.tools.shell.Groovysh (Groovysh.groovy:121)  
         at  org.codehaus.groovy.tools.shell.Shell (Shell.groovy:114)  
         at  org.codehaus.groovy.tools.shell.Shell$leftShift$0 (null:-1)  
         at  org.codehaus.groovy.tools.shell.ShellRunner (ShellRunner.groovy:88)  
         at  org.codehaus.groovy.tools.shell.InteractiveShellRunner (InteractiveShellRunner.groovy:-1)  
         at  sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:-2)  
         at  sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:62)  
         at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:43)  
         at  java.lang.reflect.Method (Method.java:498)  
         at  org.codehaus.groovy.reflection.CachedMethod (CachedMethod.java:90)  
         at  groovy.lang.MetaMethod (MetaMethod.java:233)  
         at  groovy.lang.MetaClassImpl (MetaClassImpl.java:1054)  
         at  org.codehaus.groovy.runtime.ScriptBytecodeAdapter (ScriptBytecodeAdapter.java:128)  
         at  org.codehaus.groovy.runtime.ScriptBytecodeAdapter (ScriptBytecodeAdapter.java:148)  
         at  org.codehaus.groovy.tools.shell.InteractiveShellRunner (InteractiveShellRunner.groovy:100)  
         at  sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:-2)  
         at  sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:62)  
         at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:43)  
         at  java.lang.reflect.Method (Method.java:498)  
         at  org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce (PogoMetaMethodSite.java:267)  
         at  org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite (PogoMetaMethodSite.java:52)  
         at  org.codehaus.groovy.runtime.callsite.AbstractCallSite (AbstractCallSite.java:137)  
         at  org.codehaus.groovy.tools.shell.ShellRunner (ShellRunner.groovy:57)  
         at  org.codehaus.groovy.tools.shell.InteractiveShellRunner (InteractiveShellRunner.groovy:-1)  
         at  sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:-2)  
         at  sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:62)  
         at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:43)  
         at  java.lang.reflect.Method (Method.java:498)  
         at  org.codehaus.groovy.reflection.CachedMethod (CachedMethod.java:90)  
         at  groovy.lang.MetaMethod (MetaMethod.java:233)  
         at  groovy.lang.MetaClassImpl (MetaClassImpl.java:1054)  
         at  org.codehaus.groovy.runtime.ScriptBytecodeAdapter (ScriptBytecodeAdapter.java:128)  
         at  org.codehaus.groovy.runtime.ScriptBytecodeAdapter (ScriptBytecodeAdapter.java:148)  
         at  org.codehaus.groovy.tools.shell.InteractiveShellRunner (InteractiveShellRunner.groovy:66)  
         at  java_lang_Runnable$run (null:-1)  
         at  org.codehaus.groovy.runtime.callsite.CallSiteArray (CallSiteArray.java:42)  
         at  org.codehaus.groovy.runtime.callsite.AbstractCallSite (AbstractCallSite.java:108)  
         at  org.codehaus.groovy.runtime.callsite.AbstractCallSite (AbstractCallSite.java:112)  
         at  org.codehaus.groovy.tools.shell.Groovysh (Groovysh.groovy:463)  
         at  org.codehaus.groovy.tools.shell.Groovysh (Groovysh.groovy:402)  
         at  org.apache.sqoop.shell.SqoopShell (SqoopShell.java:128)  
    Caused by: Exception: org.apache.sqoop.common.SqoopException Message: DRIVER_0002:Given job is already running - Job with id 1
    Stack trace:
         at  org.apache.sqoop.driver.JobManager (JobManager.java:285)  
         at  org.apache.sqoop.handler.JobRequestHandler (JobRequestHandler.java:380)  
         at  org.apache.sqoop.handler.JobRequestHandler (JobRequestHandler.java:116)  
         at  org.apache.sqoop.server.v1.JobServlet (JobServlet.java:96)  
         at  org.apache.sqoop.server.SqoopProtocolServlet (SqoopProtocolServlet.java:79)  
         at  javax.servlet.http.HttpServlet (HttpServlet.java:646)  
         at  javax.servlet.http.HttpServlet (HttpServlet.java:723)  
         at  org.apache.catalina.core.ApplicationFilterChain (ApplicationFilterChain.java:290)  
         at  org.apache.catalina.core.ApplicationFilterChain (ApplicationFilterChain.java:206)  
         at  org.apache.hadoop.security.authentication.server.AuthenticationFilter (AuthenticationFilter.java:631)  
         at  org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter (DelegationTokenAuthenticationFilter.java:301)  
         at  org.apache.hadoop.security.authentication.server.AuthenticationFilter (AuthenticationFilter.java:579)  
         at  org.apache.catalina.core.ApplicationFilterChain (ApplicationFilterChain.java:235)  
         at  org.apache.catalina.core.ApplicationFilterChain (ApplicationFilterChain.java:206)  
         at  org.apache.catalina.core.StandardWrapperValve (StandardWrapperValve.java:233)  
         at  org.apache.catalina.core.StandardContextValve (StandardContextValve.java:191)  
         at  org.apache.catalina.core.StandardHostValve (StandardHostValve.java:127)  
         at  org.apache.catalina.valves.ErrorReportValve (ErrorReportValve.java:103)  
         at  org.apache.catalina.core.StandardEngineValve (StandardEngineValve.java:109)  
         at  org.apache.catalina.connector.CoyoteAdapter (CoyoteAdapter.java:293)  
         at  org.apache.coyote.http11.Http11Processor (Http11Processor.java:859)  
         at  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler (Http11Protocol.java:610)  
         at  org.apache.tomcat.util.net.JIoEndpoint$Worker (JIoEndpoint.java:503)  
         at  java.lang.Thread (Thread.java:748)  
    sqoop:000> 

    报错原因:

    日志中的提示信息说明,此时已经有一个job正在运行,所以报错。

    报错解决:

    查看这个job的状态:sqoop:000> status job --jid 1

    结束这个job的进程:sqoop:000> stop job --jid 1

    再次重新启动job: sqoop:000> start job --jid 1

    不再报错。

  • 相关阅读:
    arrayPointer
    shellAPP
    docker
    程序运行时内存管理
    C++ deepin
    coreOS+Docker新一代企业轻量级Linux
    玩转docker
    古典小说丛书系列软件
    读《追随智慧》(一)
    高速基于echarts的大数据可视化
  • 原文地址:https://www.cnblogs.com/chuijingjing/p/10856722.html
Copyright © 2020-2023  润新知