Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.08 KB

File metadata and controls

43 lines (28 loc) · 1.08 KB

python-word-count-beam

Pramod Reddy Gonegari

Steps to set up your Python development environment, get the Apache Beam SDK for Python, and run an example pipeline.
  1. Create a new folder named python-word-count-beam and open powershell as administrator at this directory.

  2. Add wordcount.py and input.txt from quick start examples.

  3. Install pip.

pip --version
  1. Upgrade to latest pip version.
python -m pip install --upgrade pip
  1. Create and activate a virtual environment
python -m venv C:\path\to\directory

C:\path\to\directory\Scripts\activate.ps1
  1. Download and install Apache Beam.
python -m pip install apache-beam
  1. Execute the wordcount.py
python -m apache_beam.examples.wordcount --input /path/to/inputfile --output /path/to/write/counts

Output

Output Image