You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Owen O'Malley (JIRA)" <ji...@apache.org> on 2008/05/16 19:33:55 UTC
[jira] Created: (HADOOP-3407) Provide a query method to find all of
the attributes under a given root
Provide a query method to find all of the attributes under a given root
-----------------------------------------------------------------------
Key: HADOOP-3407
URL: https://issues.apache.org/jira/browse/HADOOP-3407
Project: Hadoop Core
Issue Type: Improvement
Components: conf
Reporter: Owen O'Malley
Assignee: Arun C Murthy
It would be really nice to have a way to query all of the attributes under a given root:
{code}
String[] attrs = conf.getChildAttributes("mapred.task");
{code}
which would return all of the attributes in the configurat that start with "mapred.task...."
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-3407) Provide a query method to find all
of the attributes under a given root
Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-3407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597599#action_12597599 ]
Owen O'Malley commented on HADOOP-3407:
---------------------------------------
I was being good and not putting the solution into the bug description!
You would change the implementation to TreeMap<String,String>.
The use case would be supporting:
mapred.task.env.*
to set environment variables in the tasks, where the key is the name of the environment variable.
> Provide a query method to find all of the attributes under a given root
> -----------------------------------------------------------------------
>
> Key: HADOOP-3407
> URL: https://issues.apache.org/jira/browse/HADOOP-3407
> Project: Hadoop Core
> Issue Type: Improvement
> Components: conf
> Reporter: Owen O'Malley
> Assignee: Arun C Murthy
>
> It would be really nice to have a way to query all of the attributes under a given root:
> {code}
> String[] attrs = conf.getChildAttributes("mapred.task");
> {code}
> which would return all of the attributes in the configurat that start with "mapred.task...."
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-3407) Provide a query method to find all
of the attributes under a given root
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-3407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597595#action_12597595 ]
Doug Cutting commented on HADOOP-3407:
--------------------------------------
This would be expensive as long as configurations are implemented with a hash table.
Also, what are some use cases?
> Provide a query method to find all of the attributes under a given root
> -----------------------------------------------------------------------
>
> Key: HADOOP-3407
> URL: https://issues.apache.org/jira/browse/HADOOP-3407
> Project: Hadoop Core
> Issue Type: Improvement
> Components: conf
> Reporter: Owen O'Malley
> Assignee: Arun C Murthy
>
> It would be really nice to have a way to query all of the attributes under a given root:
> {code}
> String[] attrs = conf.getChildAttributes("mapred.task");
> {code}
> which would return all of the attributes in the configurat that start with "mapred.task...."
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.