Support Questions
Find answers, ask questions, and share your expertise

difference between commands in HDFS?

difference between commands in HDFS?

Contributor

what is the difference between these two commands?

a)hadoop job -list

b)mapred job -list

3 REPLIES 3

Re: difference between commands in HDFS?

@vamsi valiveti

Both seem to do the same thing i.e list yet to complete MapReduce jobs

Re: difference between commands in HDFS?

Cloudera Employee

Yes, hadoop which will call mapred for backwards compatibility:

#mapred commands for backwards compatibility pipes|job|queue|mrgroups|mradmin|jobtracker|tasktracker) echo "DEPRECATED: Use of this script to execute mapred command is deprecated." 1>&2 echo "Instead use the mapred command for it." 1>&2 echo "" 1>&2 #try to locate mapred and if present, delegate to it. shift if [ -f "${HADOOP_MAPRED_HOME}"/bin/mapred ]; then exec "${HADOOP_MAPRED_HOME}"/bin/mapred ${COMMAND/mrgroups/groups} "$@" elif [ -f "${HADOOP_PREFIX}"/bin/mapred ]; then exec "${HADOOP_PREFIX}"/bin/mapred ${COMMAND/mrgroups/groups} "$@" else echo "HADOOP_MAPRED_HOME not found!" exit 1 fi ;;

Re: difference between commands in HDFS?

Contributor

HI @eorgad

Could you please provide code in proper format by using Insert code option.It is not in readable format.