Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-2054

Sqoop2: Client cannot understand server exceptions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.99.5
    • Component/s: None
    • Labels:
      None

      Description

      Client can't seem to handle server exceptions:

      sqoop:000> show job --jid 1
      0    [main] WARN  org.apache.hadoop.util.NativeCodeLoader  - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      Exception has occurred during processing command 
      Exception: java.lang.RuntimeException Message: java.lang.ClassNotFoundException: org.apache.sqoop.repository.common.CommonRepositoryError
      Stack trace:
               at  org.apache.sqoop.utils.ClassUtils (ClassUtils.java:65) 
               at  org.apache.sqoop.json.ThrowableBean (ThrowableBean.java:111) 
               at  org.apache.sqoop.client.request.ResourceRequest (ResourceRequest.java:127) 
               at  org.apache.sqoop.client.request.ResourceRequest (ResourceRequest.java:62) 
               at  org.apache.sqoop.client.request.ResourceRequest (ResourceRequest.java:171) 
               at  org.apache.sqoop.client.request.JobResourceRequest (JobResourceRequest.java:66) 
               at  org.apache.sqoop.client.request.SqoopResourceRequests (SqoopResourceRequests.java:126) 
               at  org.apache.sqoop.client.SqoopClient (SqoopClient.java:391) 
               at  org.apache.sqoop.shell.ShowJobFunction (ShowJobFunction.java:114) 
               at  org.apache.sqoop.shell.ShowJobFunction (ShowJobFunction.java:63) 
               at  org.apache.sqoop.shell.SqoopFunction (SqoopFunction.java:51) 
               at  org.apache.sqoop.shell.SqoopCommand (SqoopCommand.java:141) 
               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:57) 
               at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:43) 
               at  java.lang.reflect.Method (Method.java:606) 
               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:57) 
               at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:43) 
               at  java.lang.reflect.Method (Method.java:606) 
               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.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:116) 
               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:57) 
               at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:43) 
               at  java.lang.reflect.Method (Method.java:606) 
               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:57) 
               at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:43) 
               at  java.lang.reflect.Method (Method.java:606) 
               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.CallSiteArray (CallSiteArray.java:46) 
               at  org.codehaus.groovy.runtime.callsite.AbstractCallSite (AbstractCallSite.java:133) 
               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:57) 
               at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:43) 
               at  java.lang.reflect.Method (Method.java:606) 
               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) 
      

        Attachments

        1. SQOOP-2054.0.patch
          118 kB
          Richard

          Issue Links

            Activity

              People

              • Assignee:
                richard_zhou Richard
                Reporter:
                abec Abraham Elmahrek
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: