Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow odd worker count #31

Open
kboom opened this issue Feb 11, 2020 · 0 comments
Open

Allow odd worker count #31

kboom opened this issue Feb 11, 2020 · 0 comments

Comments

@kboom
Copy link
Owner

kboom commented Feb 11, 2020

For now odd worker counts cause the problem with partitioning

Exception in thread "org.apache.giraph.master.MasterThread" java.lang.IllegalStateException: java.lang.ArithmeticException: mode was UNNECESSARY, but rounding was necessary
	at org.apache.giraph.master.MasterThread.run(MasterThread.java:201)
Caused by: java.lang.ArithmeticException: mode was UNNECESSARY, but rounding was necessary
	at com.google.common.math.MathPreconditions.checkRoundingUnnecessary(MathPreconditions.java:81)
	at com.google.common.math.IntMath.log2(IntMath.java:91)
	at edu.agh.iga.adi.giraph.direction.PartitioningStrategy.partitioningStrategy(PartitioningStrategy.java:40)
	at edu.agh.iga.adi.giraph.direction.io.IgaTreeSplitter.allSplitsFor(IgaTreeSplitter.java:25)
	at edu.agh.iga.adi.giraph.direction.io.InMemoryStepInputFormat.getSplits(InMemoryStepInputFormat.java:77)
	at org.apache.giraph.io.internal.WrappedVertexInputFormat.getSplits(WrappedVertexInputFormat.java:72)
	at org.apache.giraph.master.BspServiceMaster.generateInputSplits(BspServiceMaster.java:329)
	at org.apache.giraph.master.BspServiceMaster.createInputSplits(BspServiceMaster.java:624)
	at org.apache.giraph.master.BspServiceMaster.createVertexInputSplits(BspServiceMaster.java:668)
	at org.apache.giraph.master.MasterThread.run(MasterThread.java:113)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant