Cause:
While executing export data from HDFS to RDBMS using sqoop ,because of non existing accumulo home,this error is triggered in hadoop
[root@ip-xxx ~]# [root@ip-172-31-60-27 ~]# sqoop export --connect jdbc:mysql://localhost:3306/tes t \ > --table t \ > --username root --password 123 \ > --export-dir root/data \ > --fields-terminated-by ',' --lines-terminated-by '\n' Warning: /opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/bin/../lib/sqoop/../accumulo does not exist! Accumulo imports will fail. Please set $ACCUMULO_HOME to the root of your Accumulo installation. 21/01/15 18:48:01 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.15.1 Missing argument for option: connect
Solution:
Make a accumulo home directory in var/lib
Add the environment variable for accumulo home in the /etc/profile file
[root@ip-xxx ~]# mkdir -p /var/lib/accumulo [root@ip-xxx~]# vi /etc/profile [root@ip-xxx ~]# cat /etc/profile|grep 'ACCU' ACCUMULO_HOME=/var/lib/accumulo export ACCUMULO_HOME [root@ip-xxx ~]# source /etc/profile