2016-12-01 79 views
0

試圖從Postgres的數據導入到在微軟Azure HDInsigt HDFS。現在,我開始用一個非常簡單的命令,如果上市的DBS微軟Azure HDinsight Ambari Sqoop和Postgres

sqoop list-databases --connect jdbc.postgresql://xx.xxx.xxx.xxx:yyyy --username myuser --password mypassword 

我得到以下錯誤

ERROR tool.BaseSqoopTool: Got error creating database manager: java.io.IOException: No manager for connect string: jdbc.postgresql://52.178.204.150:4321 
    at org.apache.sqoop.ConnFactory.getManager(ConnFactory.java:191) 
    at org.apache.sqoop.tool.BaseSqoopTool.init(BaseSqoopTool.java:257) 
    at org.apache.sqoop.tool.ListDatabasesTool.run(ListDatabasesTool.java:44) 
    at org.apache.sqoop.Sqoop.run(Sqoop.java:148) 
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) 
    at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:184) 
    at org.apache.sqoop.Sqoop.runTool(Sqoop.java:226) 
    at org.apache.sqoop.Sqoop.runTool(Sqoop.java:235) 
    at org.apache.sqoop.Sqoop.main(Sqoop.java:244) 

我嘗試添加以下ARGS

--libjars=/usr/share/java/postgresql-jdbc4.jar 
--driver org.postgresql.Driver 
--connection-manager org.apache.sqoop.manager.GenericJdbcManager 

這些還是不幫HDInsight手冊僅舉例說明如何使用Microsoft SQL。

回答

1

連接字符串是錯誤的:jdbc.應該jdbc:

+0

嗯,這是令人尷尬,似乎一直是問題,不知道我怎麼錯過了。現在找到驅動程序未找到問題。謝謝。 – sqwale