Skip to content
This repository was archived by the owner on Jan 29, 2022. It is now read-only.
Luke Lovett edited this page Feb 24, 2015 · 9 revisions

Frequently Asked questions:

What types of shard keys are supported by the ShardChunkMongoSplitter?

The ShardChunkMongoSplitter does not support a hashed _id index, since MongoDB will instead use the unhashed _id index to create the splits, resulting in all data on one split. All other index types are supported, including hashed indexes on fields that are not _id.

java.lang.IncompatibleClassChangeError: Found class XXX, but interface was expected

There are two common causes of this Exception:

  1. The version of the Hadoop Connector that you're running isn't compatible with your version of Hadoop. Since version 1.3, the Hadoop Connector is compatible with all versions of Hadoop, but this isn't true for versions prior to 1.3. Make sure you have the right version.

  2. You're using a different version of the MongoDB Java Driver than what the connector expects. You either need to switch to the version that the connector expects (in either build.gradle or project/MongoHadoopBuild.scala, depending on the version of the connector that you have), or change the version in that file to match the one you have.

Clone this wiki locally