Hi Martin, > Do you have tried this already?
No, I missed that line in the help string. It works now, thank you! Roman On Tue, Oct 15, 2013 at 11:53 AM, Martin Illecker <[email protected]> wrote: > Hi Roman, > > Hama Pipes does support the -conf and -D option, but maybe there is a > problem with the Python wrapper. > > I have explained the CLI usage in Edward's JIRA ticket [1]. > > Both options -conf and -D are genericOptions and must be specified before > other pipesOptions. > > bin/hama pipes [genericOptions] [pipesOptions] > > e.g., > hama pipes -conf job.xml <otherOptions> > hama pipes -D property1=value1 <otherOptions> > hama pipes -D kmeans.max.iterations=1000 <otherOptions> > > Do you have tried this already? > > Please submit your full command. > > Thanks! > > Martin > > [1] https://issues.apache.org/jira/browse/HAMA-810 > > > > 2013/10/15 Roman Shapovalov <[email protected]> > >> Edward, thanks. >> >> > Alternatively, I think you can use the program arguments instead of >> configuration variables. >> >> So, for using it within Python wrapper, I should pass the arguments >> after the class name in -programArgs and hack the BSPRunner script, >> right? >> >> Regards, >> Roman >> >> On Tue, Oct 15, 2013 at 3:01 AM, Edward J. Yoon <[email protected]> >> wrote: >> > Hi Roman, >> > >> > Sorry for inconvenience. I checked current source code[1] and it seems >> that there's no way to specify an application configuration variables. So, >> I filed on JIRA[2]. >> > >> >> peer.config.get("kmeans.max.iterations") >> > >> > Alternatively, I think you can use the program arguments instead of >> configuration variables. >> > >> > 1. >> http://svn.apache.org/repos/asf/hama/trunk/core/src/main/java/org/apache/hama/pipes/Submitter.java >> > 2. https://issues.apache.org/jira/browse/HAMA-810 >> > >> > -- >> > Best Regards, Edward J. Yoon >> > @eddieyoon >> > >> > On Oct 15, 2013, at 12:17 AM, Roman Shapovalov < >> [email protected]> wrote: >> > >> >> Hi all, >> >> >> >> The k-means example for Hama Streaming contains lines like >> >> peer.config.get("kmeans.max.iterations") >> >> >> >> How to set such application-specific parameters from outside? >> >> I tried to use -D and -conf options for "hama pipes", but they were >> >> not recognized. >> >> >> >> Thanks, >> >> Roman >> > >>
