hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamal sasha <jamalsha...@gmail.com>
Subject newbie question
Date Wed, 16 Jan 2013 01:24:49 GMT
I have a mapper

    public class BuildGraph{
       public void config(JobConf job){ *<==this block doesnt seems to be
exexcuting at all :(*
        this.currentId = job.getInt("currentId",0);
        if (this.currentId!=0){
        // I call a method from differnt class to build a distributed cache
      public void map(....){

now the main code where this is called..

    public void run( String params,curId){
     JobConf conf = new JobConf(classname.class);
     conf.setInt("currentId",299); <*--note this i am setting the value here

But the problem is config method in the code is not executing as though
"currentId" returns 299 in main loop but it is not set at all in the mapper
what am i doing wrong

View raw message