top of page
halilpaksoy98

Apache Superset Docker Installation and Hive Connection Ubuntu 20.04



  1. Secret Key Password Creation


2. Superset is docker run. The created secret key is added to the run command, the name and port are added, and finally the docker image is added. An optional network is created.

---------------------------------------------------------------------------------------------------------

~$ sudo docker run -d --name superset -p 8081:8088 -e SUPERSET_SECRET_KEY=idsWelzw6B2ESjstCIXyg/x19+VGxwLhktDAWR2SXS4jxpoOyIe1B0v/ --network superset apache/superset

---------------------------------------------------------------------------------------------------------

3. The Docker container is checked.

~$ sudo docker ps


4. Superset is connected to it as root.

~$ sudo docker exec -u 0 -it superset bash


5.Our aim is to update in the superset that we entered as root, to be able to use the nano command, it is important for config.

home/app:~$ apt update

home/app:~$ apt-get install nano


6. Password and username are set, email is left blank, nothing is written in the password section, the command will ask itself after it runs.

home/app:~$ superset superset fab create-admin \

--username admin \

--firstname Superset \

--lastname Admin \

--email \

--password


7. Config. py dosyasında düzenleme

home/app:~$ cd superset

superset:~$ nano config. py


TALISMAN_ENABLED = utils.cast_to_boolean(os.environ.get("TALISMAN_ENABLED", False))

SESSION_COOKIE_SAMESITE = None

SESSION_COOKIE_SECURE = False

SESSION_COOKIE_HTTPONLY = False

WTF_CSRF_ENABLED = False


8. Once the config is set, db is upgraded.

superset:~$ cd ..

home/app:~$ superset superset db upgrade


9. Sample data and dashboard are loaded.

home/app:~$ superset superset load_examples


10. It is init last.

home/app:~$ superset superset init


11. Exit the superset.

home/app:~$ exit


12. Docker superset is restarted.

~$ sudo docker restart superset


13. Go to the web interface.

ipaddr:port(ex: 123.456.7.47:8088)





14. Hive Conenction





Postgresql Connection





Over. For more, you can contact us on linkedin.

63 görüntüleme0 yorum

Son Yazılar

Hepsini Gör

Comentários


bottom of page