项目作者: zkan

项目描述 :
Simple Friend Recommender
高级语言: JavaScript
项目地址: git://github.com/zkan/simple-friend-recommender.git
创建时间: 2021-04-03T01:25:56Z
项目社区:https://github.com/zkan/simple-friend-recommender

开源协议:MIT License

下载


Simple Friend Recommender

Project to demonstrate stuff a data engineer should know

Getting Started

Starting the Project

  1. ./start.sh

Note: If you’re using Mac, run ./start-mac.sh instead.

Then we can go to the survey with the following links:

For Airflow UI, we go to:

Stopping the Project

  1. ./stop.sh

Note: If you’re using Mac, run ./stop-mac.sh instead.

Testing an Airflow Task

  1. airflow tasks test survey_data_processing transform_data_for_recommender 2021-04-04

Setting Up the Airflow’s Connections

In this talk, we’ll set up 2 connections as follows:

  1. Postgres connection:

    Survey DB Conn

  2. File system connection:

    Survey File Conn

Starting a Simple Dashboard

It shows an answer count.

  1. python3 -m http.server 8088

Then we go to http://localhost:8088/answer_count.html.

Starting a Jupyter Server (Local)

  1. cd airflow/dags/notebooks
  2. jupyter notebook --ip=0.0.0.0

Go to http://localhost:8888 if your Web browser is not automatically fired up.

Note that We’ll need to set up an virtual environment first under the folder airflow/dags/notebooks in case it hasn’t been done.

  1. python3 -m venv ENV
  2. source ENV/bin/activate
  3. pip install -r requirements.txt

To deactivate, run:

  1. deactivate