Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added an assembly jar for hive for easy deployment.

  • Loading branch information...
commit fbf90c63398620b190a8333705b561b036d8fbd7 1 parent 68c8523
@bwmcadams bwmcadams authored
View
5 hive/src/main/java/com/mongodb/hadoop/hive/BSONSerde.java
@@ -158,10 +158,7 @@ public Object deserialize(Writable blob) throws SerDeException {
if (k.trim().equalsIgnoreCase(colName)) {
colName = k;
LOG.debug("K: " + k + "colName: " + colName);
- } else {
- LOG.info("FAIL ... K: " + k + "colName: " + colName);
- }
-
+ }
}
}
if (ti.getTypeName().equalsIgnoreCase(
View
18 project/MongoHadoopBuild.scala
@@ -174,7 +174,23 @@ object MongoHadoopBuild extends Build {
}
)
- val hiveSettings = dependentSettings ++ Seq(
+ val hiveSettings = dependentSettings ++ assemblySettings ++ Seq(
+ excludedJars in assembly <<= (fullClasspath in assembly) map ( cp =>
+ cp filterNot { x =>
+ x.data.getName.startsWith("mongo-hadoop-core") || x.data.getName.startsWith("mongo-java-driver") || x.data.getName.startsWith("mongo-hadoop-hive")
+ }
+ ),
+ excludedFiles in assembly := { (bases: Seq[File]) => bases flatMap { base =>
+ ((base * "*").get collect {
+ case f if f.getName.toLowerCase == "git-hash" => f
+ case f if f.getName.toLowerCase == "license" => f
+ }) ++
+ ((base / "META-INF" * "*").get collect {
+ case f if f.getName.toLowerCase == "license" => f
+ case f if f.getName.toLowerCase == "manifest.mf" => f
+ })
+ } },
+
resolvers ++= Seq(Resolvers.rawsonApache), /** Seems to have thrift deps I need*/
libraryDependencies ++= Seq(Dependencies.hiveSerDe)
)
Please sign in to comment.
Something went wrong with that request. Please try again.