This is simple, but it is a frequent question:
If we need to add some specific path pointing to a thirdparty library we can run a command like the following:
$ export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/home/hadoop/.versions/Cascading-2.5-SDK/binary/cascading/*:/home/hadoop/.versions/Cascading-2.5-SDK/binary/cascading/lib/cascading-core/*
Here I am adding two directories to the hadoop classpath:
/home/hadoop/.versions/Cascading-2.5-SDK/binary/cascading/* /home/hadoop/.versions/Cascading-2.5-SDK/binary/cascading/lib/cascading-core/*
We can check the hadoop classpath with the following command:
$ hadoop classpath