Skip to content

Instantly share code, notes, and snippets.

@alexandersimoes
Created October 28, 2020 22:21
Show Gist options
  • Save alexandersimoes/25dede0ed3a4541936a006c37fe40cd0 to your computer and use it in GitHub Desktop.
Save alexandersimoes/25dede0ed3a4541936a006c37fe40cd0 to your computer and use it in GitHub Desktop.
Instructions for installing Clickhouse on OSX
  1. First install Docker: https://docs.docker.com/docker-for-mac/install/
  2. Create docker instance based on Clickhouse Server image
docker run -d --name oec-clickhouse -p 9000:9000 -ulimit nofile=2662144:2662144 yandex/clickhouse-server

-d = Run container in background and print container ID -p = Publish a container’s port(s) to the host -ulimit nofile=xxxx = This sets the number of open files (n = number, o = open, file = files)

  1. Connect to image with bash:
docker exec -it oec-clickhouse bash
  1. Use Clickhouse cli now that we're in docker image
clickhouse-client --database=oec
  1. Celebrate! 🥳
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment