Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2736

Job.getHistoryUrl returns empty string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.1
    • None
    • api
    • None

    Description

      getHistoryUrl() method in Job class is returning empty string. Example code:

      job = Job.getInstance(conf);
      job.setJobName("MapReduceApp");
      job.setJarByClass(MapReduceApp.class);

      job.setMapperClass(Mapper1.class);
      job.setCombinerClass(Reducer1.class);
      job.setReducerClass(Reducer1.class);

      job.setMapOutputKeyClass(Text.class);
      job.setMapOutputValueClass(IntWritable.class);
      job.setOutputKeyClass(Text.class);
      job.setOutputValueClass(IntWritable.class);

      job.setNumReduceTasks(1);

      job.setOutputFormatClass(TextOutputFormat.class);
      job.setInputFormatClass(TextInputFormat.class);

      FileInputFormat.addInputPath(job, inputPath);
      FileOutputFormat.setOutputPath(job, outputPath);

      job.waitForCompletion(true);
      job.getHistoryUrl();

      It is always returning empty string. Looks like getHistoryUrl() support was removed in YARN-321.

      getTrackingURL() returns correct url though.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rkannan82 Kannan Rajah
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: