reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gyewon Lee <strayyy...@gmail.com>
Subject Re: Tang in Yarn - overriding a NamedParameter
Date Tue, 02 Aug 2016 06:40:49 GMT
Hi, Dylan.

In Tang NamedParameter, "default_value" is ignored when you explicitly set
your own value via JavaConfigurationBuilder (using methods like
bindNamedParameter()) or ConfigurationModule (using method 'set()' in
John's answer). So, you don't need to modify REEF source code for changing
default_value. In your case, John's solution will work quite nicely because
there is a predefined ConfigurationModule (YarnDriverConfiguration.CONF).

In other cases where the ConfigurationModule is not set for your case, then
you can bind the value for NamedParameters, like

JavaConfigurationBuilder cb =
Tang.Factory.getTang().newConfigurationBuilder();
cb.bindNamedParameter(JobSubmissionDirectoryPrefix.class,
"/path/to/job/submission/directory/prefix");
existingConfiguration.merge(cb.build());

You don't need to do like that in this case, but I hope this would help in
your future REEF programming.

Best regards,
Gyewon Lee

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message