added HADOOP_CLASSPATH and changed parameter order

Without these changes it didn't work for me.