Classpath for compiling MapReduce jobs on Hadoop 2.2.0

How to get the correct classpath for compiling MapReduce jobs on Hadoop 2.2.0 (YARN)?

The yarn command from Hadoop 2 can find it out for you:

yarn classpath

You may add the full path to yarn which is under bin directory of the Hadoop distribution pachage, if it is not in your $PATH.

Answered by Eric Z Ma.

Eric Z Ma

Eric is a father and systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *