I believe you are using Hadoop 2. In order to get the mapred working you need to set the HADOOP_MAPRED_HOME path in either your /etc/profile or .bashrc file or you can use the command given below to temporarily set the variable.
export HADOOP_MAPRED_HOME=$HADOOP_INSTALL $HADOOP_INSTALL is the location where the hadoop tar ball is extracted. This should work for you. Thanks Divye Sheth On Fri, Mar 28, 2014 at 11:53 AM, Rahul Singh <[email protected]>wrote: > Try adding the hadoop bin path to system path. > > > -Rahul Singh > > > On Fri, Mar 28, 2014 at 11:32 AM, Azuryy Yu <[email protected]> wrote: > >> it was defined at hadoop-config.sh >> >> >> >> On Fri, Mar 28, 2014 at 1:19 PM, divye sheth <[email protected]>wrote: >> >>> Which version of hadoop are u using? AFAIK the hadoop mapred home is the >>> directory where hadoop is installed or in other words untarred. >>> >>> Thanks >>> Divye Sheth >>> On Mar 28, 2014 10:43 AM, "Avinash Kujur" <[email protected]> wrote: >>> >>>> hi, >>>> >>>> when i am trying to execute this command: >>>> hadoop job -history ~/1 >>>> its giving error like: >>>> DEPRECATED: Use of this script to execute mapred command is deprecated. >>>> Instead use the mapred command for it. >>>> >>>> HADOOP_MAPRED_HOME not found! >>>> >>>> from where can i get HADOOP_MAPRED_HOME? >>>> >>>> thanks. >>>> >>> >> >
