incubator-s4-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu Morel <>
Subject Re: Passing arguments to the adapter code.
Date Wed, 19 Dec 2012 22:43:19 GMT
Hi Shailendra,

you should define named and injectable parameters in your app, eg a field like:
MyTypeConvertibleFromString param

then pass it to the adapter node by adding it to the inline parameters:,myParam=myValue

You may find more information on the relevant wiki page here:

We also updated the input adapter of the twitter example in the yarn
integration branch, and it uses the same approach:

Hope this helps!


On Wed, Dec 19, 2012 at 9:39 PM, Shailendra Mishra
<> wrote:
> Hi:
> I would like to pass a value to the adapter code through command line.
> I know the answer for the case where I need to pass an output stream
> which I do as follows:
> ./s4 adapter -appClass=partitioner.RawMktDataIA1 -c=clustera
> Now suppose I want to pass a portNo or a topic name in case I am
> getting messages from jms; what is the syntax in that case ?
> - Shailendra

View raw message