我试图在创建新 Universe 时使用 Impala JDBC 驱动程序。当我测试连接时,我收到以下错误:
CS:Java 异常:java.lang.UnsupportedClassVersionError:.class 文件中的版本号错误
我修改了sbo文件如下:
<DataBase Active="Yes" Name="Generic JDBC datasource">
<JDBCDriver>
<!-- Uncomment and edit the following lines
to define java classes required by JDBC driver
<ClassPath>
<Path>your jar or class files directory</Path>
</ClassPath>
-->
<ClassPath><Path>C:\impala-jdbc-0.5-2\hive-jdbc-0.10.0-cdh4.2.0.jar</Path></ClassPath>
<Parameter Name="JDBC Class">org.apache.hive.jdbc.HiveDriver</Parameter>
<Parameter Name="URL Format">jdbc:hive2://$DATASOURCE$/;auth=noSasl</Parameter>
</JDBCDriver>
<Parameter Name="Family">Generic</Parameter>
<Parameter Name="SQL External File">jdbc</Parameter>
<Parameter Name="SQL Parameter File">jdbc</Parameter>
<Parameter Name="Description File">generic_jdbc</Parameter>
<Parameter Name="Driver Capabilities">Query</Parameter>
<Parameter Name="Transactional Available">No</Parameter>
<Parameter Name="Max Rows Available">No</Parameter>
<Parameter Name="Query TimeOut Available">No</Parameter>
<Parameter Name="Array Fetch Size">10</Parameter>
</DataBase>