Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error to run #5

Open
CDGodoy opened this issue Dec 25, 2022 · 1 comment
Open

Error to run #5

CDGodoy opened this issue Dec 25, 2022 · 1 comment

Comments

@CDGodoy
Copy link

CDGodoy commented Dec 25, 2022

Hi! Thanks for making this docker available.

I'm facing a problem, when executing the command 'df = spark.read.format("mongo").load()'

I get the error: 'Py4JJavaError: An error occurred while calling o38.load.
: com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches com.mongodb.client.internal.MongoClientDelegate$1@5a79e. Client view of cluster state is {type=REPLICA_SET, servers=[{address=mongo1:27017, type=REPLICA_SET_GHOST, roundTripTime=1.3 ms, state=CONNECTED}, {address=mongo2:27018, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: mongo2}, caused by {java.net.UnknownHostException: mongo2}}, {address=mongo3:27019, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: mongo3 }, caused by {java.net.UnknownHostException: mongo3}}]'

I'm using the image in windows 10, running with the command './run.ps1' in windows powershell

@RWaltersMA
Copy link
Owner

For some reason the MongoDB cluster is not running within the Docker container, check it with
'docker ps'. I'll have to spin this up in a Windows environment to see if anything has changed within docker and the MongoDB latest version. For now, you can just point your MongoDB connection to a MongoDB Atlas cluster use the free tier. https://www.mongodb.com/cloud/atlas/signup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants