Skip to content

lys0716/kafka-hdfs-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-hdfs-connector

Dependencies install[working...]

pip install -r requirements.txt

Set up enviroment

Please check if you have kafka, zookeeper and schema-registry already exist locally. If yes, delete them.

docker-compose up

avro-data-producer.py

Implement a kafka AvroProducer, fetch stock price from Yahoo finance and store as avro format in kafka.

Dependecies[working...]

googlefinance https://pypi.python.org/pypi/googlefinance kafka-python https://github.com/dpkp/kafka-python schedule https://pypi.python.org/pypi/schedule

Run

python avro-data-producer.py AAPL stock-analyzer 192.168.99.100:9092 http://localhost:8081

Sink to hdfs[working...]

Register on hive meta server[working...]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages