sqoop -noclassdeffounderror:org/apache/commons/lang/stringutils
我正在尝试将SQOOP(1.4.7)连接到服务器版本:ubuntu0.22.04.2上的8.0.29-0 mysql-connector-java-8.0.0.12.jar在hadoop-3.3.3 system.jar上放置了.jar文件在SQoop的LIB文件夹中,但无法连接。错误如下
Warning: /home/hadoop/sqoop-1.4.7/../hbase does not exist! HBase imports will fail.
Please set $HBASE_HOME to the root of your HBase installation.
Warning: /home/hadoop/sqoop-1.4.7/../hcatalog does not exist! HCatalog jobs will fail.
Please set $HCAT_HOME to the root of your HCatalog installation.
Warning: /home/hadoop/sqoop-1.4.7/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
Warning: /home/hadoop/sqoop-1.4.7/../zookeeper does not exist! Accumulo imports will fail.
Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation.
2022-06-10 20:50:12,792 INFO sqoop.Sqoop: Running Sqoop version: 1.4.7
2022-06-10 20:50:12,815 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
2022-06-10 20:50:12,919 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
at org.apache.sqoop.manager.MySQLManager.initOptionDefaults(MySQLManager.java:73)
Am trying to connect sqoop (1.4.7) to Server version: 8.0.29-0 on ubuntu0.22.04.2 using
mysql-connector-java-8.0.12.jar on a hadoop-3.3.3 system.Have placed the .jar file in sqoop's lib folder but unable to connect. The error is as follows
Warning: /home/hadoop/sqoop-1.4.7/../hbase does not exist! HBase imports will fail.
Please set $HBASE_HOME to the root of your HBase installation.
Warning: /home/hadoop/sqoop-1.4.7/../hcatalog does not exist! HCatalog jobs will fail.
Please set $HCAT_HOME to the root of your HCatalog installation.
Warning: /home/hadoop/sqoop-1.4.7/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
Warning: /home/hadoop/sqoop-1.4.7/../zookeeper does not exist! Accumulo imports will fail.
Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation.
2022-06-10 20:50:12,792 INFO sqoop.Sqoop: Running Sqoop version: 1.4.7
2022-06-10 20:50:12,815 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
2022-06-10 20:50:12,919 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
at org.apache.sqoop.manager.MySQLManager.initOptionDefaults(MySQLManager.java:73)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还需要下载Apache
CONSON-LANG
JAR文件,因为它包含在错误中报告的类,而不是任何MySQL类。请注意:Sqoop是一个退休的Apache项目,建议您找到其他选择。
You need to also download Apache
commons-lang
JAR file, since that contains the class that is reported in the error, not any MySQL classes.Please note: Sqoop is a retired Apache project, and it's suggested to find other alternatives.