因为单节点虚拟机中没安装HBase、HCatalog 和Accumulo以及Zookeeper,所以报下列错误:
`Warning: /usr/sqoop/sqoop-1.4.7.bin__hadoop-2.6.0/../hbase does not exist! HBase imports will fail.
Please set $HBASE_HOME to the root of your HBase installation.
Warning: /usr/sqoop/sqoop-1.4.7.bin__hadoop-2.6.0/../hcatalog does not exist! HCatalog jobs will fail.
Please set $HCAT_HOME to the root of your HCatalog installation.
Warning: /usr/sqoop/sqoop-1.4.7.bin__hadoop-2.6.0/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
Warning: /usr/sqoop/sqoop-1.4.7.bin__hadoop-2.6.0/../zookeeper does not exist! Accumulo imports will fail.
Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation.`
解决方法
cd
到sqoop 的bin目录下,执行vim configure-sqoop
,然后注释掉从##Moved to be a runtime check in sqoop
开始,到# Where to find the main Sqoop jar
之间与HBase、HCatalog 和Accumulo以及Zookeeper相关的内容,如截图所示:
在文件末尾也注释掉对应内容并保存:
之后便可以正常运行: