Mongodb to CDAP table

62 views
Skip to first unread message

hesam d108

unread,
Feb 21, 2022, 2:08:53 AM2/21/22
to CDAP User
Hi, I am a new user at CDAP
I follow Learn CDAP: MongoDB to CDAP Table Youtube tutorial video, but when I click run, It will return error:

"Spark program 'phase-1' failed with error: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]. Please check the system logs for more details."

Why I take this error, I did anything like official Youtube video

Mongodb congif CDAP.png

JS CDAP.png

CDAP table.png
 
and my mongodb service is running correctly:

Mongodb.png

error:
CDAP error.png

Fernando Velasquez

unread,
Feb 28, 2022, 11:40:49 AM2/28/22
to CDAP User
Greetings.

As far as I can tell, the error you get indicates that the MongoDB server not accepting the connection coming from the CDAP runtime (Sandbox or Hadoop cluster).

I would suggest you review your firewall settings and ensure that the CDAP runtime has permissions to connect to the MongoDB server on Localhost.
Reply all
Reply to author
Forward
0 new messages