Pass Job Parameters using Hadoop Command Line RRS feed

  • Question

  • How do i pass job parameters to a hadoop job

    When i run the below using hadoop command prompt, it works fine

    hadoop jar hdg.jar /shaka/input2 -output /shaka/output9 

    But, when i tried to run the below , it failed to run. I also tried to pass the config using -D parameter, that also did not work

    hadoop jar hdg.jar -conf myconf.xml -input /shaka/input2 -output /shaka/output9

    Error msg

    Usage: MaxTemperature <input path> <output path>

    Sunday, May 3, 2015 4:43 AM