尝试将Windows Pentaho连接到虚拟机HDFS时出错



我是Pentaho和大数据的新手......每次我尝试将Windows Pentaho连接到基于Linux的虚拟机HDFS时。弹出此错误。.我尝试了几种解决方案,但没有任何运气......如果你们中的任何人能想出一个解决方案,我将不胜感激......提前感谢...!!

Error connecting to database [hadoop] :org.pentaho.di.core.exception.KettleDatabaseException: Error occurred while trying to connect to the database

Error connecting to database: (using class org.apache.hadoop.hive.jdbc.HiveDriver) No suitable driver found for jdbc:hive://(virtual machine's ip address):10000/test

必须在类路径中具有 Hive JDBC 驱动程序。可以通过扩展 CLASSPATH 以包含 Hive JDBC jar 来包含它。

set CLASSPATH=%CLASSPATH%;%HIVE_HOME%\lib\hive-jdbc-1.1.0-cdh5.10.1.jar

如果没有其他错误,您应该通过!

如果您使用的是 Java 应用程序,则可以使用以下方法获取连接对象:Connection con = DriverManager.getConnection("jdbc:hive2://172.16.149.158:10000/default", "hive", ");

哪里172.16.149.158 是 Hive 服务器地址,10000 是默认配置单元端口

请使用 telnet 命令检查连接是否成功。

$ telnet 'hive-server' 'hive-port'它应该成功连接。

还可以使用 Pentaho 向导与 hive db 连接。来自Pentaho维基的链接:http://wiki.pentaho.com/display/BAD/Create+Hive+Database+Connection

最新更新