Hi Arun, Thanks for the reply. I have just compiled and ran my ApplicationMaste.java and Client.java against hadoop-2.0.3-alpha and getting this exception. The same runs fine on 2.0.0. Please suggest me what could be the issue...
2013-03-28 00:50:47,576 FATAL [main] Client (Client.java:main(151)) - Error running CLient java.lang.reflect.UndeclaredThrowableException at org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl.unwrapAndThrowException(YarnRemoteExceptionPBImpl.java:128) at org.apache.hadoop.yarn.api.impl.pb.client.ClientRMProtocolPBClientImpl.getQueueInfo(ClientRMProtocolPBClientImpl.java:215) at Client.dumpClusterInfo(Client.java:263) at Client.launchAndMonitorAM(Client.java:471) at Client.main(Client.java:149) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.apache.hadoop.util.RunJar.main(RunJar.java:212) Caused by: org.apache.hadoop.ipc.RemoteException(java.lang.NullPointerException): java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:779) at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.getQueueInfo(CapacityScheduler.java:542) at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.getQueueInfo(ClientRMService.java:420) at org.apache.hadoop.yarn.api.impl.pb.service.ClientRMProtocolPBServiceImpl.getQueueInfo(ClientRMProtocolPBServiceImpl.java:191) at org.apache.hadoop.yarn.proto.ClientRMProtocol$ClientRMProtocolService$2.callBlockingMethod(ClientRMProtocol.java:214) at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:454) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1014) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1735) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1731) at java.security.AccessController.doPrivileged(AccessController.java:284) at javax.security.auth.Subject.doAs(Subject.java:573) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1441) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1729) at org.apache.hadoop.ipc.Client.call(Client.java:1235) at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:202) at $Proxy4.getQueueInfo(Unknown Source) at org.apache.hadoop.yarn.api.impl.pb.client.ClientRMProtocolPBClientImpl.getQueueInfo(ClientRMProtocolPBClientImpl.java:212) ... 8 more Thanks, Kishore On Thu, Mar 28, 2013 at 2:39 AM, Arun C Murthy <a...@hortonworks.com> wrote: > YarnClient etc. is a just a bunch of helper libs to make it easier to > write new applications. > > OTOH, your existing application should continue to work. > > hth, > Arun > > On Mar 26, 2013, at 3:21 AM, Krishna Kishore Bonagiri wrote: > > Hi, > I have some YARN application written and running properly against > hadoop-2.0.0-alpha but when I recently downloaded and started using > hadoop-2.0.3-alpha it doesn't work. I think the original one I wrote was > looking at the Client.java and ApplicationMaster.java in DistributedShell > example. It looks like this example code also has changed with the new > version, it now has the Client being extended from YarnClientImpl and many > other changes it has. > > Is there any guide as to how should I modify my old application to work > against the new version? > > Thanks, > Kishore > > > -- > Arun C. Murthy > Hortonworks Inc. > http://hortonworks.com/ > > >