hortonworks data platform - Cannot validate serde: org.apache.hadoop.hive.contrib.serde2.MultiDelimitSerDe -


getting execution error, return code 1 org.apache.hadoop.hive.ql.exec.ddltask. cannot validate serde: org.apache.hadoop.hive.contrib.serde2.multidelimitserde while creating table on hive. below table creation script :

create external table ratings(user_id int, movie_id int,rating int,rating_time string)  row format serde 'org.apache.hadoop.hive.contrib.serde2.multidelimitserde' serdeproperties ("field.delim"="::") location '/user/hive/ratings'; 

hdp version : 2.1.1

you facing problem because hive lib not have hive-contrib jar or hive-site.xml not pointing it.

check '/usr/lib/hive/lib' folders . there must jar hive-contrib-<version>.jar in folder

if not find jar in folder download link

please take care of correct version.

now put file hive lib folder mentioned above. can add file hive cli in 2 ways

  1. for single session :

add jar /usr/lib/hive/lib/hive-contrib-<version>.jar;

  1. for permanent solution : add hive-site.xml

    <property> <name>hive.aux.jars.path</name> <value>/usr/lib/hive/lib/*</value> </property>

    p.s: multidelimitserde class added after hive-contrib-0.13.please ensure using correct version


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -