当前位置: 首页 > 工具软件 > Accumulo > 使用案例 >

[1000]Sqoop提示$ACCUMULO_HOME警告

周马鲁
2023-12-01

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检查
#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变量
#创建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

 类似资料: