Search code examples
postgresqlamazon-web-servicesamazon-s3jdbcsqoop

No manager for connect string


As soon as my EMR-Cluster was ready to be run.

I started facing some issues when listing databases and importing sqoop

Apparently, sqoop has been installed normally and it is working normally when I type "sqoop help" in Linux terminal.

using sqoop help

as you can see, the command could be recognized normally.

However, if I try out the sqoop import command, this one cannot be and it faces an error:

sqoop import \
--connect jdbc:postgres://sportsdb.cxri########.us-east-2.rds.amazonaws.com/SportsDB \
--username postgres \
--password mypassword \
--table addresses --target-dir s3://sqoop-table-from-rds-to-s3/sqoop-table/ -m 1 --fields-terminated-by '\t' --lines-terminated-by ','

sqoop import

The same goes to the second one, which is "sqoop list-databases" as shown below:

sqoop list-databases \
--connect jdbc:postgres://sportsdb.cxri########.us-east-2.rds.amazonaws.com \
--username postgres \
--password mypassword

sqoop list-databases

they don't really works and anything happens ;/

I also downloaded jar and put into /usr/lib/sqoop/lib/ where is the jar files on sqoop

To do it I run these two follow commands:

1) wget -O postgresql-jdbc.jar https://jdbc.postgresql.org/download/postgresql-42.3.1.jar

2) sudo mv postgresql-jdbc.jar /usr/lib/sqoop/lib/

Jar file added to sqoop/lib

Someone else has a suggestion about what can be done in order to fix this issue?


Solution

  • The issue could be solved after following a tip received about a typo.

    Then, I just changed the word postgres for postgresql as follows:

    sqoop list-databases \
    --connect jdbc:postgresql://sportsdb.cxri########.us-east-2.rds.amazonaws.com \
    --username postgres \
    --password mypassword
    

    That is it. The issue was fixed just adjusting something pretty simple