Wisdom Gurung
Wisdom Gurung

Reputation: 21

SQOOP: export $HADOOP_MAPRED_HOME error

I encoutered this problem while trying to launch sqoop. I got an error:

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

Any advice and help would be appreciated!!
bj

Upvotes: 1

Views: 6621

Answers (2)

Amandeep Gupta
Amandeep Gupta

Reputation: 161

Add export HADOOP_MAPRED_HOME=$HADOOP_HOME in your .bashrc.

Upvotes: 2

ProGM
ProGM

Reputation: 7108

There is a typo. You don't have to add the $ before the variable name when you use export.

export HADOOP_MAPRED_HOME=/usr/local/hadoop

Upvotes: 3

Related Questions