您现在的位置是:课程教程文章
kettle无法连接mongodb怎么办
2023-12-18 20:41课程教程文章 人已围观
-
【云知梦】MongoDB数据库/NoSQL实战应用
【云知梦】MongoDB数据库/NoSQL实战应用MongoDB 是一个基于分布式文件存储的数据库。由 C++ 语言编写。旨在为 WEB 应用提... -
MongoDB数据库深度剖析
MongoDB数据库深度剖析... -
Node+MongoDB从入门到实战教程
Node+MongoDB从入门到实战教程课程购买咨询和资料获取请加老师QQ 2020363447 简单的说 Node.js 就是运行在服务端... -
Node.js全栈之路第三季:MongoDB/Mongoose数据
Node.js全栈之路第三季:MongoDB/Mongoose数据...
配置好mongodb连接之后,点击预览报下面的错:
报错:
java.lang.NoClassDefFoundError: javax/crypto/spec/PBEKeySpec at com.mongodb.DBPort$ScramSha1Authenticator$ScramSha1SaslClient.Hi(DBPort.java:822) at com.mongodb.DBPort$ScramSha1Authenticator$ScramSha1SaslClient.computeClientFinalMessage(DBPort. java:747) at com.mongodb.DBPort$ScramSha1Authenticator$ScramSha1SaslClient.evaluateChallenge(DBPort.java:681) at com.mongodb.DBPort$SaslAuthenticator.authenticate(DBPort.java:904) at com.mongodb.DBPort.authenticate(DBPort.java:432) at com.mongodb.DBPort.checkAuth(DBPort.java:443) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:289) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:269) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66) at com.mongodb.DBCursor._check(DBCursor.java:498) at com.mongodb.DBCursor._hasNext(DBCursor.java:621) at com.mongodb.DBCursor.hasNext(DBCursor.java:657) at org.pentaho.mongo.wrapper.cursor.DefaultCursorWrapper.hasNext(DefaultCursorWrapper.java:34) at org.pentaho.di.trans.steps.mongodbinput.MongoDbInput.processRow(MongoDbInput.java:89) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: javax.crypto.spec.PBEKeySpec not found by org.mongodb.mongo- java-driver [59] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl. java:1532) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 17 more
解决办法:
kettle安装文件目录:data-integration\system\karaf\etc\config.properties
文件中下部有一行 org.osgi.framework.bootdelegation=(一堆参数)
在末尾处加上 ,javax.crypto,javax.crypto.*
Mongo就可以正常连接读取数据了。
python学习网,大量的免费MongoDB入门教程,欢迎在线学习!
课程教程:kettle无法连接mongodb怎么办上一篇:如何重启mongodb
下一篇:没有了