This is the code I use to create the resource ideal state:
IdealStateBuilder isb = new AutoRebalanceModeISBuilder(resourceName);
isb.setNumPartitions(nPartitions);
isb.setNumReplica(nReplicas);
isb.setStateModel(smType.getName());
isb.setMaxPartitionsPerNode(Integer.MAX_VALUE);
hManager.getClusterManagmentTool().addResource(hManager.getClusterName(), resourceName,
isb.build());
Vinayak
On 1/11/14, 10:14 PM, Kanak Biscuitwala wrote:
AFAIK, this log message is shown in two situations:
- In FULL_AUTO (AUTO_REBALANCE) when the algorithm doesn't compute a
mapping for certain partitions (this should never happen)
- In SEMI_AUTO (AUTO) when you try to rebalance a resource with an empty
list field (i.e. preference list) for a partition in your resource
In either case, I would say it's typically worth a warning because it's
essentially saying that you have unmapped partitions. Is this consistent
with your usage?
------------------------------------------------------------------------
Date: Fri, 10 Jan 2014 09:21:22 -0800
Subject: Re: Resource does not have a precomputed preference list
From: [email protected]
To: [email protected]
CC: [email protected]
What is the idealstate mode for the resource?. How is the resource
configured?
On Fri, Jan 10, 2014 at 7:13 AM, Vinayak Borkar <[email protected]
<mailto:[email protected]>> wrote:
Hi Guys,
I just switched to 0.6.2-incubating from 0.6.1-incubating. I have
now started to see messages such as "Resource does not have a
precomputed preference list". This message is currently being logged
in WARN mode. Is this truly a warning, or is it just that the log
level is misclassified?
Thanks,
Vinayak