Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8793705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:09:25+00:00 2026-06-13T23:09:25+00:00

I’m starting with Hadoop framework, my task is to write map-reduce application for the

  • 0

I’m starting with Hadoop framework, my task is to write map-reduce application for the framework and and submit it. I have to use version 0.22.0 of Hadoop. I’m just learning basic concepts and API. However I find it very hard to learn it and to program some prototypes because both the official documentation and API javadocs are outdated, incomplete, generally chaotic and even non-existing.

Here are just few thinks that I do not understand: The MapReduce tutorial for Hadoop 0.22.0 uses constructor (here, line 101) of class Job that is deprecated. All other constructors are also deprecated. There is no note in the javadocs about what is to be used instead. There are static methods of class Job that return instance of Job but those methods are undocumented and they require instance of poorly documented class Cluster as parameter. So after reading all that mess I still don’t know how to properly get instance of Job. Any help on this is appreciated.

When I tried to find out the answer in tutorial to later versions like 1.0.4 stable I found out that mapreduce tutorial for that version uses all the classes from package org.apache.hadoop.mapred that are deprecated in version 0.22.0. So 0.22.0 is more resent then 1.0.4. Please help me understand this. Or suggest some better resources.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:09:26+00:00Added an answer on June 13, 2026 at 11:09 pm

    The Javadoc might be a bit confusing, therefore having a look at the source of the Job class will probably help you:

      ...
      @Deprecated
      public Job() throws IOException {
        this(new Configuration());
      }
    
      @Deprecated
      public Job(Configuration conf) throws IOException {
        this(new Cluster(conf), conf);
      }
    
      @Deprecated
      public Job(Configuration conf, String jobName) throws IOException {
        this(conf);
        setJobName(jobName);
      }
    
      Job(Cluster cluster) throws IOException {
        this(cluster, new Configuration());
      }
    
      Job(Cluster cluster, Configuration conf) throws IOException {
        super(conf, null);
        this.cluster = cluster;
      }
    
      ...
      public static Job getInstance(Cluster cluster, Configuration conf) 
          throws IOException {
        return new Job(cluster, conf);
      }
    

    So you can use:

    ...
    Configuration conf = getConf();
    Job job = Job.getInstance(new Cluster(conf), conf);
    

    Note that instantiating the Job class in this way will create at the same time a connection to the job tracker as well.

    If you want to defer doing so, you have the option to lazily initialize this connection by setting Cluster to null when creating the Job object. In this case you will let the Job class to make the connection when it’s really needed (see further information here) :

    Job job = Job.getInstance(conf);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
this is what i have right now Drawing an RSS feed into the php,
I have a small JavaScript validation script that validates inputs based on Regex. I
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.