当前位置:网站首页>Mongodb problem set
Mongodb problem set
2022-07-06 01:26:00 【I'm the real number 17】
mongo start-up
mongod --dbpath E:\MongoDB\data\db
1:MongoClient、MongoClientURI Red explosion
I tested a lot of dependencies , I don't think it can be solved by dependence , Finally, I got it right , Fierce woman crying .
Add dependency
<dependencies>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>casbah-core_2.10</artifactId>
<version>3.1.1</version>
</dependency>
</dependencies>
2:Failed to find data source: com.mongodb.spark.sql
Add dependency
<!-- spark Connect mongo The connectors -->
<dependency>
<groupId>org.mongodb.spark</groupId>
<artifactId>mongo-spark-connector_2.11</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.11</artifactId>
<version>2.3.1</version>
</dependency>
3:Caused by: java.lang.NumberFormatException: For input string: “movieId”
The data file has impurities , Manual deletion or data preprocessing can be solved 
SLF4J: Class path contains multiple SLF4J bindings.
Redundant SLF4J package
Exclude superfluous from dependencies log package
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.3.1</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
边栏推荐
- JMeter BeanShell的基本用法 一下语法只能在beanshell中使用
- JVM_ 15_ Concepts related to garbage collection
- WordPress collection plug-in automatically collects fake original free plug-ins
- 【第30天】给定一个整数 n ,求它的因数之和
- Use of crawler manual 02 requests
- 在产业互联网时代,将会凭借大的产业范畴,实现足够多的发展
- ClickOnce does not support request execution level 'requireAdministrator'
- ClickOnce 不支持请求执行级别“requireAdministrator”
- Yii console method call, Yii console scheduled task
- Obstacle detection
猜你喜欢

黄金价格走势k线图如何看?

一图看懂!为什么学校教了你Coding但还是不会的原因...

Basic process and testing idea of interface automation

Vulhub vulnerability recurrence 74_ Wordpress

Huawei converged VLAN principle and configuration

普通人下场全球贸易,新一轮结构性机会浮出水面

282. Stone consolidation (interval DP)

现货白银的一般操作方法

About error 2003 (HY000): can't connect to MySQL server on 'localhost' (10061)

ORA-00030
随机推荐
Unity VR resource flash surface in scene
【全網最全】 |MySQL EXPLAIN 完全解讀
A Cooperative Approach to Particle Swarm Optimization
Leetcode skimming questions_ Verify palindrome string II
黄金价格走势k线图如何看?
Leetcode sword finger offer 59 - ii Maximum value of queue
【已解决】如何生成漂亮的静态文档说明页
电气数据|IEEE118(含风能太阳能)
Pbootcms plug-in automatically collects fake original free plug-ins
WordPress collection plug-in automatically collects fake original free plug-ins
How does Huawei enable debug and how to make an image port
ADS-NPU芯片架构设计的五大挑战
什么是弱引用?es6中有哪些弱引用数据类型?js中的弱引用是什么?
Netease smart enterprises enter the market against the trend, and there is a new possibility for game industrialization
干货!通过软硬件协同设计加速稀疏神经网络
基于DVWA的文件上传漏洞测试
Tcpdump: monitor network traffic
Vulhub vulnerability recurrence 75_ XStream
Docker compose configures MySQL and realizes remote connection
Xunrui CMS plug-in automatically collects fake original free plug-ins