Sqoop运行提示警告: Warning: /opt/cloudera/parcels/CDH-5.16.1-1.cdh5.16.1.p0.3/bin/…/lib/sqoop/…/accumulo does not exist! Accumulo imports will fail. Please set $ACCUMULO_HOME to the root of your Accumulo installation.
主要是因为Sqoop加载$ACCUMULO_HOME环境变量,没有找到所以做出警告,其实也可以忽略。
解决办法两种:
- 到Sqoop配置文件中
$SQOOP_HOME/bin/configure-sqoop
,注释掉Accumulo检查
#if [ ! -d "${ACCUMULO_HOME}" ]; then
# echo "Warning: $ACCUMULO_HOME does not exist! Accumulo imports will fail."
# echo 'Please set $ACCUMULO_HOME to the root of your Accumulo installation.'
#fi
- 导入
$ACCUMULO_HOME
变量
#创建accumulo文件夹
sudo mkdir /var/lib/accumulo
vim /etc/profile
#导入accumulo变量
export ACCUMULO_HOME=/var/lib/accumulo
source /etc/profile
参考:https://blog.csdn.net/lingeio/article/details/95195466