RE: Passing Args to Mappers and Reducers

2015-10-06 Thread Naganarasimha G R (Naga)
Hi Ista, In general we need to give after specifying the class name like ./yarn jar ../share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-3.0.0-SNAPSHOT.jar sleep -Dmapreduce.job.queuename=default -m 10 -r 1 -mt 5000 i think in your case it should be

Re: Passing Args to Mappers and Reducers

2015-10-06 Thread Varun Saxena
Two configurations are used to pass command line opts to mappers and reducers. These are mapreduce.map.java.opts and mapreduce.reduce.java.opts for mappers and reducers respectively. There is a configuration named mapred.child.java.opts if you want same arguments to be passed to both mappers and

Re: Passing Args to Mappers and Reducers

2015-10-06 Thread Istabrak Abdul-Fatah
Hi Naga, Thx for the follow up. Still not working. Here are the invocation errors and the source code. [image: Inline image 1] public class AvgSix extends Configured implements Tool{ public static void main(String[] args) throws Exception { Configuration conf = new Configuration();

RE: Passing Args to Mappers and Reducers

2015-10-06 Thread Naganarasimha G R (Naga)
Hi Ista, In general we need to give after specifying the class name like ./yarn jar ../share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-3.0.0-SNAPSHOT.jar sleep -Dmapreduce.job.queuename=default -m 10 -r 1 -mt 5000 I think in your case it should be "yarn jar

WritableComparator implements Configurable

2015-10-06 Thread paco
Hi, I am trying to get the object Configuration (created from my main file) from my custom object WritableComparator: My custom object WritableComparator public class KeyComparator extends WritableComparator implements Configurable { private Configuration conf; public

Yarn doesn't start mappers fast enough

2015-10-06 Thread gmail
Hallo everyone, I have a problem with my yarn setup and hope you can help me. I already searched for this issue but didn't find anything. My problem is that yarn doesn’t start new mappers fast enough. This results in a poor cluster utilization. Setup: - 8 nodes @64cores+128GB - Hadoop

Fw: new message

2015-10-06 Thread Jason Sun
Hello! New message, please read Jason Sun

Fw: new message

2015-10-06 Thread Help Desk
Hello! New message, please read Help Desk

Fw: new message

2015-10-06 Thread ACM Local Activities
Hello! New message, please read ACM Local Activities

Fw: new message

2015-10-06 Thread Ram
Hello! New message, please read Ram

Fw: new message

2015-10-06 Thread Vinod Kumar Vavilapalli
Hello! New message, please read Vinod Kumar Vavilapalli

Fw: new message

2015-10-06 Thread Leon Gu
Hello! New message, please read Leon Gu

Fw: new message

2015-10-06 Thread Zhu Tao
Hello! New message, please read Zhu Tao

Fw: new message

2015-10-06 Thread Grace Hui Yang
Hello! New message, please read Grace Hui Yang

Fw: new message

2015-10-06 Thread Carnegie Mellon Alumni Relations
Hello! New message, please read Carnegie Mellon Alumni Relations

Fw: new message

2015-10-06 Thread Y . H .
Hello! New message, please read Y.H.

Fw: new message

2015-10-06 Thread Stephan Vogel
Hello! New message, please read Stephan Vogel

Fw: new message

2015-10-06 Thread Jack Gmail
Hello! New message, please read Jack Gmail

Fw: new message

2015-10-06 Thread Stephan Vogel
Hello! New message, please read Stephan Vogel

Fw: new message

2015-10-06 Thread sajid mohammed
Hello! New message, please read sajid mohammed

Fw: new message

2015-10-06 Thread Y . H .
Hello! New message, please read Y.H.

Fw: new message

2015-10-06 Thread Linda Hager
Hello! New message, please read Linda Hager

Fw: new message

2015-10-06 Thread Changkuk Yoo
Hello! New message, please read Changkuk Yoo

Fw: new message

2015-10-06 Thread Benjamin Lambert
Hello! New message, please read Benjamin Lambert

Fw: new message

2015-10-06 Thread Eric Nyberg
Hello! New message, please read Eric Nyberg

Fw: new message

2015-10-06 Thread W . Zhu
Hello! New message, please read W. Zhu

Fw: new message

2015-10-06 Thread Mike Grzywinski
Hello! New message, please read Mike Grzywinski

Fw: new message

2015-10-06 Thread Maxine Eskenazi
Hello! New message, please read Maxine Eskenazi

Fw: new message

2015-10-06 Thread Eric Nyberg
Hello! New message, please read Eric Nyberg

Fw: new message

2015-10-06 Thread Dipanjan Das
Hello! New message, please read Dipanjan Das

Fw: new message

2015-10-06 Thread Ram
Hello! New message, please read Ram

Fw: new message

2015-10-06 Thread KayVajj
Hello! New message, please read KayVajj

Fw: new message

2015-10-06 Thread Amit Mittal
Hello! New message, please read Amit Mittal

{Spam?} Fw: new message

2015-10-06 Thread lezhao
Hello! New message, please read lez...@cs.cmu.edu

Fw: new message

2015-10-06 Thread Amit Mittal
Hello! New message, please read Amit Mittal

Fw: new message

2015-10-06 Thread Krishna Rao
Hello! New message, please read Krishna Rao

Fw: new message

2015-10-06 Thread Meryem Pinar Donmez
Hello! New message, please read Meryem Pinar Donmez

Fw: new message

2015-10-06 Thread Jason Chen
Hello! New message, please read Jason Chen

Fw: new message

2015-10-06 Thread Andy Tumas
Hello! New message, please read Andy Tumas

Fw: new message

2015-10-06 Thread Mary Jo Bensasi
Hello! New message, please read Mary Jo Bensasi

Fw: new message

2015-10-06 Thread Dana Houston
Hello! New message, please read Dana Houston

Fw: new message

2015-10-06 Thread OIE
Hello! New message, please read OIE

Fw: new message

2015-10-06 Thread Changkuk Yoo
Hello! New message, please read Changkuk Yoo

Fw: new message

2015-10-06 Thread zhang lixin
Hello! New message, please read zhang lixin

Fw: new message

2015-10-06 Thread mining98
Hello! New message, please read minin...@hotmail.com

Passing Args to Mappers and Reducers

2015-10-06 Thread Istabrak Abdul-Fatah
Greetings to all, Is it possible to pass args to Mapper and Reducers via the command line args. I need to pass some args upon the MapRed job invocation so that I can pass these args via the Context object to the Mapper and Reducer code. I am currently running Hadoop2.7 and tried to pass some args

Re: Passing Args to Mappers and Reducers

2015-10-06 Thread Shahab Yunus
Are you properly implementing the Tool interface? https://hadoopi.wordpress.com/2013/06/05/hadoop-implementing-the-tool-interface-for-mapreduce-driver/ Also, there needs to be space between -D and the param name. Regards, Shahab On Tue, Oct 6, 2015 at 9:22 AM, Istabrak Abdul-Fatah

Re: Passing Args to Mappers and Reducers

2015-10-06 Thread Varun Saxena
Hi Istabrak, Sorry had misunderstood your query a little. The code written is a little bit wrong. You are not really using the Tool class. You can change the code as under : public static void main(String[] argv) throws Exception { int ret = ToolRunner.run(null, new AvgSix(), argv));

Re: Passing Args to Mappers and Reducers

2015-10-06 Thread Istabrak Abdul-Fatah
Hi Shahab, Thx for the quick reply. Yes, I am using the tool interface and can run the job successfully. I need to pass some extra args dynamically as part of the invocation. I have tried adding a space after the -D option and it did not work either (see below). ~]$ yarn -D ista="66" jar