-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7a6509d
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
scalding-sample | ||
======================== | ||
simple scalding samples. | ||
|
||
Usage | ||
------------------------------ | ||
:: | ||
|
||
First, clone the Scalding repository on Github, see detail | ||
|
||
https://github.com/twitter/scalding/wiki/Getting-Started | ||
|
||
Next, add scalad.rb to your path, | ||
ln -s scripts/scald.rb $HOME/bin/ | ||
|
||
https://github.com/twitter/scalding/wiki/Scald.rb | ||
|
||
Ok, now you can run this simple project | ||
|
||
scripts/scalad.rb src/main/scala/Sample1.scala |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name := "scalding-sample" | ||
|
||
version := "1.0.0" | ||
|
||
scalaVersion := "2.8.1" | ||
|
||
resolvers += "Concurrent Maven Repo" at "http://conjars.org/repo" | ||
|
||
libraryDependencies += "com.twitter" % "scalding_2.8.1" % "0.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
252453 Apple | ||
787345 Orange | ||
808056 Banana | ||
252453 Banana | ||
787345 Apple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import com.twitter.scalding._ | ||
|
||
class Sample1(args: Args) extends Job(args) { | ||
val input = TextLine("data/sample1.txt") | ||
val output = TextLine("data/sample1-out.txt") | ||
|
||
input.read.write(output) | ||
} |