$ sqoop help
Error: /home/hduser/sqoop/../hadoop-mapreduce does not exist!
Please set $HADOOP_MAPRED_HOME to the root of your Hadoop MapReduce installation.
答案 0 :(得分:1)
使用某个编辑器将变量HADOOP_MAPRED_HOME添加到.bashrc,例如vim,
vi ~/.bashrc
并添加以下内容
export HADOOP_MAPRED_HOME=/home/hduser/sqoop/../hadoop-mapreduce
到.bashrc然后输入
$ exec bash
在终端中刷新环境变量。