Created
December 27, 2018 15:31
-
-
Save anmol2709/6de439d1df1898d8aa9dbe7289040d64 to your computer and use it in GitHub Desktop.
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
val text = | |
// read the text file from given input path | |
if (params.has("input")) { | |
env.readTextFile(params.get("input")) | |
} else { | |
println("Executing WordCount example with default inputs data set.") | |
println("Use --input to specify file input.") | |
// get default test text data | |
env.fromElements(WordCountData.WORDS: _*) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment