Hue|Download data from Hive to local

First, enter the Hive command page and execute a command similar to the following to write the data in Hive to HDFS:

INSERT OVERWRITE DIRECTORY '[your_file_path]'
ROW FORMAT DELIMITED 
FIELDS TERMINATED BY '\t'  -- 字段分隔符
LINES TERMINATED BY '\n'  -- 行分隔符
SELECT 
    ...
FROM 
    ...;

Then enter Hue's file browser, find the HDFS file to write, and select "Action" - "Download" to download it locally. Each file needs to be clicked to download separately, and multiple files are not supported for downloading together.

Guess you like

Origin blog.csdn.net/Changxing_J/article/details/133177334