How to load/add a jar file in Hive – Installing JSONSerDe in a CDH environment

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

How to install, configure Json capability in CDH distribution

The Cloudera(CDH) distribution is not coming with json capability, in order to use that you will need to add/install your own

There are 3 options to add/load a jar file if you use the cloudera(CDH) distribution

Get the JSONSerDe compiled jar file from the below link

http://www.congiu.net/hive-json-serde/1.3.7/cdh5/
Get the source from the below link and compile your self
https://github.com/rcongiu/Hive-JSON-Serde

How to compile the java library

Get the JSONSerDe java source from
https://github.com/cloudera/cdh-twitter-example/blob/master/hive-serdes/src/main/java/com/cloudera/hive/serde/JSONSerDe.java

Now compile the java library

Leave a Reply

avatar
  Subscribe  
Notify of