aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2018-05-21 11:59:14 -0700
committerBryan Newbold <bnewbold@archive.org>2018-05-21 11:59:14 -0700
commitca8c5dedea7907cf26ec63309f4e99030e644351 (patch)
tree08c944c1cd0ed90d10a5171bbb56d89e82be53d9
parent53c2b11d4d234d933742651051ef57ca3c145382 (diff)
downloadsandcrawler-ca8c5dedea7907cf26ec63309f4e99030e644351.tar.gz
sandcrawler-ca8c5dedea7907cf26ec63309f4e99030e644351.zip
success running with com.twitter.scalding.Tool
-rw-r--r--jvm-mapreduce/learning.txt9
-rw-r--r--scald-mvp/README.md6
2 files changed, 11 insertions, 4 deletions
diff --git a/jvm-mapreduce/learning.txt b/jvm-mapreduce/learning.txt
index 1fe64bd..6fe1442 100644
--- a/jvm-mapreduce/learning.txt
+++ b/jvm-mapreduce/learning.txt
@@ -12,6 +12,15 @@ Or, with actual files on hadoop:
Horray! One issue with this was that building scalding took *forever* (meaning
30+ minutes).
+potentially instead:
+
+ hadoop jar scald-mvp-assembly-0.1.0-SNAPSHOT.jar com.twitter.scalding.Tool main.scala.example.WordCountJob --hdfs --input hdfs:///user/bnewbold/dummy.txt --output hdfs:///user/bnewbold/test_scalding_out2
+
+Hypothesis: class name should be same as file name. Don't need `main` function
+if using Scalding Tool wrapper jar. Don't need scald.rb.
+
+ hadoop jar scald-mvp-assembly-0.1.0-SNAPSHOT.jar com.twitter.scalding.Tool example.WordCount --hdfs --input hdfs:///user/bnewbold/dummy.txt --output hdfs:///user/bnewbold/test_scalding_out2
+
## sbt
Uncommenting this line in scalding:build.sbt sped things way up (don't need to
diff --git a/scald-mvp/README.md b/scald-mvp/README.md
index 10cac0f..dfa2bca 100644
--- a/scald-mvp/README.md
+++ b/scald-mvp/README.md
@@ -23,8 +23,6 @@ running on my laptop:
# on cluster:
yarn jar scald-mvp-assembly-0.1.0-SNAPSHOT.jar WordCount --hdfs --input hdfs:///user/bnewbold/dummy.txt
-## ATTIC
+later, using hadop command instead:
-wrote build.sbt from scratch
-
-`sbt` command from `twitter/scalding` upstream repo
+ hadoop jar scald-mvp-assembly-0.1.0-SNAPSHOT.jar com.twitter.scalding.Tool example.WordCount --hdfs --input hdfs:///user/bnewbold/dummy.txt --output hdfs:///user/bnewbold/test_scalding_out2