[1000]Sqoop提示$ACCUMULO_HOME警告

2021-06-01 21:11:20 浏览数 (1)

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环境变量,没有找到所以做出警告,其实也可以忽略。

解决办法两种:

  1. 到Sqoop配置文件中$SQOOP_HOME/bin/configure-sqoop,注释掉Accumulo检查
代码语言:javascript复制
#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
  1. 导入$ACCUMULO_HOME变量
代码语言:javascript复制
#创建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

0 人点赞