我试图将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文件夹中,但无法连接。错误如下
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)发布于 2022-07-01 18:55:48
您还需要下载Apache文件,因为它包含错误中报告的类,而不是任何commons-lang类。
请注意: Sqoop是一个退役的Apache项目,建议您寻找其他替代方案。
https://stackoverflow.com/questions/72576635
复制相似问题