hive xml serDe : table is empty

前端 未结 5 585
我在风中等你
我在风中等你 2021-01-21 12:38

I want to store xml data into hive table, XML data :


   1266 
     

        
5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-21 12:54

    According to Hive DDL documentation, LOCATION clause expects an hdfs_path. Hence, try specifying only the directory, not the whole path to your XML file. By using LOAD after CREATE TABLE, you cannot have external tables, which might be an interesting approach in some cases.

    Reference: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Create/Drop/TruncateTable

提交回复
热议问题