当前位置:网站首页>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>
边栏推荐
- Electrical data | IEEE118 (including wind and solar energy)
- Leetcode1961. 检查字符串是否为数组前缀
- SPIR-V初窥
- How does the crystal oscillator vibrate?
- Yii console method call, Yii console scheduled task
- How to get the PHP version- How to get the PHP Version?
- General operation method of spot Silver
- Basic process and testing idea of interface automation
- [day 30] given an integer n, find the sum of its factors
- ClickOnce does not support request execution level 'requireAdministrator'
猜你喜欢
![[机缘参悟-39]:鬼谷子-第五飞箝篇 - 警示之二:赞美的六种类型,谨防享受赞美快感如同鱼儿享受诱饵。](/img/3c/ec97abfabecb3f0c821beb6cfe2983.jpg)
[机缘参悟-39]:鬼谷子-第五飞箝篇 - 警示之二:赞美的六种类型,谨防享受赞美快感如同鱼儿享受诱饵。

Kotlin basics 1
![[pat (basic level) practice] - [simple mathematics] 1062 simplest fraction](/img/b4/3d46a33fa780e5fb32bbfe5ab26a7f.jpg)
[pat (basic level) practice] - [simple mathematics] 1062 simplest fraction

Mlsys 2020 | fedprox: Federation optimization of heterogeneous networks

Opinions on softmax function

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

Who knows how to modify the data type accuracy of the columns in the database table of Damon

ThreeDPoseTracker项目解析

ADS-NPU芯片架构设计的五大挑战

Leetcode skimming questions_ Invert vowels in a string
随机推荐
Introduction to robotics I. spatial transformation (1) posture, transformation
ClickOnce 不支持请求执行级别“requireAdministrator”
Force buckle 9 palindromes
Leetcode daily question solution: 1189 Maximum number of "balloons"
Condition and AQS principle
Recommended areas - ways to explore users' future interests
Leetcode1961. 检查字符串是否为数组前缀
[Arduino syntax - structure]
IP storage and query in MySQL
Kotlin basics 1
Alibaba-Canal使用详解(排坑版)_MySQL与ES数据同步
Yii console method call, Yii console scheduled task
Spir - V premier aperçu
How to get the PHP version- How to get the PHP Version?
[technology development -28]: overview of information and communication network, new technology forms, high-quality development of information and communication industry
Leetcode 208. 实现 Trie (前缀树)
Folio.ink 免费、快速、易用的图片分享工具
[技术发展-28]:信息通信网大全、新的技术形态、信息通信行业高质量发展概览
Hcip---ipv6 experiment
Convert binary search tree into cumulative tree (reverse middle order traversal)