Question: how to export data from hive table to excel?
Answer: Step 1: Create Output directory. mkdir /root/local_bdp/posts/export-hive-data-into-file/output.
Step 2: Go to hive CLI and execute the following code. set hive. cli. print. header=true; INSERT OVERWRITE LOCAL DIRECTORY '/root/local_bdp/posts/export-hive-data-into-file/output' ROW FORMAT DELIMITED.