blob: dfa2bca1e21ea3b3896a211f13a77959337e7073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
following https://medium.com/@gayani.nan/how-to-run-a-scalding-job-567160fa193
running on my laptop:
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-1~deb9u1-b11)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)
Scala code runner version 2.11.8 -- Copyright 2002-2016, LAMP/EPFL
sbt: 1.1.5
sbt new scala/scala-seed.g8
# inserted additional deps, tweaked versions
# hadoop 2.5.0 seems to conflict with cascading; sticking with 2.6.0
sbt assembly
scp target/scala-2.11/scald-mvp-assembly-0.1.0-SNAPSHOT.jar devbox:
# on cluster:
yarn jar scald-mvp-assembly-0.1.0-SNAPSHOT.jar WordCount --hdfs --input hdfs:///user/bnewbold/dummy.txt
later, using hadop command instead:
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
|