设为首页收藏本站 开启辅助访问
 找回密码
 立即注册

QQ登录

只需一步,快速开始

用新浪微博登录

只需一步,快速搞定

查看: 1282|回复: 5

[未解决] kettle 6.0 连接hbase 获取hbase表报错 unknowhost

[复制链接]

2

主题

3

帖子

20

积分

新手上路

Rank: 1

积分
20
发表于 2017-1-13 10:12:34 | 显示全部楼层 |阅读模式
java.lang.RuntimeException: java.net.UnknownHostException: D
        at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2513)
        at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2376)
        at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2283)
        at org.apache.hadoop.conf.Configuration.set(Configuration.java:1019)
        at org.apache.hadoop.conf.Configuration.set(Configuration.java:991)
        at org.Kettle.org" target="_blank" class="relatedlink">Pentaho.hbase.shim.common.CommonHBaseConnection.configureConnection(CommonHBaseConnection.java:134)
        at org.pentaho.di.trans.steps.hbaseoutput.HBaseOutputData.getHBaseConnection(HBaseOutputData.java:103)
        at org.pentaho.di.trans.steps.hbaseoutput.HBaseOutputDialog.getHBaseConnection(HBaseOutputDialog.java:796)
        at org.pentaho.di.trans.steps.hbaseoutput.HBaseOutputDialog.setupMappedTableNames(HBaseOutputDialog.java:806)
        at org.pentaho.di.trans.steps.hbaseoutput.HBaseOutputDialog.access$900(HBaseOutputDialog.java:83)
        at org.pentaho.di.trans.steps.hbaseoutput.HBaseOutputDialog$7.widgetSelected(HBaseOutputDialog.java:385)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
        at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
        at org.pentaho.di.trans.steps.hbaseoutput.HBaseOutputDialog.open(HBaseOutputDialog.java:589)
        at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:125)
        at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8728)
        at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:3032)
        at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:755)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
        at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
        at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1339)
        at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7939)
        at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9214)
        at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:653)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Caused by: java.net.UnknownHostException: D
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
        at java.net.Socket.connect(Socket.java:589)
        at java.net.Socket.connect(Socket.java:538)
        at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:957)
        at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:917)
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1012)
        at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:998)
        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)
        at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393)
        at java.net.URL.openStream(URL.java:1038)
        at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2342)
        at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2410)
        ... 34 more
楼主热帖

0

主题

3

帖子

24

积分

新手上路

Rank: 1

积分
24
发表于 2018-1-10 20:42:46 | 显示全部楼层
请问这个问题解决了吗?我也遇到了,求帮助

0

主题

3

帖子

24

积分

新手上路

Rank: 1

积分
24
发表于 2018-1-11 20:05:23 | 显示全部楼层
有人知道吗

0

主题

3

帖子

24

积分

新手上路

Rank: 1

积分
24
发表于 2018-1-17 09:51:43 | 显示全部楼层
这个问题是由于本地windows的hosts文件没有配置集群ip和主机名造成的,还有就是如果你的kettle安装在windows上面,指向hbase-site.xml的路径前面需要加上file:///(亲测通过)

点评

我的按照你的解决了,棒棒哒  发表于 2018-8-6 14:54

0

主题

6

帖子

21

积分

新手上路

Rank: 1

积分
21
发表于 2018-8-6 09:05:53 | 显示全部楼层
仔仔 发表于 2018-1-17 09:51
这个问题是由于本地windows的hosts文件没有配置集群ip和主机名造成的,还有就是如果你的kettle安装在window ...

我的还是不行,你有其他方法吗
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋| μKettle ( 沪ICP备14044064号 )     

GMT+8, 2018-8-18 00:34 , Processed in 0.078527 second(s), 17 queries , File On.

Powered by Discuz!  uKettle

Copyright © 2014 Comsenz Inc.

快速回复 返回顶部 返回列表