sqoop从hdfs导入mysql_Sqoop从mysql导入数据HDFS出错

$ sqoop import --connect jdbc:mysql://localhost:3306/mydb --username root --P --table students -m 1 --delete-target-dir

Warning: /usr/local/sqoop/../hcatalog does not exist! HCatalog jobs will fail.

Please set $HCAT_HOME to the root of your HCatalog installation.

Warning: /usr/local/sqoop/../accumulo does not exist! Accumulo imports will fail.

Please set $ACCUMULO_HOME to the root of your Accumulo installation.

Warning: /usr/local/sqoop/../zookeeper does not exist! Accumulo imports will fail.

Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation.

2020-07-16 19:00:37,703 INFO sqoop.Sqoop: Running Sqoop version: 1.4.7

Enter password:

2020-07-16 19:00:39,154 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.

2020-07-16 19:00:39,160 INFO tool.CodeGenTool: Beginning code generation

2020-07-16 19:00:39,885 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `students` AS t LIMIT 1

2020-07-16 19:00:39,963 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `students` AS t LIMIT 1

2020-07-16 19:00:39,972 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /usr/local/hadoop

注: /tmp/sqoop-hadoop/compile/b06c6acad69cdd89c91ddf66368c2df7/students.java使用或覆盖了已过时的 API。

注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。

2020-07-16 19:00:42,793 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-hadoop/compile/b06c6acad69cdd89c91ddf66368c2df7/students.jar

2020-07-16 19:00:44,457 INFO tool.ImportTool: Destination directory students deleted.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值