[Amazon](500150) Error setting/closing connection: Not Connected
See original GitHub issueI get the following error when running a test job from my PC. I have connectivity to the redshift cluster because at the same time I am running Aginity workbench session.
Any idea what settings can be tweaked to avoid it? it may be a timeout…
16/01/04 21:17:48 INFO RedshiftWriter: CREATE TABLE IF NOT EXISTS "staging"."messages_20160104_205059" ("message_id" ...
Exception in thread "main" java.sql.SQLException: [Amazon](500150) Error setting/closing connection: Not Connected.
at com.amazon.redshift.client.PGClient.isConnected(Unknown Source)
at com.amazon.redshift.client.PGClient.reprepareStatement(Unknown Source)
at com.amazon.redshift.dataengine.PGAbstractQueryExecutor.pushMappedParamTypes(Unknown Source)
at com.amazon.jdbc.common.SPreparedStatement.updateParameterMetadata(Unknown Source)
at com.amazon.jdbc.common.SPreparedStatement.execute(Unknown Source)
at com.databricks.spark.redshift.RedshiftWriter.com$databricks$spark$redshift$RedshiftWriter$$doRedshiftLoad(RedshiftWriter.scala:163)
at com.databricks.spark.redshift.RedshiftWriter.saveToRedshift(RedshiftWriter.scala:381)
at com.databricks.spark.redshift.DefaultSource.createRelation(DefaultSource.scala:106)
at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:170)
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:146)
at com.amazonaws.proserve.jelez.spark.kinesis2redshift.FlattenJsonToRedshiftAndS3Batch$.main(FlattenJsonToRedshiftAndS3Batch.scala:183)
Caused by: com.amazon.support.exceptions.GeneralException: [Amazon](500150) Error setting/closing connection: Not Connected.
... 11 more
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:22 (1 by maintainers)
Top Results From Across the Web
Amazon 500150 Error setting closing connection General ...
I am using SQL Workbench J to connect to the database system. The strangeness here it that the connection was working fine two...
Read more >Troubleshoot Amazon Redshift connection errors - AWS
Error: amazon 500150 error setting/closing connection: operation timed out/ connection refused. This error can indicate a permissions issue with ...
Read more >[Amazon](500150) Error setting/closing connection - Search
While loading data to Amazon Redshift using Informatica Cloud, the task fails with a Warning or Error status in the 'Activity log', or...
Read more >[Amazon](500150) Error setting/closing connection
Problem. After executing for more than one hour, tasks are failing with the error shown below: java.sql.SQLException: [Amazon](500150) Error ...
Read more >Cannot acquire connection [Amazon](500150) Error setting ...
Cannot acquire connection [Amazon](500150) Error setting/closing connection: UnknownHostException (RDB Loader) · The Redshift cluster isn't publicly accessible ( ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This worked for me…
I had the same problem as gabi-lee. I selected “No” in the “Publicly accessible” option. Consequently, despite having inbound security wide open, I was unable to connect. “Amazon Error setting/closing connection” To fix, choose your redshift cluster and then click the “cluster” drop down. Select modify and then change publicly accessible. It took about a minute or so to take effect.