Programmatically submitting jobs to a remote Hadoop cluster