From db70edc6e4ca2eb47642ae49da091453aca50102 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 16 Nov 2023 13:33:25 +0800 Subject: [PATCH] Update database --- docs/getting_started/installation.md | 27 +++++++++++++++++---------- mkdocs.yml | 7 +++++++ 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/docs/getting_started/installation.md b/docs/getting_started/installation.md index a38dfc9..cbe4a46 100644 --- a/docs/getting_started/installation.md +++ b/docs/getting_started/installation.md @@ -5,9 +5,11 @@ # Kafka -`./bin/kafka-topics.sh --create --topic impressions --bootstrap-server localhost:9092` -`./bin/kafka-topics.sh --create --topic clicks --bootstrap-server localhost:9092` -`./bin/kafka-topics.sh --create --topic events --bootstrap-server localhost:9092` +```sh +./bin/kafka-topics.sh --create --topic impressions --bootstrap-server localhost:9092 +./bin/kafka-topics.sh --create --topic clicks --bootstrap-server localhost:9092 +./bin/kafka-topics.sh --create --topic events --bootstrap-server localhost:9092 +``` https://druid.apache.org/docs/latest/tutorials/ @@ -19,14 +21,19 @@ https://druid.apache.org/docs/latest/operations/security-overview ## Superset: Setup -`pip install superset pydruid` +```sh +pip install superset pydruid +export FLASK_APP=superset +export SUPERSET_CONFIG_PATH=superset/superset_config.py +superset db upgrade +superset fab create-admin +``` -set `export FLASK_APP=superset` -set `export SUPERSET_CONFIG_PATH=superset/superset_config.py` +Setup your username and password for the superset admin login -`superset db upgrade` -`superset fab create-admin` > Setup your username and password for the superset admin login -`superset init` -`superset run -p 8088 --with-threads --reload` +```sh +superset init +superset run -p 8088 --with-threads --reload +``` 1. Add database `druid://admin:password1@localhost:8888/druid/v2/sql` diff --git a/mkdocs.yml b/mkdocs.yml index bfbe753..2c5dad1 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -13,5 +13,12 @@ theme: markdown_extensions: - attr_list - md_in_html + - pymdownx.highlight: + anchor_linenums: true + line_spans: __span + pygments_lang_class: true + - pymdownx.inlinehilite + - pymdownx.snippets + - pymdownx.superfences repo_url: https://github.com/OpenAttribution/open-attribution