How to access value of variable in Driver class which has been declared and modified inside Mapper class?

This is for Hadoop eco system like HDFS, Map reduce, Hive, Hbase, Pig, sqoop,sqoop2, Avro, solr, hcatalog, impala, Oozie, Zoo Keeper and Hadoop distribution like Cloudera, Hortonwork etc.
mina1234
Posts: 72
Joined: Tue May 05, 2015 7:08 pm
Contact:

How to access value of variable in Driver class which has been declared and modified inside Mapper class?

Postby mina1234 » Wed Sep 30, 2015 11:05 pm

How to access value of variable in Driver class which has been declared and modified inside Mapper class?

I declared a variable and incremented/modified it inside Mapper class. Now I need to use the modified value of that variable in Driver class.

I declared a static variable inside Mapper class and its modified value works in Driver class when I run the code in Eclipse IDE. But after creating that code as a runable jar from Eclipse and run jar file as “$ hadoop jar filename.jar input output” modified value does not reflect (value is 0) in Driver class


Return to “Hadoop and Big Data”

Who is online

Users browsing this forum: No registered users and 7 guests