xmldataset

Loading xml data into hive table :org.apache.hadoop.hive.ql.metadata.HiveException

谁都会走 提交于 2019-12-03 13:54:41
问题 I'm trying to load XML data into Hive but I'm getting an error : java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {"xmldata":""} The xml file i have used is : <?xml version="1.0" encoding="UTF-8"?> <catalog> <book> <id>11</id> <genre>Computer</genre> <price>44</price> </book> <book> <id>44</id> <genre>Fantasy</genre> <price>5</price> </book> </catalog> The hive query i have used is : 1) Create TABLE xmltable(xmldata string)

Loading xml data into hive table :org.apache.hadoop.hive.ql.metadata.HiveException

做~自己de王妃 提交于 2019-12-03 04:56:18
I'm trying to load XML data into Hive but I'm getting an error : java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {"xmldata":""} The xml file i have used is : <?xml version="1.0" encoding="UTF-8"?> <catalog> <book> <id>11</id> <genre>Computer</genre> <price>44</price> </book> <book> <id>44</id> <genre>Fantasy</genre> <price>5</price> </book> </catalog> The hive query i have used is : 1) Create TABLE xmltable(xmldata string) STORED AS TEXTFILE; LOAD DATA lOCAL INPATH '/home/user/xmlfile.xml' OVERWRITE INTO TABLE xmltable; 2)