[jira] [Commented] (HADOOP-9327) Out of date code examples

2017-11-10 Thread Andras Bokor (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-9327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16247605#comment-16247605
 ] 

Andras Bokor commented on HADOOP-9327:
--

All the 3 classes are still available on trunk:
* 
https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/JobConfigurationParser.java
* 
https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/LoggedNetworkTopology.java
* 
https://github.com/apache/hadoop/blob/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/ContextFactory.java

What is this ticket about?

> Out of date code examples
> -
>
> Key: HADOOP-9327
> URL: https://issues.apache.org/jira/browse/HADOOP-9327
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 2.0.3-alpha
>Reporter: Hao Zhong
>
> 1. This page contains code examples that use JobConfigurationParser
> http://hadoop.apache.org/docs/current/api/org/apache/hadoop/tools/rumen/package-summary.html
> "JobConfigurationParser jcp = 
>   new JobConfigurationParser(interestedProperties);"
> JobConfigurationParser is deleted in 2.0.3
> 2. This page contains code examples that use ContextFactory
> http://hadoop.apache.org/docs/current/api/org/apache/hadoop/metrics/package-summary.html
> " ContextFactory factory = ContextFactory.getFactory();
> ... examine and/or modify factory attributes ...
> MetricsContext context = factory.getContext("myContext");"
> ContextFactory is deleted in 2.0.3
> 3. This page contains code examples that use LoggedNetworkTopology
> http://hadoop.apache.org/docs/current/api/org/apache/hadoop/tools/rumen/package-summary.html
> " do.init("topology.json", conf);
> 
>   // get the job summary using TopologyBuilder
>   LoggedNetworkTopology topology = topologyBuilder.build();"
> LoggedNetworkTopology is deleted in 2.0.3
> Please revise the documentation to reflect the code.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Commented] (HADOOP-9327) Out of date code examples

2013-03-08 Thread Suresh Srinivas (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-9327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13597725#comment-13597725
 ] 

Suresh Srinivas commented on HADOOP-9327:
-

Please consider posting a patch.


 Out of date code examples
 -

 Key: HADOOP-9327
 URL: https://issues.apache.org/jira/browse/HADOOP-9327
 Project: Hadoop Common
  Issue Type: Bug
Affects Versions: 2.0.3-alpha
Reporter: Hao Zhong

 1. This page contains code examples that use JobConfigurationParser
 http://hadoop.apache.org/docs/current/api/org/apache/hadoop/tools/rumen/package-summary.html
 JobConfigurationParser jcp = 
   new JobConfigurationParser(interestedProperties);
 JobConfigurationParser is deleted in 2.0.3
 2. This page contains code examples that use ContextFactory
 http://hadoop.apache.org/docs/current/api/org/apache/hadoop/metrics/package-summary.html
  ContextFactory factory = ContextFactory.getFactory();
 ... examine and/or modify factory attributes ...
 MetricsContext context = factory.getContext(myContext);
 ContextFactory is deleted in 2.0.3
 3. This page contains code examples that use LoggedNetworkTopology
 http://hadoop.apache.org/docs/current/api/org/apache/hadoop/tools/rumen/package-summary.html
  do.init(topology.json, conf);
 
   // get the job summary using TopologyBuilder
   LoggedNetworkTopology topology = topologyBuilder.build();
 LoggedNetworkTopology is deleted in 2.0.3
 Please revise the documentation to reflect the code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira