Hi Avinash, The export command you can execute on any one machine in the cluster as of now. Once you have executed the export command i.e. export HADOOP_MAPRED_HOME=/path/to/your/hadoop/installation you can then execute the mapred job -list command from that very same machine.
Thanks Divye Sheth On Fri, Mar 28, 2014 at 12:57 PM, Avinash Kujur <avin...@gmail.com> wrote: > i am not getting where to set HADOOP_MAPRED_HOME and how to set. > > thanks > > > On Fri, Mar 28, 2014 at 12:06 AM, divye sheth <divs.sh...@gmail.com>wrote: > >> You can execute this command on any machine where you have set the >> HADOOP_MAPRED_HOME >> >> Thanks >> Divye Sheth >> >> >> On Fri, Mar 28, 2014 at 12:31 PM, Avinash Kujur <avin...@gmail.com>wrote: >> >>> we can execute the above command anywhere or do i need to execute it in >>> any particular directory? >>> >>> thanks >>> >>> >>> On Thu, Mar 27, 2014 at 11:41 PM, divye sheth <divs.sh...@gmail.com>wrote: >>> >>>> 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 < >>>> smart.rahul.i...@gmail.com> wrote: >>>> >>>>> Try adding the hadoop bin path to system path. >>>>> >>>>> >>>>> -Rahul Singh >>>>> >>>>> >>>>> On Fri, Mar 28, 2014 at 11:32 AM, Azuryy Yu <azury...@gmail.com>wrote: >>>>> >>>>>> it was defined at hadoop-config.sh >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Mar 28, 2014 at 1:19 PM, divye sheth <divs.sh...@gmail.com>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" <avin...@gmail.com> 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. >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >