Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10511

Replacing the implementation of Hive CLI using Beeline

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 0.10.0
    • None
    • CLI
    • None

    Description

      Hive CLI is a legacy tool which had two main use cases:
      1. a thick client for SQL on hadoop
      2. a command line tool for HiveServer1.

      HiveServer1 is already deprecated and removed from Hive code base, so use case #2 is out of the question. For #1, Beeline provides or is supposed to provides equal functionality, yet is implemented differently from Hive CLI.

      As it has been a while that Hive community has been recommending Beeline + HS2 configuration, ideally we should deprecating Hive CLI. Because of wide use of Hive CLI, we instead propose replacing Hive CLI's implementation with Beeline plus embedded HS2 so that Hive community only needs to maintain a single code path. In this way, Hive CLI is just an alias to Beeline at either shell script level or at high code level. The goal is that no changes or minimum changes are expected from existing user scrip using Hive CLI.

      This is an Umbrella JIRA covering all tasks related to this initiative. Over the last year or two, Beeline has been improved significantly to match what Hive CLI offers. Still, there may still be some gaps or deficiency to be discovered and fixed. In the meantime, we also want to make sure the enough tests are included and performance impact is identified and addressed.

      Attachments

        Issue Links

          1.
          Create tests to cover existing (supported) Hive CLI functionality Sub-task Resolved Ferdinand Xu
          2.
          Measure Hive CLI's performance difference before and after implementation is switched Sub-task Resolved Ferdinand Xu
          3.
          Implement hive cli options using beeline functionality Sub-task Resolved Ferdinand Xu
          4.
          Update the initial script to make beeline bucked cli as default and allow user choose old hive cli by env Sub-task Resolved Ferdinand Xu
          5.
          Add deprecation message to HiveCLI Sub-task Reopened Szehon Ho
          6.
          Beeline-CLI: Implement in-place update UI for CLI compatibility Sub-task Open Unassigned
          7.
          Document Beeline/CLI changes Sub-task Resolved Ferdinand Xu
          8.
          Beeline-CLI: Implement CLI source command using Beeline functionality Sub-task Resolved Ferdinand Xu
          9.
          CLI start script throwing error message on console Sub-task Resolved Chinna Rao Lalam
          10.
          CLI start script throwing error message on console Sub-task Resolved Chinna Rao Lalam
          11.
          Need to update start script changes in .cmd files Sub-task Resolved Ferdinand Xu
          12.
          Support CLI specific configurations with beeline functionality Sub-task Resolved Chinna Rao Lalam
          13.
          Quit&Exit fails ending with ';' [beeline-cli Branch] Sub-task Resolved Chinna Rao Lalam
          14.
          Use beeline-log4j.properties for migrated CLI [beeline-cli Branch] Sub-task Resolved Chinna Rao Lalam
          15.
          Beeline-cli: Enable precommit for beelie-cli branch Sub-task Resolved Ferdinand Xu
          16.
          Beeline-cli: support hive.cli.errors.ignore in new CLI Sub-task Resolved Ferdinand Xu
          17.
          BeeLine-Cli: support hive.cli.prompt in new CLI Sub-task Resolved Ferdinand Xu
          18.
          BeeLine-Cli: use the same output format as old CLI in the new CLI Sub-task Resolved Ferdinand Xu
          19.
          Merge master to beeline-cli branch 07/14/2015 Sub-task Resolved Xuefu Zhang
          20.
          Support executing script file from hdfs in new CLI [Beeline-CLI branch] Sub-task Resolved Ferdinand Xu
          21.
          Support initial file option for new CLI [beeline-cli branch] Sub-task Resolved Ferdinand Xu
          22.
          Avoid the double connections with 'e' option[beeline-cli branch] Sub-task Resolved Ferdinand Xu
          23.
          Support HCAT command in new Hive CLI[beeline-cli branch] Sub-task Resolved Ke Jia
          24.
          Invoke the set command will close standard error output[beeline-cli] Sub-task Resolved Ferdinand Xu
          25.
          Beeline-cli: support hive.cli.print.header in new CLI[beeline-cli branch] Sub-task Resolved Ke Jia
          26.
          Support hive.cli.print.current.db in new CLI[beeline-cli branch] Sub-task Resolved Ferdinand Xu
          27.
          Shell command doesn't work for new CLI[Beeline-cli branch] Sub-task Resolved Ferdinand Xu
          28.
          Discrepency in INSERT OVERWRITE LOCAL DIRECTORY between Beeline and CLI Sub-task Open Unassigned
          29.
          nohup mode is not support for new hive cli Sub-task Resolved Ferdinand Xu
          30.
          Connect command should not to be allowed from user[beeline-cli branch] Sub-task Resolved Ferdinand Xu
          31.
          Merge master to beeline-cli branch 09/09/2015 Sub-task Resolved Ferdinand Xu
          32.
          Use the static variable from beeline instead of untils from JDBC Sub-task Resolved Ferdinand Xu
          33.
          Merge beeline-cli branch to trunk Sub-task Closed Ferdinand Xu
          34.
          CLI option is not updated when executing the initial files[beeline-cli] Sub-task Resolved Ferdinand Xu
          35.
          Set old CLI as the default Client when using hive script Sub-task Resolved Ferdinand Xu
          36.
          Address the review items on HIVE-11778 Sub-task Resolved Ferdinand Xu
          37.
          Merge master to beeline-cli branch 09/25/2015 Sub-task Resolved Ferdinand Xu
          38.
          Fix default value of USE_DEPRECATED_CLI in cli.cmd Sub-task Resolved Vihang Karajgaonkar

          Activity

            People

              Ferd Ferdinand Xu
              xuefuz Xuefu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated: