Support Questions
Find answers, ask questions, and share your expertise

Hive3: JSON and XML SerDe?

@Shu @Geoffrey Shelton Okot @Matt Burgess

Hi,

We have JSON and XML files in HDFS and need both SerDe(s), so we can use Hive External Tables to load into Hive Managed Partitioned Tables via NiFi.

Environment:

  • HDP 3.0 (hive3)
  • HDF 3.2
  • Tableau

Looking forward.

2 REPLIES 2

@Mustafa Ali Qizilbash

This should be what you are looking for:

ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'

https://github.com/rcongiu/Hive-JSON-Serde

https://stackoverflow.com/questions/41453646/loading-json-file-in-hive-table

And for XML:

https://github.com/dvasilen/Hive-XML-SerDe

https://github.com/dvasilen/Hive-XML-SerDe/wiki/XML-data-sources

If this answer is helpful, please choose ACCEPT to mark the question as answered.

@Steven Matison

These SerDe(s) are not working with Hive3 in HDP3.0

Did you tested these with Hive3 or previous versions?