Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: The support homepage carousel is not displaying. We are working toward a resolution.

Tasks fail in the Talend Management Console with error "java.sql.SQLException: [Amazon](500150) Error setting/closing connection: Not Connected"

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Tasks fail in the Talend Management Console with error "java.sql.SQLException: [Amazon](500150) Error setting/closing connection: Not Connected"

Last Update:

Jan 22, 2024 9:35:30 PM

Updated By:

Jamie_Gregory

Created date:

Nov 2, 2021 1:18:27 PM

After executing for more than one hour, tasks are failing with the error shown below:

java.sql.SQLException: [Amazon](500150) Error setting/closing connection: Not Connected

 This generally is caused by not having the proper security group configuration in Redshift (for example, whitelist the IP address of the server running the Spark driver).

Resolution

Get the hostname and/or IP address from the Remote Engine machine that is running the failed task.

  1. Sign in to the AWS Console.
  2. Go into the EC2 Management Console.
  3. On the left navigation pane, look for the Network & Security header and click Security Groups.
  4. Click the row with Default in the Group Name's column.
  5. Select the Inbound tab, then click Edit.
  6. Add Rule: Type=Redshift, Source=MyIP. (auto-fill)
  7. Save it.

After making the changes, use the telnet command to verify whether the connection from the Remote Engine server to Redshift is successful or not.

If the problem persists, contact AWS Redshift support to check if there's an issue on their end.

Version history
Last update:
‎2024-01-22 09:35 PM
Updated by: