Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hive3: JSON and XML SerDe?

Hive3: JSON and XML SerDe?

New Contributor

@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
Highlighted

Re: Hive3: JSON and XML SerDe?

Expert Contributor

@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.

Re: Hive3: JSON and XML SerDe?

New Contributor
@Steven Matison

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

Did you tested these with Hive3 or previous versions?

Don't have an account?
Coming from Hortonworks? Activate your account here