• 报错: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

    不再报错。

  • 相关阅读:
    tensorflow基础【3】-Session、placeholder、feed、fetch
    tensorflow基础【2】-Variable 详解
    字符串处理、变量初始值处理、扩展的脚本技巧、正则表达式
    循环结构、while循环、case、函数及中断控制
    数值运算、条件测试、 if选择结构
    逻辑+系统管理命令
    PXE 装机服务器的搭建
    DNS服务器的功能
    RAID阵列概述,进程管理,日志管理,systemctl控制,源码包编译安装
    快照制作、vim编辑技巧、发布网络YUM源、查看本机网络连接信息
  • 原文地址:https://www.cnblogs.com/chuijingjing/p/10856722.html
Copyright © 2020-2023  润新知