gpt4 book ai didi

java - DSE sqoop 无法将 SQL Server 日期导入 Cassandra 表

转载 作者:行者123 更新时间:2023-12-01 12:59:27 26 4
gpt4 key购买 nike

目前我已经下载了 datastax 企业版 4.0 并使用 dse sqoop 将 SQL Server 迁移到 Cassandra 我收到以下错误:

错误:

sqoop.Sqoop: Got exception running Sqoop: java.lang.RuntimeException: Could not load db driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
java.lang.RuntimeException: Could not load db driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
at org.apache.sqoop.manager.SqlManager.makeConnection(SqlManager.java:653)
at org.apache.sqoop.manager.GenericJdbcManager.getConnection(GenericJdbcManager.java:52)
at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:542)
at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:565)
at org.apache.sqoop.manager.SqlManager.getColumnTypesForRawQuery(SqlManager.java:194)
at org.apache.sqoop.manager.SqlManager.getColumnTypes(SqlManager.java:178)
at org.apache.sqoop.manager.ConnManager.getColumnTypes(ConnManager.java:262)
at org.apache.sqoop.orm.ClassWriter.getColumnTypes(ClassWriter.java:1235)
at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1060)
at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:82)
at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:390)
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:476)
at org.apache.sqoop.Sqoop.run(Sqoop.java:145)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:181)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:220)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:229)
at org.apache.sqoop.Sqoop.main(Sqoop.java:238)
at com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)

我已将 sqljdbc4.jar 文件放在以下路径中

/usr/share/dse/sqoop/lib
/usr/share/dse/hadoop/lib

我仍然遇到上述错误。

最佳答案

您是否尝试过将 jar 放在/usr/share/dse/sqoop 中?

关于java - DSE sqoop 无法将 SQL Server 日期导入 Cassandra 表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23634403/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com