[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-17 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14250236#comment-14250236
 ] 

Hadoop QA commented on YARN-2944:
-

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  
http://issues.apache.org/jira/secure/attachment/12687776/YARN-2944-trunk-v3.patch
  against trunk revision bc21a1c.

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 5 new 
or modified test files.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 javadoc{color}.  There were no new javadoc warning messages.

{color:green}+1 eclipse:eclipse{color}.  The patch built with 
eclipse:eclipse.

{color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 2.0.3) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:green}+1 core tests{color}.  The patch passed unit tests in 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-sharedcachemanager.

Test results: 
https://builds.apache.org/job/PreCommit-YARN-Build/6130//testReport/
Console output: https://builds.apache.org/job/PreCommit-YARN-Build/6130//console

This message is automatically generated.

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch, YARN-2944-trunk-v2.patch, 
 YARN-2944-trunk-v3.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 {noformat}
 This JIRA is to add a 0-argument constructor to SCMStore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-17 Thread Chris Trezzo (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14250758#comment-14250758
 ] 

Chris Trezzo commented on YARN-2944:


Not sure why HadoopQA -1'd it overall, but the patch should be good to go.

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch, YARN-2944-trunk-v2.patch, 
 YARN-2944-trunk-v3.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 {noformat}
 This JIRA is to add a 0-argument constructor to SCMStore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-17 Thread Karthik Kambatla (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14250847#comment-14250847
 ] 

Karthik Kambatla commented on YARN-2944:


+1. Checking this in. 

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch, YARN-2944-trunk-v2.patch, 
 YARN-2944-trunk-v3.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 {noformat}
 This JIRA is to add a 0-argument constructor to SCMStore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-15 Thread Karthik Kambatla (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14247244#comment-14247244
 ] 

Karthik Kambatla commented on YARN-2944:


IIUC, we want to make sure that every implementation of SCMStore has a no-arg 
constructor. Is it possible to add a parametrized test-case for this? 

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch, YARN-2944-trunk-v2.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 {noformat}
 This JIRA is to add a 0-argument constructor to SCMStore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-12 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14244813#comment-14244813
 ] 

Hadoop QA commented on YARN-2944:
-

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  
http://issues.apache.org/jira/secure/attachment/12686947/YARN-2944-trunk-v2.patch
  against trunk revision 46612c7.

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 4 new 
or modified test files.

{color:red}-1 javac{color:red}.  The patch appears to cause the build to 
fail.

Console output: https://builds.apache.org/job/PreCommit-YARN-Build/6105//console

This message is automatically generated.

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch, YARN-2944-trunk-v2.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 {noformat}
 This JIRA is to add a 0-argument constructor to SCMStore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-12 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14244840#comment-14244840
 ] 

Hadoop QA commented on YARN-2944:
-

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  
http://issues.apache.org/jira/secure/attachment/12686950/YARN-2944-trunk-v2.patch
  against trunk revision 46612c7.

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 4 new 
or modified test files.

{color:red}-1 javac{color:red}.  The patch appears to cause the build to 
fail.

Console output: https://builds.apache.org/job/PreCommit-YARN-Build/6106//console

This message is automatically generated.

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch, YARN-2944-trunk-v2.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 {noformat}
 This JIRA is to add a 0-argument constructor to SCMStore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-12 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14244941#comment-14244941
 ] 

Hadoop QA commented on YARN-2944:
-

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  
http://issues.apache.org/jira/secure/attachment/12686961/YARN-2944-trunk-v2.patch
  against trunk revision 46612c7.

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 4 new 
or modified test files.

  {color:red}-1 javac{color}.  The applied patch generated 1217 javac 
compiler warnings (more than the trunk's current 155 warnings).

{color:red}-1 javadoc{color}.  The javadoc tool appears to have generated 
49 warning messages.
See 
https://builds.apache.org/job/PreCommit-YARN-Build/6107//artifact/patchprocess/diffJavadocWarnings.txt
 for details.

{color:green}+1 eclipse:eclipse{color}.  The patch built with 
eclipse:eclipse.

{color:red}-1 findbugs{color}.  The patch appears to introduce 25 new 
Findbugs (version 2.0.3) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:green}+1 core tests{color}.  The patch passed unit tests in 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-sharedcachemanager.

Test results: 
https://builds.apache.org/job/PreCommit-YARN-Build/6107//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-YARN-Build/6107//artifact/patchprocess/newPatchFindbugsWarningshadoop-yarn-common.html
Javac warnings: 
https://builds.apache.org/job/PreCommit-YARN-Build/6107//artifact/patchprocess/diffJavacWarnings.txt
Console output: https://builds.apache.org/job/PreCommit-YARN-Build/6107//console

This message is automatically generated.

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch, YARN-2944-trunk-v2.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 

[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-12 Thread Chris Trezzo (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14244953#comment-14244953
 ] 

Chris Trezzo commented on YARN-2944:


Findbugs/javac/javadoc warnings seem to be erroneous/unrelated. The patch 
should be good to go.

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch, YARN-2944-trunk-v2.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 {noformat}
 This JIRA is to add a 0-argument constructor to SCMStore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-12 Thread Sangjin Lee (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14244978#comment-14244978
 ] 

Sangjin Lee commented on YARN-2944:
---

LGTM. Thanks [~ctrezzo]!

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch, YARN-2944-trunk-v2.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 {noformat}
 This JIRA is to add a 0-argument constructor to SCMStore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-11 Thread Sangjin Lee (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14243213#comment-14243213
 ] 

Sangjin Lee commented on YARN-2944:
---

Thanks for the patch [~ctrezzo]!

The patch looks good to me. One small nit: the InMemorySCMStore (and SCMStore) 
constructor that takes an AppChecker instance is needed only for unit testing 
purposes, right? If so, can we make it default scope instead of public and mark 
it as visible for testing?

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 {noformat}
 This JIRA is to add a 0-argument constructor to SCMStore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-11 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14243280#comment-14243280
 ] 

Hadoop QA commented on YARN-2944:
-

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  
http://issues.apache.org/jira/secure/attachment/12686681/YARN-2944-trunk-v1.patch
  against trunk revision 0bcea11.

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:red}-1 tests included{color}.  The patch doesn't appear to include 
any new or modified tests.
Please justify why no new tests are needed for this 
patch.
Also please list what manual steps were performed to 
verify this patch.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 javadoc{color}.  There were no new javadoc warning messages.

{color:green}+1 eclipse:eclipse{color}.  The patch built with 
eclipse:eclipse.

{color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 2.0.3) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:red}-1 core tests{color}.  The patch failed these unit tests in 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-sharedcachemanager:

  
org.apache.hadoop.yarn.server.sharedcachemanager.TestSharedCacheUploaderService
  
org.apache.hadoop.yarn.server.sharedcachemanager.TestClientSCMProtocolService

Test results: 
https://builds.apache.org/job/PreCommit-YARN-Build/6092//testReport/
Console output: https://builds.apache.org/job/PreCommit-YARN-Build/6092//console

This message is automatically generated.

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at 

[jira] [Commented] (YARN-2944) SCMStore/InMemorySCMStore is not currently compatible with ReflectionUtils#newInstance

2014-12-11 Thread Chris Trezzo (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14243365#comment-14243365
 ] 

Chris Trezzo commented on YARN-2944:


Thanks Sangjin. Ack, will adjust scope of the InMemorySCMStore constructor and 
fix the unit tests.

 SCMStore/InMemorySCMStore is not currently compatible with 
 ReflectionUtils#newInstance
 --

 Key: YARN-2944
 URL: https://issues.apache.org/jira/browse/YARN-2944
 Project: Hadoop YARN
  Issue Type: Sub-task
Reporter: Chris Trezzo
Assignee: Chris Trezzo
Priority: Minor
 Attachments: YARN-2944-trunk-v1.patch


 Currently the Shared Cache Manager uses ReflectionUtils#newInstance to create 
 the SCMStore service. Unfortunately the SCMStore class does not have a 
 0-argument constructor.
 On startup, the SCM fails with the following:
 {noformat}
 14/12/09 16:10:53 INFO service.AbstractService: Service SharedCacheManager 
 failed in state INITED; cause: java.lang.RuntimeException: 
 java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 14/12/09 16:10:53 FATAL sharedcachemanager.SharedCacheManager: Error starting 
 SharedCacheManager
 java.lang.RuntimeException: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.createSCMStoreService(SharedCacheManager.java:103)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.serviceInit(SharedCacheManager.java:65)
 at 
 org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
 at 
 org.apache.hadoop.yarn.server.sharedcachemanager.SharedCacheManager.main(SharedCacheManager.java:156)
 Caused by: java.lang.NoSuchMethodException: 
 org.apache.hadoop.yarn.server.sharedcachemanager.store.InMemorySCMStore.init()
 at java.lang.Class.getConstructor0(Class.java:2763)
 at java.lang.Class.getDeclaredConstructor(Class.java:2021)
 at 
 org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
 ... 4 more
 {noformat}
 This JIRA is to add a 0-argument constructor to SCMStore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)