wiki:application_pages/tutorial_apps/python/wordcount

Application Name

Word Count

Summary

  • Name: Word Count
  • Contact Person: support-compss@bsc.es
  • Access Level: public
  • License Agreement: Apache2
  • Platform: COMPSs
  • Repository: Word Count

Description

Wordcount is an application that counts the number of words for a given set of files.

To allow parallelism every file is treated separately and merged afterwards.

Execution instructions

Usage: runcompss --lang=python /home/compss/tutorial_apps/python/wordcount/wordcount.py <datasetPath>

where:

  • - datasetPath: Absolute path of the file to parse (e.g. /home/compss/tutorial_apps/python/wordcount/data/)

Execution Example

runcompss --lang=python /home/compss/tutorial_apps/python/wordcount/wordcount.py /home/compss/tutorial_apps/python/wordcount/data/ runcompss /home/compss/tutorial_apps/python/wordcount/wordcount.py /home/compss/tutorial_apps/python/wordcount/data/

Build

No build is required

Last modified 7 years ago Last modified on 06/14/17 12:50:13

Attachments (3)