Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-1162

Sqoop2: 'show option' should have help entry showing that 'all' arg can be used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.99.2
    • 2.0.0
    • None
    • None

    Description

      The show option command doesn't produce any option, even when options have been set through the ~/.sqoop2rc file. But show option all does produce the desired output. The 'help show option' command should have text to show the user that 'all' is an acceptable arg.

      sqoop:000> help option
      Exception has occurred during processing command 
      Exception: org.apache.sqoop.common.SqoopException Message: CLIENT_0001:The specified command is not recognized - Unrecognized command option
      Stack trace:
      	 at  org.apache.sqoop.client.shell.HelpCommand (HelpCommand.java:128)  
      	 at  org.apache.sqoop.client.shell.HelpCommand (HelpCommand.java:64)  
      	 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:39)  
      	 at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:25)  
      	 at  java.lang.reflect.Method (Method.java:597)  
      	 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:39)  
      	 at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:25)  
      	 at  java.lang.reflect.Method (Method.java:597)  
      	 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.GeneratedMethodAccessor17 (null:-1)  
      	 at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:25)  
      	 at  java.lang.reflect.Method (Method.java:597)  
      	 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.GeneratedMethodAccessor16 (null:-1)  
      	 at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:25)  
      	 at  java.lang.reflect.Method (Method.java:597)  
      	 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:39)  
      	 at  sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:25)  
      	 at  java.lang.reflect.Method (Method.java:597)  
      	 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.client.shell.SqoopShell (SqoopShell.java:126)  
      

      Attachments

        1. SQOOP-1162.2.patch
          6 kB
          Mengwei Ding
        2. SQOOP-1162.1.patch
          3 kB
          Mengwei Ding

        Issue Links

          Activity

            People

              mengweid Mengwei Ding
              mengweid Mengwei Ding
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: