[DOCS-11644] Incorrect dependencies for Spark connector v2.2.2 Created: 24/Apr/18  Updated: 29/Oct/23  Resolved: 25/Apr/18

Status: Closed
Project: Documentation
Component/s: Spark Connector
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Dmitry Ryabtsev Assignee: Jonathan DeStefano
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 5 years, 42 weeks ago

 Description   

The documentaion for Spark Connector suggests that a dependency for v2.2.2 should be used for the spark-sql_2.11 and spark-core_2.11 artefacts:

<dependencies>
  <dependency>
    <groupId>org.apache.spark</groupId>
    <artifactId>spark-core_2.11</artifactId>
    <version>2.2.2</version>
  </dependency>
  <dependency>
    <groupId>org.mongodb.spark</groupId>
    <artifactId>mongo-spark-connector_2.11</artifactId>
    <version>2.2.2</version>
  </dependency>
  <dependency>
    <groupId>org.apache.spark</groupId>
    <artifactId>spark-sql_2.11</artifactId>
    <version>2.2.2</version>
  </dependency>
</dependencies>

That contradicts with the dependencies that are listed for mongo-spark-connector v2.2.2 on Maven Central.

Also if I try to use the dependencies example from the docs in my own project, the spark-sql_2.11 and spark-core_2.11 v2.2.2 packages cannot be found - most likely because these versions simply don't exist:



 Comments   
Comment by Jonathan DeStefano [ 25/Apr/18 ]

Merged and published Ross' fix PR on 4/24.

Comment by Ross Lawley [ 24/Apr/18 ]

Really sorry jonathan.destefano, I messed up the PR in DOCS-11636 and was overzealous in updating the version numbers.

Fixed in: https://github.com/mongodb/docs-spark-connector/pull/18

Generated at Thu Feb 08 08:03:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.