sqoop连接不上mysql_sqoop出错,读不了mysql

在尝试使用 Sqoop 导入 MySQL 数据库中的 'trade_detail' 表时遇到连接超时和文件找不到的问题。执行 Sqoop 命令时显示警告,提示 HBase 和 HCatalog 的路径不存在,并最终抛出 Communications link failure 错误,导致导入失败。
摘要由CSDN通过智能技术生成

[root@itcast03 lib]# ./sqoop import --connect jdbc:mysql://192.168.1.10:3306/itcast --username root --password 123  --table trade_detail --target-dir ‘/sqoop/td‘ --fields-terminated-by ‘\t‘

-bash: ./sqoop: No such file or directory

[root@itcast03 lib]# cd ../

[root@itcast03 sqoop-1.4.4]# cd bin

[root@itcast03 bin]# clear

[root@itcast03 bin]# ./sqoop import --connect jdbc:mysql://192.168.1.10:3306/itcast --username root --password 123  --table trade_detail --target-dir ‘/sqoop/td‘ --fields-terminated-by ‘\t‘

Warning: /usr/lib/hbase does not exist! HBase imports will fail.

Please set $HBASE_HOME to the root of your HBase installation.

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

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

15/09/16 09:03:56 WARN tool.BaseSqoopTool: Setting your password on the command-l

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值