How to load xml file into Hive

前端 未结 2 1627
故里飘歌
故里飘歌 2021-01-06 17:43

Im working on Hive tables im having the following problem. I am having more than 1 billion of xml files in my HDFS. What i want to do is, Each xml file having the 4 differe

2条回答
  •  不思量自难忘°
    2021-01-06 17:56

    Use this:

    CREATE EXTERNAL TABLE test(name STRING) LOCATION '/user/sornalingam/zipped/output/Tagged/t1'
    
    tblproperties ("skip.header.line.count"="1", "skip.footer.line.count"="1");
    

    And then use xpath function

提交回复
热议问题