$ sqoop help
Error: /home/hduser/sqoop/../hadoop-mapreduce does not exist!
Please set $HADOOP_MAPRED_HOME to the root of your Hadoop MapReduce installation.
使用一些编辑器(例如vim)将变量HADOOP_MAPRED_HOME添加到.bashrc中,
vi ~/.bashrc
并添加以下
export HADOOP_MAPRED_HOME=/home/hduser/sqoop/../hadoop-mapreduce
到你的。bashrc,然后输入
$ exec bash