首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >NoClassDefFoundError: org/apache/commons/lang/StringUtils

NoClassDefFoundError: org/apache/commons/lang/StringUtils
EN

Stack Overflow用户
提问于 2022-06-10 15:22:46
回答 1查看 52关注 0票数 0

我试图将sqoop (1.4.7)连接到服务器版本:8.0.290-onubuntu0.22.04.2,使用mysql-连接器-java-8.0.12.jar在hadoop-3.3.3 system.Have上将.jar文件放置在sqoop的lib文件夹中,但无法连接。错误如下

代码语言:javascript
复制
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)
EN

回答 1

Stack Overflow用户

发布于 2022-07-01 18:55:48

您还需要下载Apache文件,因为它包含错误中报告的类,而不是任何commons-lang类。

请注意: Sqoop是一个退役的Apache项目,建议您寻找其他替代方案。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72576635

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档