aboutsummaryrefslogtreecommitdiffstats
path: root/scalding/README.md
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2018-06-15 00:41:33 +0000
committerBryan Newbold <bnewbold@archive.org>2018-06-15 00:41:33 +0000
commitc23ccd1f2d03ad65ee83b8eca8c407d12ecd54e1 (patch)
treed70394e2b57e824abbcb7fff2c960c812d09da6d /scalding/README.md
parent5f4904158c07061edb6b3afd210d3b15dc946dab (diff)
downloadsandcrawler-c23ccd1f2d03ad65ee83b8eca8c407d12ecd54e1.tar.gz
sandcrawler-c23ccd1f2d03ad65ee83b8eca8c407d12ecd54e1.zip
doc improvements and fixes to 'please' helper
Diffstat (limited to 'scalding/README.md')
-rw-r--r--scalding/README.md22
1 files changed, 12 insertions, 10 deletions
diff --git a/scalding/README.md b/scalding/README.md
index c40da5c..45b62d0 100644
--- a/scalding/README.md
+++ b/scalding/README.md
@@ -3,12 +3,19 @@ the JVM) using the Scalding framework.
See the other markdown files in this directory for more background and tips.
-## Building and Running
+## Dependencies
Locally, you need to have the JVM (eg, OpenJDK 1.8), `sbt` build tool, and
might need (exactly) Scala version 2.11.8.
-See section below on building and installing custom SpyGlass jar.
+On a debian/ubuntu machine:
+
+ echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
+ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
+ sudo apt-get update
+ sudo apt install scala sbt
+
+## Building and Running
Run tests:
@@ -26,17 +33,12 @@ Run on cluster:
com.twitter.scalding.Tool sandcrawler.HBaseRowCountJob --hdfs \
--app.conf.path thing.conf \
--output hdfs:///user/bnewbold/spyglass_out_test
-
+
+## Troubleshooting
+
If your `sbt` task fails with this error:
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Metaspace
try restarting `sbt` with more memory (e.g., `sbt -mem 2048`).
-## SpyGlass Jar
-
-SpyGlass is a "scalding-to-HBase" connector. It isn't maintained, so we needed
-to rebuild to support our versions of HBase/scalding/etc. Our fork (including
-build instructions) is at <https://github.com/bnewbold/SpyGlass>
-(`bnewbold-scala2.11` branch); compiled .jar files are available from
-<https://archive.org/download/ia_sandcrawler_maven2>.