You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by ishwar ramani <rv...@gmail.com> on 2009/08/20 22:07:51 UTC
passing job arguments as an xml file
Hi,
I am looking at an easy way to passing the job arguments trough a config file.
The genericoptionsparser seems to parse only the hadoop options.
Normally i use jsap but that would not co-exist with genericoptionsparser ....
thanks
ishwar
RE: passing job arguments as an xml file
Posted by Amogh Vasekar <am...@yahoo-inc.com>.
Hi,
GenericOptionsParser is customized only for Hadoop specific params :
* <code>GenericOptionsParser</code> recognizes several standarad command
* line arguments, enabling applications to easily specify a namenode, a
* jobtracker, additional configuration resources etc.
Ideally, all params must be passed via Tool interface. In my application, I have a custom serialiizer/deseralizer classes to parse any xml file I might be supplying, which I use to generate some metadata. This can be a part of the above interface as well. Hope this helps.
Thanks,
Amogh
-----Original Message-----
From: ishwar ramani [mailto:rvmishwar@gmail.com]
Sent: Friday, August 21, 2009 1:38 AM
To: common-user
Subject: passing job arguments as an xml file
Hi,
I am looking at an easy way to passing the job arguments trough a config file.
The genericoptionsparser seems to parse only the hadoop options.
Normally i use jsap but that would not co-exist with genericoptionsparser ....
thanks
ishwar