Skip to content

Instantly share code, notes, and snippets.

@jspacker
Last active December 15, 2015 16:09
Show Gist options
  • Save jspacker/5286657 to your computer and use it in GitHub Desktop.
Save jspacker/5286657 to your computer and use it in GitHub Desktop.
twitter-pagerank controlscript: a choice of two postprocessing steps
print "Starting postprocessing step."
postprocess = Pig.compileFromFile(self.postprocessing_script)
postprocess_params = {
"PAGERANKS_INPUT_PATH": iteration_pagerank_result,
"OUTPUT_PATH": self.output_path
}
postprocess_bound = postprocess.bind(postprocess_params)
postprocess_stats = postprocess_bound.runSingle()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment