aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandan Rajah <chandan.rajah@gmail.com>2013-06-06 16:37:05 +0100
committerChandan Rajah <chandan.rajah@gmail.com>2013-06-06 16:37:05 +0100
commit9d71f003b9b3f663420794dd9bc5103444a3a4d1 (patch)
tree3f266266c3a3a5c57e53026842911527f8b985b8
parent5a2965bfcb5d6944d661dff7b05e8b89dc629342 (diff)
downloadSpyGlass-9d71f003b9b3f663420794dd9bc5103444a3a4d1.tar.gz
SpyGlass-9d71f003b9b3f663420794dd9bc5103444a3a4d1.zip
Minor bug fix in the pipe conversions
Modified POM to auto update to maven repo
-rw-r--r--pom.xml7
-rw-r--r--src/main/scala/parallelai/spyglass/hbase/HBaseConversions.scala3
2 files changed, 9 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index 5386e3e..5a69b7a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -66,6 +66,13 @@
</properties>
+ <distributionManagement>
+ <repository>
+ <id>repo</id>
+ <url>https://github.com/crajah/mvn-repo/raw/master/releases</url>
+ </repository>
+ </distributionManagement>
+
<!-- Repositories -->
<repositories>
<repository>
diff --git a/src/main/scala/parallelai/spyglass/hbase/HBaseConversions.scala b/src/main/scala/parallelai/spyglass/hbase/HBaseConversions.scala
index 21d90e8..6035688 100644
--- a/src/main/scala/parallelai/spyglass/hbase/HBaseConversions.scala
+++ b/src/main/scala/parallelai/spyglass/hbase/HBaseConversions.scala
@@ -14,7 +14,8 @@ class HBasePipeWrapper (pipe: Pipe) {
asList(f)
.foldLeft(pipe){ (p, f) => {
p.map(f.toString -> f.toString){ from: String => {
- new ImmutableBytesWritable(Bytes.toBytes(from))
+ new ImmutableBytesWritable(Bytes.toBytes(
+ if (from == null) "" else from))
}}
}}
}