hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kannan Rajah (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-2736) Job.getHistoryUrl returns empty string
Date Thu, 23 Oct 2014 19:10:34 GMT
Kannan Rajah created YARN-2736:
----------------------------------

             Summary: Job.getHistoryUrl returns empty string
                 Key: YARN-2736
                 URL: https://issues.apache.org/jira/browse/YARN-2736
             Project: Hadoop YARN
          Issue Type: Bug
          Components: api
    Affects Versions: 2.5.1
            Reporter: Kannan Rajah
            Priority: Critical


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message