I have installed greenplum in a AWS linux system and when i am trying to connect to greenplum from java code i am getting an error :
exception in thread "main" org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
How to solve this issue?