0

我正在寻找将 db 表内容导出到 csv 文件中。为此,我发现 Apache Sqoop 的速度非常快。并导入hdfs。

我可以使用Apache Sqoop for Oracle 11g成功导入到 hdfs 。现在,当我尝试使用 Sybase 数据库时。它没有完成任务和情况,就像什么都没发生一样。

命令使用...

                "import"
                , "--driver", "com.sybase.jdbc4.jdbc.SybDriver"
                , "--connect"
                , "jdbc:sybase:Tds:192.168.1.151:5002?ServiceName=test1"
                , "--username", "tejkiran", "--password", "passw0rd"
                , "--table", "PIN"
                , "-m", "1"
                , "--target-dir", "/tmp/HELLO/tej01"

日志详细信息...

16:51:38.249 [main] WARN  org.apache.sqoop.tool.SqoopTool - 
$SQOOP_CONF_DIR has not been set in the environment. Cannot check for additional configuration.
16:51:38.442 [main] DEBUG com.cloudera.sqoop.SqoopOptions - Generated nonce dir: /tmp/sqoop-hduser/compile/7c374682d26b0ab8b800a1bbbbccd726
16:51:38.547 [main] WARN  org.apache.sqoop.tool.BaseSqoopTool - Setting your password on the command-line is insecure. Consider using -P instead.
16:51:38.586 [main] WARN  org.apache.sqoop.ConnFactory - $SQOOP_CONF_DIR has not been set in the environment. Cannot check for additional configuration.
16:51:38.750 [main] DEBUG org.apache.sqoop.ConnFactory - Loaded manager factory: com.cloudera.sqoop.manager.DefaultManagerFactory
16:51:38.751 [main] DEBUG org.apache.sqoop.ConnFactory - Trying ManagerFactory: com.cloudera.sqoop.manager.DefaultManagerFactory
16:51:38.803 [main] INFO  org.apache.sqoop.manager.SqlManager - Using default fetchSize of 1000
16:51:38.803 [main] DEBUG org.apache.sqoop.ConnFactory - Instantiated ConnManager org.apache.sqoop.manager.GenericJdbcManager@50246923
16:51:38.803 [main] INFO  org.apache.sqoop.tool.CodeGenTool - Beginning code generation
16:51:40.279 [main] DEBUG org.apache.sqoop.manager.SqlManager - No connection paramenters specified. Using regular API for making connection.
16:51:41.147 [main] DEBUG org.apache.sqoop.manager.SqlManager - Using fetchSize for next query: 1000
16:51:41.164 [main] INFO  org.apache.sqoop.manager.SqlManager - Executing SQL statement: SELECT t.* FROM PIN AS t WHERE 1=0

在此声明之后没有更新日志,并且

4

0 回答 0