Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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 ;;

Highlighted

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.

Don't have an account?
Coming from Hortonworks? Activate your account here