What are different Hive commands available for hive and beeline CLI?
Answer / Nirbhay Kumar
"Hive supports several common SQL-like commands such as SELECT, FROM, WHERE, GROUP BY, JOIN, UNION, INSERT, DELETE, and DROP. Additionally, Hive provides specific commands like:
1. CREATE TABLE - creates a table with specified schema.
2. DESCRIBE - describes the structure of the specified table or database.
3. DESCRIBE EXTENDED - provides additional information about the table, such as storage location, partitioning details, and statistics.
4. ALTER TABLE - modifies the properties or structure of an existing table.
5. CREATE DATABASE - creates a new database in Hive.
6. SHOW - lists all databases, tables, partitions, functions, serdes, etc.
7. EXPLAIN - explains how Hive plans to execute the given SQL query.
8. BEGIN TRANSACTION, COMMIT, and ROLLBACK - manage transactions in Hive.
9. LOAD DATA - loads data from an external file into a table or partition.
10. TRUNCATE TABLE - removes all rows from the specified table without actually deleting them.
Beeline CLI, which is a shell for Hive, also supports commands like SET, SHOW VARIABLES, and EXIT.".
| Is This Answer Correct ? | 0 Yes | 0 No |
What is bucketing in Hive?
Mention what is ObjectInspector functionality in Hive?
Can we load data into a view?
Explain REVERSE function in Hive with example?
Is hive suitable to be used for oltp systems? Why?
what is partitions in hive?
Is it possible to create cartesian join between 2 tables, using hive?
what does /*streamtable(table_name)*/ do?
I want to see the present working directory in UNIX from hive. Is it possible to run this command from hive?
Why Hive is not suitable for OLTP systems?
Where is table data stored in Apache Hive by default?
What are the different Complex Data Types available in Hive?
Apache Hadoop (394)
MapReduce (354)
Apache Hive (345)
Apache Pig (225)
Apache Spark (991)
Apache HBase (164)
Apache Flume (95)
Apache Impala (72)
Apache Cassandra (392)
Apache Mahout (35)
Apache Sqoop (82)
Apache ZooKeeper (65)
Apache Ambari (93)
Apache HCatalog (34)
Apache HDFS Hadoop Distributed File System (214)
Apache Kafka (189)
Apache Avro (26)
Apache Presto (15)
Apache Tajo (26)
Hadoop General (407)