I am somewhat curious about what you mean by “standalone java program.”
You shouldn’t need any special configurations on the cluster.
The only thing I can think that it might be is does the hadoop version that is running on the cluster support mapreduce v2? Are you submitting your job to a cluster the was installed with HMC? Currently Hortonworks does not support mapreduce v2 as it is still in alpha.