hive cli.CliDriver
时间: 2023-10-24 18:31:41 浏览: 48
Hive CLI (Command Line Interface) is a command-line tool provided by Apache Hive for interacting with Hive and executing HiveQL queries on a Hive database. It is implemented as the class `CliDriver` in the Hive codebase.
The `CliDriver` class provides a command prompt where users can enter HiveQL queries and execute them against the Hive database. It parses and processes these queries using the Hive compiler, and then submits the execution plan to the Hive execution engine.
To start the Hive CLI, you can run the following command in your terminal:
```
hive
```
Once the CLI starts, you can enter your HiveQL queries and execute them against the configured Hive database. The results of the queries will be displayed on the console.
Note: Hive CLI has been deprecated since Apache Hive 2.0.0 and has been replaced by Hive Beeline. It is recommended to use Beeline as the preferred command-line interface for Hive.