Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-27116

Non-interactive missing for the hbase-shell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.4.12
    • None
    • shell
    • None

    Description

      During test 2.4.12, we found a lot of our integration testing failure for the non-interactive mode in hbase-shell, looks like in 2.4.12, we removed the "shell.eval_io" for the non-interactive shell, this caused the input/output handle behavior for shell is the same for interactive and non-interactive which caused unexpected error, for example:

       

      ```

      echo -e "disable_all '.*'\ny" | hbase shell -n

      =====Old version 2.4.4=====

      t1

      Disable the above 1 tables (y/n)?

      1 tables successfully disabled
      Took 0.7811 seconds

      =====New version 2.4.12=====

      hbase:001:0> disable_all '.*'t1
      test_tableDisable the above 2 tables (y/n)?
      Took 0.5270 seconds

      NoMethodError: undefined method `chomp' for nil:NilClass
      command at uri:classloader:/shell/commands/disable_all.rb:41
      command_safe at uri:classloader:/shell/commands.rb:49
      translate_hbase_exceptions at uri:classloader:/shell/commands.rb:122
      command_safe at uri:classloader:/shell/commands.rb:49
      ....
      run at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb.rb:427
      <main> at classpath:/jar-bootstrap.rb:223}}

      ```

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Li0829 Dong0829
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: