[ 
https://issues.apache.org/jira/browse/YARN-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468007#comment-13468007
 ] 

Robert Joseph Evans commented on YARN-40:
-----------------------------------------

Looks like you need to change Configuration to YarnConfiguration in 
TestYarnClient.java

{code}--- 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/TestYarnClient.java
  (revision 1393118)
+++ 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/TestYarnClient.java
  (working copy)
@@ -18,7 +18,7 @@
 
 package org.apache.hadoop.yarn.client;
 
-import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.yarn.conf.YarnConfiguration;
 import org.apache.hadoop.yarn.client.YarnClient;
 import org.apache.hadoop.yarn.client.YarnClientImpl;
 import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager;
@@ -33,7 +33,7 @@
 
   @Test
   public void testClientStop() {
-    Configuration conf = new Configuration();
+    YarnConfiguration conf = new YarnConfiguration();
     ResourceManager rm = new ResourceManager(null);
     rm.init(conf);
     rm.start();
{code}

Also the patch is in Windows Format so before it is checked in they should be 
converted to unix format.
After that I am a +1 on the patch too.
                
> Provide support for missing yarn commands
> -----------------------------------------
>
>                 Key: YARN-40
>                 URL: https://issues.apache.org/jira/browse/YARN-40
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 2.0.0-alpha
>            Reporter: Devaraj K
>            Assignee: Devaraj K
>         Attachments: MAPREDUCE-4155-1.patch, MAPREDUCE-4155.patch, 
> YARN-40-1.patch, YARN-40-20120917.1.txt, YARN-40-20120917.txt, 
> YARN-40-20120924.txt, YARN-40.patch
>
>
> 1. status <app-id>
> 2. kill <app-id> (Already issue present with Id : MAPREDUCE-3793)
> 3. list-apps [all]
> 4. nodes-report

--
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

Reply via email to