Skip to content

To set up your Python development environment, get the Apache Beam SDK for Python, and run an example pipeline.

Notifications You must be signed in to change notification settings

pramod096/python-word-count-beam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

To set up your Python development environment, get the Apache Beam SDK for Python, and run an example pipeline.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages