Loading Data from a .txt file to Table Stored as ORC in Hive

后端 未结 5 908
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 01:30

I have a data file which is in .txt format. I am using the file to load data into Hive tables. When I load the file in a table like

CREATE TABL         


        
5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-01 02:06

    Steps to load data into ORC file format in hive

    1.Create one normal table using textFile format

    2.Load the data normally into this table

    3.Create one table with the schema of the expected results of your normal hive table using stored as orcfile

    4.Insert overwrite query to copy the data from textFile table to orcfile table

    Refer the blog to learn the handson of how to load data into all file formats in hive

    Load data into all file formats in hive

提交回复
热议问题