当前位置:网站首页>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>
边栏推荐
- 【已解决】如何生成漂亮的静态文档说明页
- Gartner released the prediction of eight major network security trends from 2022 to 2023. Zero trust is the starting point and regulations cover a wider range
- MYSQL---查询成绩为前5名的学生
- Dedecms plug-in free SEO plug-in summary
- Format code_ What does formatting code mean
- 3D模型格式汇总
- internship:项目代码所涉及陌生注解及其作用
- Recommended areas - ways to explore users' future interests
- Recursive method converts ordered array into binary search tree
- MATLB|实时机会约束决策及其在电力系统中的应用
猜你喜欢
yii中console方法调用,yii console定时任务
500 lines of code to understand the principle of mecached cache client driver
XSS learning XSS lab problem solution
About error 2003 (HY000): can't connect to MySQL server on 'localhost' (10061)
servlet(1)
False breakthroughs in the trend of London Silver
干货!通过软硬件协同设计加速稀疏神经网络
Mathematical modeling learning from scratch (2): Tools
有谁知道 达梦数据库表的列的数据类型 精度怎么修改呀
Leetcode skimming questions_ Invert vowels in a string
随机推荐
Huawei converged VLAN principle and configuration
直播系统代码,自定义软键盘样式:字母、数字、标点三种切换
Use of crawler manual 02 requests
2022 Guangxi Autonomous Region secondary vocational group "Cyberspace Security" competition and its analysis (super detailed)
朝招金安全吗 会不会亏损本金
Electrical data | IEEE118 (including wind and solar energy)
Leetcode skimming questions_ Sum of squares
Redis' cache penetration, cache breakdown, cache avalanche
Unity | two ways to realize facial drive
JVM_ 15_ Concepts related to garbage collection
How to see the K-line chart of gold price trend?
伦敦银走势中的假突破
Leetcode 剑指 Offer 59 - II. 队列的最大值
FFT 学习笔记(自认为详细)
General operation method of spot Silver
SPIR-V初窥
500 lines of code to understand the principle of mecached cache client driver
Internship: unfamiliar annotations involved in the project code and their functions
servlet(1)
Daily practice - February 13, 2022