Feedback
Did this article resolve your question/issue?

   

Article

unable to fetch external tables created using "row format serde 'org.apache.hadoop.hive.contrib.serde2.JsonSerde

Information

 
Titleunable to fetch external tables created using "row format serde 'org.apache.hadoop.hive.contrib.serde2.JsonSerde
URL Nameunable-to-fetch-external-tables-created-using-row-format-serde-org-apache-hadoop-hive-contrib-serde2-jsonserde
Article Number000172983
EnvironmentProduct: Connect for JDBC Hive driver
Version: All supported versions
OS: Java
Database: Hive
Application: All supported applications
Question/Problem Description
 Tables created using row format serde 'org.apache.hadoop.hive.contrib.serde2.JsonSerde' are not returned by Connect for JDBC Hive driver
Steps to Reproduce- Add hive-json-serde.jar to Hive classpath
hive> add jar <Location of jar>/hive-json-serde.jar
- Create a table using row format serde 'org.apache.hadoop.hive.contrib.serde2.JsonSerde'
- call metadata.getTables(null, null, "%", types);
Clarifying Information
Table was created in a session where 
Error Message
Defect Number
Enhancement Number
Cause
JsonSerde jarfile was added to the classpath at the session level while creating the table.
Jar was not on the classpath while retrieving the table.
 
Resolution
Any of the below options can be used to retrieve the tables successfully

1) Use the hive.conf variable hive.aux.jars.path or hive.reloadable.aux.jars.path to add the path to the JsonSerde jarfile, and restart the hive server. This will keep the serde jarfile available for all connections.

2) Set HIVE_AUX_JARS_PATH environment variable in the hive-env.sh or in your shell environment prior to starting the hive server. This will override any hive.aux.jars.path setting present in hive.conf.

3) Set the JDBC connection option “useNativeCatalogFunctions” to true in the connection URL.
Workaround
Notes
Last Modified Date2/18/2017 5:04 AM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.