Unsupported major.minor version 52.0

Unsupported major.minor version 52.0

book

Article ID: KB0082445

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization TDV 7.0.X

Description

You would get error "Unsupported major.minor version 52.0" when you try to connect TDV data source. Sample Error Message:
"/shared/LearningPathways/Intermediate/Big_Data_Sources/Hive/HortonWorks_Hive" at
    "127.0.0.1:10000@default" with the supplied connection information.  [datasrc-3961050] Unable to connect to data source
    "/shared/LearningPathways/Intermediate/Big_Data_Sources/Hive/HortonWorks_Hive" at
    "jdbc:hive2://127.0.0.1:10000/default".  Make sure the URL information, user name and password
    are correct.  [datasrc-3961025]
Unable to load JDBC driver class "Hive 0.14 (HiveServer2)".  [datasrc-2962041]
Cause: org/apache/hive/jdbc/HiveDriver : Unsupported major.minor version 52.0 [Log ID: e9eeb84f-51ab-412f-b0e0-21da0c6f9c24]
 

Issue/Introduction

You would get error "Unsupported major.minor version 52.0" when you try to connect TDV data source.

Resolution

There error message  "Unsupported major.minor version 52.0" is coming from JDBC Driver because of JRE compatibility. There are chances that JDBC drivers might have been compiled using JRE 1.8. Since JRE 1.8 is not in TDV 7, one must stop CIS, download the latest JRE 1.8 and replace INSTALL_DIR/jre with a JRE 1.8 server installation.

Steps to upgrade JRE: 
  1. Download the JRE8 from Oracle's web site for your operating system.
  2.  Install JRE8 in any directory. For purposes of illustration, let's say that you install the JRE in C:\apps\jre8
  3. Shut down CIS, the repository, and Studio
  4.  Rename <cis_install_dir>\jre to jre_1.6.0_22
  5. Copy C:\apps\jre8 into <cis_install_dir> (make sure you rename if needed i.e. it should be <cis_install_dir>\jre and not <cis_install_dir>\jre8)
  6. Restart the repository and TDV Server
  7. Confirm in the logs that TDV started correctly