[
https://issues.apache.org/jira/browse/MYRIAD-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15702397#comment-15702397
]
DarinJ commented on MYRIAD-248:
-------------------------------
Will take a look, I think this can be solved pretty easily if I can get a
little time.
> Fail to launch Nodemanager when frameworkRole is default value "*"
> ------------------------------------------------------------------
>
> Key: MYRIAD-248
> URL: https://issues.apache.org/jira/browse/MYRIAD-248
> Project: Myriad
> Issue Type: Bug
> Affects Versions: Myriad 0.2.0
> Reporter: Tao Jie
>
> I tried to start hadoop cluster with myriad-0.2.0, but got error message in
> rm log:
> {code}
> 2016-11-25 10:32:50,750 ERROR
> org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler:
> Exception thrown while trying to create a task for nm
> java.lang.IllegalArgumentException: n must be positive
> at java.util.Random.nextInt(Random.java:300)
> at
> org.apache.myriad.scheduler.resource.RangeResource.getRandomValues(RangeResource.java:128)
> at
> org.apache.myriad.scheduler.resource.RangeResource.consumeResource(RangeResource.java:99)
> at
> org.apache.myriad.scheduler.resource.ResourceOfferContainer.consumePorts(ResourceOfferContainer.java:171)
> at
> org.apache.myriad.scheduler.NMTaskFactory.createTask(NMTaskFactory.java:45)
> at
> org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:146)
> at
> org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:51)
> at
> com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> {code}
> I seems that the failure is due to the default value("*") of frameworkRole in
> myriad-config-default.yml.
> I set value of frameworkRole to someone, then it worked well.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)