ACK Chris. https://issues.apache.org/jira/browse/HADOOP-12021 Thanks. Lets see how the conversation goes over there. Lewis
On Fri, May 22, 2015 at 2:24 PM, Chris Nauroth <cnaur...@hortonworks.com> wrote: > I'm sorry to be the bearer of bad news. :-) > > It's possible there could be some push-back on the grounds of performance > or memory footprint. It's admittedly small, but the vast majority of > users wouldn't need programmatic access to descriptions. > > I do think it would be worthwhile for you to file a jira and describe the > use case and the proposal. Then, anyone interested can participate in a > deeper discussion of the trade-offs on that issue. > > --Chris Nauroth > > > > > On 5/22/15, 1:27 PM, "Lewis John Mcgibbney" <lewis.mcgibb...@gmail.com> > wrote: > > >Thanks for your reply Chris. > >The answer is exactly what I didn't want to hear :) > >I am using the configuration descriptions within the Nutch 2.X Web > >Application and they are very useful for providing additional user context > >for augmenting configuration via the interface. > >Sigh... > >Would this be something which would be appreciated as a patch? > >I can easily submit one if you guys think it would be useful. > >Thanks for your response. > >Lewis > > > >On Fri, May 22, 2015 at 1:20 PM, Chris Nauroth <cnaur...@hortonworks.com> > >wrote: > > > >> Hello Lewis, > >> > >> The contents of <description> elements are not parsed and held in the > >> Configuration data structure at runtime, so there isn't any way to > >>access > >> them programmatically. You can of course use external tools to parse > >>the > >> files directly and pull out the <description>. For example, we use XSL > >>in > >> the project's documentation to build an HTML table of the configuration > >> properties, including <description>. > >> > >> > >> > http://hadoop.apache.org/docs/r2.7.0/hadoop-project-dist/hadoop-common/co > >>re > >> -default.xml > >> > >> > >> --Chris Nauroth > >> > >> > >> > >> > >> On 5/22/15, 12:24 PM, "Lewis John Mcgibbney" <lewis.mcgibb...@gmail.com > > > >> wrote: > >> > >> >Hi Folks, > >> >Does anyone have a solution for accessing the value of the > >><description> > >> >tag below? > >> >I cant seem to find it from within the Configuration object accessors. > >> > > >> ><property> <name>hadoop.tmp.dir</name> > >> ><value>/tmp/hadoop-${user.name}</value> > >> > > >> > <description>blah blah blah</description> > >> > > >> > </property> > >> > > >> >Thanks in advance for any help. > >> >Lewis > >> > > >> >-- > >> >*Lewis* > >> > >> > > > > > >-- > >*Lewis* > > -- *Lewis*