Question

I want to use CDH 4.5 with mongo-hadoop: https://github.com/mongodb/mongo-hadoop

When i execute:

./gradlew jar -Phadoop_version=CDH4

It fails and says its an "Unknown hadoop version". As far as I know CDH 4.5 uses Hadoop 2.0.0, but it does not show as an option in the documentation. It just says "The mongo-hadoop connector currently supports the following versions of hadoop: 0.23, 1.0, 1.1, 2.2, 2.3, 2.4, and CDH 4 abd 5. If you would like to build against a specific version of Hadoop you simply need to pass -Phadoop_version= to gradlew when building."

What is the correct command to generate the jars?

Was it helpful?

Solution

Use cdh4 not CDH4. I'll fix that in gradle, though.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top