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

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

2. 导入$ACCUMULO_HOME变量

#创建accumulo文件夹
sudo mkdir /var/lib/accumulo

#导入accumulo变量
export ACCUMULO_HOME=/var/lib/accumulo

 

 类似资料: