运行Sqoop出现hcatalog does not exist!...accumulo does not exist!解决方案

有一段时间没用sqoop了,今天打开进行测试的时候,发现命令行总是出现下面这样的警示信息:

Warning: /opt/module/sqoop/bin/…/…/hcatalog does not exist! HCatalog jobs will fail.
Please set $HCAT_HOME to the root of your HCatalog installation.
Warning: /opt/module/sqoop/bin/…/…/accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.

后来在看了其他博主的记录后,成功解决。
其实从结果逆推,也应该很容易想到。命令行出现的那些算不上是异常信息的警示,无非就是sqoop一个特定脚本内容中设置的内容导致的。

解决方案:

在$SQOOP_HOME/bin目录下面修改configure-sqoop文件,
运行Sqoop出现hcatalog does not exist!...accumulo does not exist!解决方案
注释掉以下内容:
(可以通过vim的查询功能提高效率)
运行Sqoop出现hcatalog does not exist!...accumulo does not exist!解决方案
运行Sqoop出现hcatalog does not exist!...accumulo does not exist!解决方案
注释完之后,重启集群,重新打开sqoop。
运行Sqoop出现hcatalog does not exist!...accumulo does not exist!解决方案
完美解决,没有之前的warn信息后整个人也神清气爽~
运行Sqoop出现hcatalog does not exist!...accumulo does not exist!解决方案