Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Unable to Locate csv-serde JAR

$
0
0

I am trying to import a file that has the fields quoted. I found out about the csv-serde JAR and have attempted to use this to minimal success.

I downloaded the JAR from:
https://github.com/ogrodnek/csv-serde

I added to my HDFS system in the /tmp directory.

When I try to use the View to HIVE from within Ambari I set the following:
ADD JAR /tmp/csv-serde-1.1.2-0.11.0-all.jar;

This throws an error that the file does not exist.

I then try from terminal calling hive:
hive> ADD JAR /tmp/csv-serde-1.1.2-0.11.0-all.jar;

This succeeds. I then create my EXTERNAL TABLE and then select some fields to make sure it is good from within the CLI hive environment and all works.

I then go back to the Hive View from within Ambari and when I run any type of operation on the table I get:

H110 Unable to submit statement. Error while compiling statement: FAILED: RuntimeException MetaException(message:java.lang.ClassNotFoundException Class com.bizo.hive.serde.csv.CSVSerde not found) [ERROR_STATUS]

When I try to query this from MS SQL via the ODBC drive I also get the same error.

I have looked at multiple posts on this forum about adding so and so .jar and this and that to:
/usr/lib/hive

That directory does not exit on my cluster either in the base OS level or in the HDFS file system. Where exactly, and how, should I put the .jar file such that I can query my tables outside of the hive CLI?


Viewing all articles
Browse latest Browse all 3435

Trending Articles