SQOOP:导出$ HADOOP_MAPRED_HOME错误

时间:2014-10-12 18:09:26

标签: sqoop

我在尝试启动sqoop时遇到了这个问题。我收到了一个错误:

gurung@ubuntu:~$ sqoop;
Error: /usr/local/sqoop/bin/../../hadoop-mapreduce does not exist!
Please set $HADOOP_MAPRED_HOME to the root of your Hadoop MapReduce installation.
gurung@ubuntu:~$ export $HADOOP_MAPRED_HOME=/usr/local/hadoop
bash: export: `=/usr/local/hadoop': not a valid identifier

任何建议和帮助将不胜感激!!
BJ

2 个答案:

答案 0 :(得分:3)

有一个错字。使用$时,您不必在变量名称前添加export

export HADOOP_MAPRED_HOME=/usr/local/hadoop

答案 1 :(得分:1)

export HADOOP_MAPRED_HOME=$HADOOP_HOME

中添加.bashrc