kettle认证问题

新人帖[复制链接]
发表于 : 2017-12-8 17:03:06 最新回复:2019-04-16 20:55:52
4244 2
fapwlh
fapwlh  

  求助帖: (未解决)
不知道哪里出问题了,始终无法用kettle链接FusionInsight_V100R002C60SPC203,kettle版本用的是8,在客户端机器用kinit认证什么的都没问题,在客户端可以操作集群组件,但kettle始终报如下错误,有知道的大神给看看吧,谢谢了
Caused by: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
    at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:211)
    at org.apache.hadoop.security.SaslRpcClient.saslConnect(SaslRpcClient.java:421)
    at org.apache.hadoop.ipc.Client$Connection.setupSaslConnection(Client.java:581)
    at org.apache.hadoop.ipc.Client$Connection.access$1900(Client.java:394)
    at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:764)
    at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:760)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1728)
    at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:759)
    ... 56 more
Caused by: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
    at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147)
    at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)
    at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)
    at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)
    at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)
    at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
    at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:192)
    ... 65 more
16:16:46,047 INFO  [RetryInvocationHandler] Exception while invoking getFileInfo of class ClientNamenodeProtocolTranslatorPB over zdpserverc/192.168.0.207:25000 after 9 fail over attempts. Trying to fail over immediately.
java.io.IOException: Failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]; Host Details : local host is: "ubtServerA/10.211.55.3"; destination host is: "zdpserverc":25000;
    at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:773)
    at org.apache.hadoop.ipc.Client.call(Client.java:1515)
    at org.apache.hadoop.ipc.Client.call(Client.java:1447)
    at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
    at com.sun.proxy.$Proxy81.getFileInfo(Unknown Source)
    at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:776)
    at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:201)
    at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:103)
    at com.sun.proxy.$Proxy82.getFileInfo(Unknown Source)
    at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1794)
    at org.apache.hadoop.hdfs.DistributedFileSystem$25.doCall(DistributedFileSystem.java:1387)
    at org.apache.hadoop.hdfs.DistributedFileSystem$25.doCall(DistributedFileSystem.java:1383)
    at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
    at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1383)
    at com.pentaho.big.data.bundles.impl.shim.hdfs.HadoopFileSystemImpl$4.call(HadoopFileSystemImpl.java:80)
    at com.pentaho.big.data.bundles.impl.shim.hdfs.HadoopFileSystemImpl$4.call(HadoopFileSystemImpl.java:78)
    at com.pentaho.big.data.bundles.impl.shim.hdfs.HadoopFileSystemImpl.callAndWrapExceptions(HadoopFileSystemImpl.java:208)
    at com.pentaho.big.data.bundles.impl.shim.hdfs.HadoopFileSystemImpl.getFileStatus(HadoopFileSystemImpl.java:78)
    at org.pentaho.big.data.impl.vfs.hdfs.HDFSFileObject.doGetType(HDFSFileObject.java:70)
    at org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:1517)
    at org.pentaho.vfs.ui.VfsBrowser$11.run(VfsBrowser.java:536)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
    at org.pentaho.vfs.ui.VfsBrowser.populateFileSystemTree(VfsBrowser.java:616)
    at org.pentaho.vfs.ui.VfsBrowser.resetVfsRoot(VfsBrowser.java:502)
    at org.pentaho.vfs.ui.VfsFileChooserDialog.resolveVfsBrowser(VfsFileChooserDialog.java:1108)
    at org.pentaho.vfs.ui.VfsFileChooserDialog.setSelectedFile(VfsFileChooserDialog.java:1143)
    at org.pentaho.vfs.ui.VfsFileChooserDialog.open(VfsFileChooserDialog.java:513)
    at org.pentaho.big.data.kettle.plugins.hdfs.trans.HadoopFileOutputDialog$29.widgetSelected(HadoopFileOutputDialog.java:1262)
    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.big.data.kettle.plugins.hdfs.trans.HadoopFileOutputDialog.open(HadoopFileOutputDialog.java:1316)
    at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:127)
    at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8728)
    at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:3214)
    at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:780)
    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:1366)
    at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7984)
    at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9245)
    at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:692)
    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:498)
    at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Caused by: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
    at org.apache.hadoop.ipc.Client$Connection$1.run(Client.java:722)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1728)
    at org.apache.hadoop.ipc.Client$Connection.handleSaslConnectionFailure(Client.java:685)
    at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:772)
    at org.apache.hadoop.ipc.Client$Connection.access$2900(Client.java:394)
    at org.apache.hadoop.ipc.Client.getConnection(Client.java:1564)
    at org.apache.hadoop.ipc.Client.call(Client.java:1486)
    ... 53 more
Caused by: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
    at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:211)
    at org.apache.hadoop.security.SaslRpcClient.saslConnect(SaslRpcClient.java:421)
    at org.apache.hadoop.ipc.Client$Connection.setupSaslConnection(Client.java:581)
    at org.apache.hadoop.ipc.Client$Connection.access$1900(Client.java:394)
    at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:764)
    at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:760)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1728)
    at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:759)
    ... 56 more
Caused by: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
    at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147)
    at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)
    at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)
    at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)
    at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)
    at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
    at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:192)
    ... 65 more
16:16:46,057 WARN  [RetryInvocationHandler] Exception while invoking class org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo over zdpserverb/192.168.0.206:25000. Not retrying because failovers (10) exceeded maximum allowed (10)
java.io.IOException: Failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]; Host Details : local host is: "ubtServerA/10.211.55.3"; destination host is: "zdpserverb":25000;
    at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:773)
    at org.apache.hadoop.ipc.Client.call(Client.java:1515)
    at org.apache.hadoop.ipc.Client.call(Client.java:1447)
    at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
    at com.sun.proxy.$Proxy81.getFileInfo(Unknown Source)
    at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:776)
    at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:201)
    at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:103)
    at com.sun.proxy.$Proxy82.getFileInfo(Unknown Source)
    at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1794)
    at org.apache.hadoop.hdfs.DistributedFileSystem$25.doCall(DistributedFileSystem.java:1387)
    at org.apache.hadoop.hdfs.DistributedFileSystem$25.doCall(DistributedFileSystem.java:1383)
    at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
    at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1383)
    at com.pentaho.big.data.bundles.impl.shim.hdfs.HadoopFileSystemImpl$4.call(HadoopFileSystemImpl.java:80)
    at com.pentaho.big.data.bundles.impl.shim.hdfs.HadoopFileSystemImpl$4.call(HadoopFileSystemImpl.java:78)
    at com.pentaho.big.data.bundles.impl.shim.hdfs.HadoopFileSystemImpl.callAndWrapExceptions(HadoopFileSystemImpl.java:208)
    at com.pentaho.big.data.bundles.impl.shim.hdfs.HadoopFileSystemImpl.getFileStatus(HadoopFileSystemImpl.java:78)
    at org.pentaho.big.data.impl.vfs.hdfs.HDFSFileObject.doGetType(HDFSFileObject.java:70)
    at org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:1517)
    at org.pentaho.vfs.ui.VfsBrowser$11.run(VfsBrowser.java:536)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
    at org.pentaho.vfs.ui.VfsBrowser.populateFileSystemTree(VfsBrowser.java:616)
    at org.pentaho.vfs.ui.VfsBrowser.resetVfsRoot(VfsBrowser.java:502)
    at org.pentaho.vfs.ui.VfsFileChooserDialog.resolveVfsBrowser(VfsFileChooserDialog.java:1108)
    at org.pentaho.vfs.ui.VfsFileChooserDialog.setSelectedFile(VfsFileChooserDialog.java:1143)
    at org.pentaho.vfs.ui.VfsFileChooserDialog.open(VfsFileChooserDialog.java:513)
    at org.pentaho.big.data.kettle.plugins.hdfs.trans.HadoopFileOutputDialog$29.widgetSelected(HadoopFileOutputDialog.java:1262)
    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.big.data.kettle.plugins.hdfs.trans.HadoopFileOutputDialog.open(HadoopFileOutputDialog.java:1316)
    at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:127)
    at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8728)
    at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:3214)
    at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:780)
    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:1366)
    at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7984)
    at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9245)
    at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:692)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


  • x
  • 常规:

点评 回复

跳转到指定楼层
坚卓
坚卓  导师 发表于 2017-12-8 17:18:17 已赞(1) 赞(1)

你好
从错误来看,还是认证和业务交互的配合问题。
请参考如下这个链接的kettle对接总结(搜“kettle”):https://fusioninsight.gitbooks.io/ecosystem/content/
  • x
  • 常规:

点评 回复

c00313340
c00313340   发表于 2019-4-16 20:55:52 已赞(0) 赞(0)

使用本地缓存票据存在以下问题:kettle只在启动时读取一次票据,而不是连接时实时读取当前票据信息,所以当kettle启动时获取的票据过期以后,连接Hive会失败,必须重启kettle。

  • x
  • 常规:

点评 回复

发表回复
您需要登录后才可以回帖 登录 | 注册

警告 内容安全提示:尊敬的用户您好,为了保障您、社区及第三方的合法权益,请勿发布可能给各方带来法律风险的内容,包括但不限于政治敏感内容,涉黄赌毒内容,泄露、侵犯他人商业秘密的内容,侵犯他人商标、版本、专利等知识产权的内容,侵犯个人隐私的内容等。也请勿向他人共享您的账号及密码,通过您的账号执行的所有操作,将视同您本人的行为,由您本人承担操作后果。详情请参看“隐私声明
如果附件按钮无法使用,请将Adobe Flash Player 更新到最新版本!
登录参与交流分享

登录参与交流分享

登录