Skip to content
 
 

Repository files navigation

PreLab

1. Install Redis on Windows

  • Redis is a cross-platform DB, We can install it on Linux, or Windows, ..etc.

  • There are two ways to install Redis under Windows

  • Personally I prepared the first option

  • Download Redis-x64-2.8.2104.zip

  • Extract the zip to prepared directory

  • run redis-server.exe

  • then run redis-cli.exe

  • For more info follow this setup-video tutorial

2. Linux and Debian

  • Even quicker and dirtier instructions for Debian-based Linux distributions are as follows:
    • download Redis from http://redis.io/download
    • extract, run make && sudo make install
    • Then run sudo python -m easy_install redis hiredis (hiredis is an optional performance-improving C library).

3. Install the Python Package redis to connecto to Redis

  • use th command pip install redis in your command line.

4. Accessing Redis from Command Line:

  • Add the Redis installation "/home" and "/bin" directories to the enviroment variables.
  • start Redis server in one command window(CMD, poweshell, ..etc)using the command redis-server.
  • In anoher command window, start your Redis Client using the command redis-cli
  • Now you have the Redis Client Shell connected to the default db0 DB.

Docker users

Simply clone the repository and run

docker-compose up

The following docker compose file will build the notebook container which includes all the required dependencies. Services are also exposed to the host network so you can connect to the via localhost.

Open Jupyter

version: "3"

services:
  redis: 
    image: redis
    ports:
      - 6379:6379
  notebook:
    build: notebook/
    ports:
      - 8888:8888
    volumes:
       - ./:/home/jovyan/work/data
    environment:
      - GRANT_SUDO=yes

About

Repository fo Data Engineering Course

Resources

Stars

63 stars

Watchers

9 watching

Forks

Releases

Packages

Contributors

Languages