Skip to content

PySparky/Protobuf-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protobuf-example

This is the complete example of using Protobuf on PySpark

  1. write the proto file
  2. compile the proto file, Spark uses a descriptor file
# brew install protobuf

sudo apt-get update
sudo apt-get install -y protobuf-compiler
protoc --version
protoc \
  --proto_path=. \
  --include_imports \
  --descriptor_set_out=person.desc \
  person.proto

you don't need pb2 to parse the data

About

This is the complete example of using Protobuf on PySpark

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors