{"id":359895,"date":"2024-05-21T00:42:09","date_gmt":"2024-05-21T00:42:09","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=359895"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=359895","title":{"rendered":"<span>\u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c BI Apache Superset\u00a0\u0432 2023 \u0433\u043e\u0434\u0443 \u2014 \u0433\u0430\u0439\u0434 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e <a class=\"mention\" href=\"\/users\/ivolake\">@ivolake<\/a> \u0437\u0430 <a href=\"https:\/\/habr.com\/ru\/articles\/661159\" rel=\"noopener noreferrer nofollow\">\u00ab\u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c Apache Superset\u00a0\u2014 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0439 \u0433\u0430\u0439\u0434\u00bb<\/a>. \u0411\u043e\u043b\u044c\u0448\u0435 \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u0430 \u043e\u043d \u0441\u0442\u0430\u043b \u0431\u0430\u0437\u043e\u0439, \u043d\u043e \u0441\u043f\u0443\u0441\u0442\u044f \u0433\u043e\u0434 \u0431\u044b\u043b\u043e \u0432\u044b\u043f\u0443\u0449\u0435\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 SS \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0435\u0433\u043e \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0442\u0435\u0440\u043f\u0435\u043b \u0432\u0430\u0436\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<\/blockquote>\n<h2>\u041d\u0430\u0448\u0430 \u0441\u0440\u0435\u0434\u0430 \u043e\u0431\u0438\u0442\u0430\u043d\u0438\u044f Superset\u00a0<\/h2>\n<ul>\n<li>\n<p>Ubuntu 22.04<\/p>\n<\/li>\n<li>\n<p>Docker 24.06 \u0438 Docker-compose 2.22.0<\/p>\n<\/li>\n<li>\n<p>Postgres 14 \u0438 PgAdmin (\u0441\u0442\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e)<\/p>\n<\/li>\n<li>\n<p>Redis 7<\/p>\n<\/li>\n<li>\n<p>Python 3.10 (\u0435\u0441\u0442\u044c \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0430 Ubuntu 22.04)<\/p>\n<\/li>\n<li>\n<p>\u0422\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 Nano (\u0435\u0441\u0442\u044c \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0430 Ubuntu 22.04)<\/p>\n<p>\u0421\u0430\u043c Superset \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u0442\u0430\u0432\u0438\u0442\u044c <a href=\"https:\/\/github.com\/apache\/superset\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/apache\/superset<\/a><\/p>\n<\/li>\n<\/ul>\n<h2>\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a<\/h2>\n<ul>\n<li>\n<p>\u0421\u0430\u0439\u0442 Superset\u00a0 \u0441 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 <a href=\"https:\/\/superset.apache.org\/docs\/intro\" rel=\"noopener noreferrer nofollow\">https:\/\/superset.apache.org\/docs\/intro<\/a><\/p>\n<\/li>\n<li>\n<p>Superset\u00a0\u0440\u0435\u043b\u0438\u0437 3.0.1 <a href=\"https:\/\/github.com\/apache\/superset\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/apache\/superset<\/a><\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e Docker <a href=\"https:\/\/docs.docker.com\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.docker.com<\/a><\/p>\n<\/li>\n<li>\n<p>Docker-\u0444\u0430\u0439\u043b PgAdmin <a href=\"https:\/\/hub.docker.com\/r\/dpage\/pgadmin4\" rel=\"noopener noreferrer nofollow\">https:\/\/hub.docker.com\/r\/dpage\/pgadmin4<\/a><\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c SQL Server <a href=\"https:\/\/superset.apache.org\/docs\/databases\/sql-server\/\" rel=\"noopener noreferrer nofollow\">https:\/\/superset.apache.org\/docs\/databases\/sql-server<\/a><\/p>\n<\/li>\n<li>\n<p>\u0423 SS \u0435\u0441\u0442\u044c \u043e\u0431\u043b\u0430\u0447\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f <a href=\"https:\/\/preset.io\/\" rel=\"noopener noreferrer nofollow\">https:\/\/preset.io<\/a><\/p>\n<\/li>\n<\/ul>\n<h2> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 docker \u0438 docker-compose \u043d\u0430 Ubuntu  <\/h2>\n<p> \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0430\u043a\u0435\u0442\u043e\u0432:<\/p>\n<pre><code>sudo apt update<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u043b\u044f apt:<\/p>\n<pre><code>sudo apt install apt-transport-https ca-certificates curl software-properties-common<\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f Docker \u0432 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 apt:<\/p>\n<pre><code>sudo add-apt-repository \"deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu focal stable\"<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043b\u044e\u0447 GPG \u0434\u043b\u044f \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f Docker:<\/p>\n<pre><code>curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -<\/code><\/pre>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0435\u0449\u0451 \u0440\u0430\u0437 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0430\u043a\u0435\u0442\u043e\u0432:<\/p>\n<pre><code>sudo apt update<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Docker:<\/p>\n<pre><code>sudo apt install docker-ce<\/code><\/pre>\n<p> \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441 Docker:<\/p>\n<pre><code>sudo systemctl status docker<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8c8\/4b4\/c62\/8c84b4c6281aba38436ac4c84d13d5c2.png\" alt=\" \u041d\u0430\u043c \u0432\u0430\u0436\u043d\u043e active (running) \" title=\" \u041d\u0430\u043c \u0432\u0430\u0436\u043d\u043e active (running) \" width=\"1330\" height=\"394\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8c8\/4b4\/c62\/8c84b4c6281aba38436ac4c84d13d5c2.png\"\/><\/p>\n<div><figcaption> \u041d\u0430\u043c \u0432\u0430\u0436\u043d\u043e active (running) <\/figcaption><\/div>\n<\/figure>\n<p> \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c Docker Compose plugin:<\/p>\n<pre><code>sudo apt-get update sudo apt-get install docker-compose-plugin<\/code><\/pre>\n<p> \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043a \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443:<\/p>\n<pre><code>sudo chmod +x \/usr\/local\/bin\/docker-compose<\/code><\/pre>\n<p>\u041d\u0443 \u0438 \u043d\u0430 \u043a\u043e\u043d\u0435\u0446 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430:<\/p>\n<pre><code>docker compose version<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c26\/f88\/472\/c26f8847279af54e8db9c6faee67492c.png\" alt=\"\u041a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a\" title=\"\u041a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a\" width=\"900\" height=\"45\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c26\/f88\/472\/c26f8847279af54e8db9c6faee67492c.png\"\/><\/p>\n<div><figcaption>\u041a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a<\/figcaption><\/div>\n<\/figure>\n<h2> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Apache Superset  <\/h2>\n<p> \u041a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0437 github:<\/p>\n<pre><code>git clone https:\/\/github.com\/apache\/superset.git<\/code><\/pre>\n<p> \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e:<\/p>\n<pre><code>cd superset<\/code><\/pre>\n<p> \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0432\u0435\u0442\u043a\u0443 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0440\u0435\u043b\u0438\u0437\u0430 ( 2.1.0 &#8212; \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u043e\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0435\u0439 (\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u0430), 3.0.1 &#8212; \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f)<\/p>\n<pre><code>git checkout 2.1.0<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b7a\/ede\/160\/b7aede160a0d414cf771c069d3056db4.png\" alt=\"\u0412\u0435\u0440\u0441\u0438\u044e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430 \u0441\u0432\u043e\u0451 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 git status  \" title=\"\u0412\u0435\u0440\u0441\u0438\u044e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430 \u0441\u0432\u043e\u0451 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 git status  \" width=\"687\" height=\"109\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b7a\/ede\/160\/b7aede160a0d414cf771c069d3056db4.png\"\/><\/p>\n<div><figcaption>\u0412\u0435\u0440\u0441\u0438\u044e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430 \u0441\u0432\u043e\u0451 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 git status  <\/figcaption><\/div>\n<\/figure>\n<h3> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 Nano (\u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e)<\/h3>\n<p>Nano \u0435\u0441\u0442\u044c \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435, \u043d\u043e \u0435\u0441\u043b\u0438 \u043f\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u0435\u0433\u043e \u043d\u0435\u0442, \u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c:<\/p>\n<pre><code>sudo apt update sudo apt upgrade  sudo apt install nano  nano --version<\/code><\/pre>\n<p>\u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0447\u0435\u0440\u0435\u0437 nano \u0444\u0430\u0439\u043b docker-compose-non-dev.yml (\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f 0.0.0 dev ) :<\/p>\n<pre><code>x-superset-image: &amp;amp;superset-image apache\/superset:${TAG:-latest-dev}<\/code><\/pre>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u043d\u0430:<\/p>\n<pre><code>x-superset-image: &amp;amp;superset-image apache\/superset:2.1.0   (\u0438\u043b\u0438 3.0.1)<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 docker:<\/p>\n<pre><code>cd docker<\/code><\/pre>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0432\u0430\u0436\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 superset_config.py<\/p>\n<pre><code>nano superset_config.py<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \/ \u0417\u0430\u043c\u0435\u043d\u0438\u043c \u0432 \u043d\u0435\u0433\u043e \u0442\u0435\u043a\u0441\u0442:<\/p>\n<pre><code># Superset specific config  ROW_LIMIT = 25000  # Flask App Builder configuration # Your App secret key will be used for securely signing the session cookie # and encrypting sensitive information on the database # Make sure you are changing this key for your deployment with a strong key. # Alternatively you can set it with `SUPERSET_SECRET_KEY` environment variable. # You MUST set this for production environments or the server will not refuse # to start and you will see an error in the logs accordingly.  SECRET_KEY = 'YOUR_OWN_RANDOM_GENERATED_SECRET_KEY'  # The SQLAlchemy connection string to your database backend # This connection defines the path to the database that stores your # superset metadata (slices, connections, tables, dashboards, ...). # Note that the connection information to connect to the datasources # you want to explore are managed directly in the web UI  # Flask-WTF flag for CSRF  WTF_CSRF_ENABLED = True  # Add endpoints that need to be exempt from CSRF protection  WTF_CSRF_EXEMPT_LIST = []  # A CSRF token that expires in 1 year  WTF_CSRF_TIME_LIMIT = 60 * 60 * 24 * 365  # Set this API key to enable Mapbox visualizations  MAPBOX_API_KEY = ''<\/code><\/pre>\n<p>\u0422\u0443\u0442 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SECRET_KEY = &#8216;YOUR_OWN_RANDOM_GENERATED_SECRET_KEY&#8217; &#8212; \u044d\u0442\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u043f\u043e \u043d\u043e\u0432\u044b\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0434\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0421\u0415\u041a\u0420\u0415\u0422\u041d\u042b\u0419 \u041a\u041e\u0414.<\/p>\n<p>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0432\u043e\u0439 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 SECRET_KEY:<\/p>\n<pre><code>openssl rand -base64 42<\/code><\/pre>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0432\u044b\u0448\u0435 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430:<\/p>\n<p> SECRET_KEY = &#8216;QWDSAB8DhYr63dBsqfrLTxMzG+Z6FNF1uyrsjaSfFk9yXMqeZ8tlndKia&#8217;  <\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043d\u0430\u0448\u0438 \u043f\u0440\u0430\u0432\u043a\u0438 (ctrl + S) \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430<\/p>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code>sudo docker-compose -f docker-compose-non-dev.yml pull  sudo docker-compose -f docker-compose-non-dev.yml up<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0441\u043f\u0443\u0441\u0442\u044f \u043f\u0430\u0440\u0443 \u043c\u0438\u043d\u0443\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0435\u0449\u0451 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u0430, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 &#8230;.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0432\u0441\u0451 \u043e\u043a:<\/p>\n<pre><code> docker ps -a  <\/code><\/pre>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u043f\u043e\u0440\u0442 8088 ( \u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439, 8080 \u043b\u0438\u0431\u043e \u0434\u0440\u0443\u0433\u043e\u0439).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/197\/d57\/bf2\/197d57bf2cc400a7c6bf2fdd008b01a6.jpg\" alt=\"\u0423\u0440\u0430, \u0443\u0441\u043f\u0435\u0445! \u041d\u0430 \u0441\u043a\u0440\u0438\u043d\u0435 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430\" title=\"\u0423\u0440\u0430, \u0443\u0441\u043f\u0435\u0445! \u041d\u0430 \u0441\u043a\u0440\u0438\u043d\u0435 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430\" width=\"2479\" height=\"880\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/197\/d57\/bf2\/197d57bf2cc400a7c6bf2fdd008b01a6.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u0423\u0440\u0430, \u0443\u0441\u043f\u0435\u0445! \u041d\u0430 \u0441\u043a\u0440\u0438\u043d\u0435 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c (\u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 docker-init.sh \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438):<\/p>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c: admin<\/p>\n<p>\u041f\u0430\u0440\u043e\u043b\u044c: admin<\/p>\n<p>\u041f\u043e\u0437\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438.<\/p>\n<h2>\u0414\u0430\u043b\u044c\u0448\u0435, \u043a\u0430\u043a \u0431\u044b\u0442\u044c \u0441 \u0411\u0414 \u0438 \u0421\u0423\u0411\u0414<\/h2>\n<p>\u0411\u0414 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0430 \u0441\u0432\u043e\u0451 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430 \u043f\u043e\u0440\u0442\u0430\u043b\u0435 BI.<\/p>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0411\u0414 Postgres \u043d\u0430 \u043f\u043e\u0440\u0442 5432, \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0435\u0451 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430 \u043f\u043e\u0440\u0442\u0430\u043b\u0435 BI.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u0421\u0423\u0411\u0414, \u0442\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 PgAdmin,\u00a0\u0435\u0451 Docker-\u0444\u0430\u0439\u043b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u00a0<a href=\"https:\/\/hub.docker.com\/r\/dpage\/pgadmin4\" rel=\"noopener noreferrer nofollow\">https:\/\/hub.docker.com\/r\/dpage\/pgadmin4<\/a><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043d\u043d\u0435\u043a\u0442 \u043a Mssql, \u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u043f.\u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0438 \u0437\u0430\u043b\u0435\u0437\u0442\u044c \u0432 \u0434\u043e\u043a\u0435\u0440-\u0444\u0430\u0439\u043b SS:<\/p>\n<p>\u0412\u0432\u0435\u0434\u0451\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432:<\/p>\n<pre><code>docker ps<\/code><\/pre>\n<p>\u041d\u0430\u0439\u0434\u0451\u043c \u043d\u043e\u043c\u0435\u0440 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043d\u0430\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 superset_app \u0438 \u0437\u0430\u0439\u0434\u0451\u043c \u0432 \u044d\u0442\u043e\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440:<\/p>\n<pre><code>sudo docker exec -it &lt;\u043d\u043e\u043c\u0435\u0440_\u043d\u0430\u0448\u0435\u0433\u043e_\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430> bash<\/code><\/pre>\n<p>\u0422\u0430\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0438 \u0432\u044b\u0439\u0434\u0435\u043c \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430(ctrl + z):<\/p>\n<pre><code>sudo apt update  sudo apt upgrade  pip install -U pip   pip install pymssql<\/code><\/pre>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/773296\/\"> https:\/\/habr.com\/ru\/articles\/773296\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e <a class=\"mention\" href=\"\/users\/ivolake\">@ivolake<\/a> \u0437\u0430 <a href=\"https:\/\/habr.com\/ru\/articles\/661159\" rel=\"noopener noreferrer nofollow\">\u00ab\u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c Apache Superset\u00a0\u2014 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0439 \u0433\u0430\u0439\u0434\u00bb<\/a>. \u0411\u043e\u043b\u044c\u0448\u0435 \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u0430 \u043e\u043d \u0441\u0442\u0430\u043b \u0431\u0430\u0437\u043e\u0439, \u043d\u043e \u0441\u043f\u0443\u0441\u0442\u044f \u0433\u043e\u0434 \u0431\u044b\u043b\u043e \u0432\u044b\u043f\u0443\u0449\u0435\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 SS \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0435\u0433\u043e \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0442\u0435\u0440\u043f\u0435\u043b \u0432\u0430\u0436\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<\/blockquote>\n<h2>\u041d\u0430\u0448\u0430 \u0441\u0440\u0435\u0434\u0430 \u043e\u0431\u0438\u0442\u0430\u043d\u0438\u044f Superset\u00a0<\/h2>\n<ul>\n<li>\n<p>Ubuntu 22.04<\/p>\n<\/li>\n<li>\n<p>Docker 24.06 \u0438 Docker-compose 2.22.0<\/p>\n<\/li>\n<li>\n<p>Postgres 14 \u0438 PgAdmin (\u0441\u0442\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e)<\/p>\n<\/li>\n<li>\n<p>Redis 7<\/p>\n<\/li>\n<li>\n<p>Python 3.10 (\u0435\u0441\u0442\u044c \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0430 Ubuntu 22.04)<\/p>\n<\/li>\n<li>\n<p>\u0422\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 Nano (\u0435\u0441\u0442\u044c \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0430 Ubuntu 22.04)<\/p>\n<p>\u0421\u0430\u043c Superset \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u0442\u0430\u0432\u0438\u0442\u044c <a href=\"https:\/\/github.com\/apache\/superset\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/apache\/superset<\/a><\/p>\n<\/li>\n<\/ul>\n<h2>\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a<\/h2>\n<ul>\n<li>\n<p>\u0421\u0430\u0439\u0442 Superset\u00a0 \u0441 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 <a href=\"https:\/\/superset.apache.org\/docs\/intro\" rel=\"noopener noreferrer nofollow\">https:\/\/superset.apache.org\/docs\/intro<\/a><\/p>\n<\/li>\n<li>\n<p>Superset\u00a0\u0440\u0435\u043b\u0438\u0437 3.0.1 <a href=\"https:\/\/github.com\/apache\/superset\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/apache\/superset<\/a><\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e Docker <a href=\"https:\/\/docs.docker.com\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.docker.com<\/a><\/p>\n<\/li>\n<li>\n<p>Docker-\u0444\u0430\u0439\u043b PgAdmin <a href=\"https:\/\/hub.docker.com\/r\/dpage\/pgadmin4\" rel=\"noopener noreferrer nofollow\">https:\/\/hub.docker.com\/r\/dpage\/pgadmin4<\/a><\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c SQL Server <a href=\"https:\/\/superset.apache.org\/docs\/databases\/sql-server\/\" rel=\"noopener noreferrer nofollow\">https:\/\/superset.apache.org\/docs\/databases\/sql-server<\/a><\/p>\n<\/li>\n<li>\n<p>\u0423 SS \u0435\u0441\u0442\u044c \u043e\u0431\u043b\u0430\u0447\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f <a href=\"https:\/\/preset.io\/\" rel=\"noopener noreferrer nofollow\">https:\/\/preset.io<\/a><\/p>\n<\/li>\n<\/ul>\n<h2> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 docker \u0438 docker-compose \u043d\u0430 Ubuntu  <\/h2>\n<p> \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0430\u043a\u0435\u0442\u043e\u0432:<\/p>\n<pre><code>sudo apt update<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u043b\u044f apt:<\/p>\n<pre><code>sudo apt install apt-transport-https ca-certificates curl software-properties-common<\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f Docker \u0432 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 apt:<\/p>\n<pre><code>sudo add-apt-repository \"deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu focal stable\"<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043b\u044e\u0447 GPG \u0434\u043b\u044f \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f Docker:<\/p>\n<pre><code>curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -<\/code><\/pre>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0435\u0449\u0451 \u0440\u0430\u0437 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0430\u043a\u0435\u0442\u043e\u0432:<\/p>\n<pre><code>sudo apt update<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Docker:<\/p>\n<pre><code>sudo apt install docker-ce<\/code><\/pre>\n<p> \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441 Docker:<\/p>\n<pre><code>sudo systemctl status docker<\/code><\/pre>\n<figure class=\"full-width\">\n<div><figcaption> \u041d\u0430\u043c \u0432\u0430\u0436\u043d\u043e active (running) <\/figcaption><\/div>\n<\/figure>\n<p> \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c Docker Compose plugin:<\/p>\n<pre><code>sudo apt-get update sudo apt-get install docker-compose-plugin<\/code><\/pre>\n<p> \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043a \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443:<\/p>\n<pre><code>sudo chmod +x \/usr\/local\/bin\/docker-compose<\/code><\/pre>\n<p>\u041d\u0443 \u0438 \u043d\u0430 \u043a\u043e\u043d\u0435\u0446 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430:<\/p>\n<pre><code>docker compose version<\/code><\/pre>\n<figure class=\"full-width\">\n<div><figcaption>\u041a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a<\/figcaption><\/div>\n<\/figure>\n<h2> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Apache Superset  <\/h2>\n<p> \u041a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0437 github:<\/p>\n<pre><code>git clone https:\/\/github.com\/apache\/superset.git<\/code><\/pre>\n<p> \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e:<\/p>\n<pre><code>cd superset<\/code><\/pre>\n<p> \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0432\u0435\u0442\u043a\u0443 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0440\u0435\u043b\u0438\u0437\u0430 ( 2.1.0 &#8212; \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u043e\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0435\u0439 (\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u0430), 3.0.1 &#8212; \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f)<\/p>\n<pre><code>git checkout 2.1.0<\/code><\/pre>\n<figure class=\"full-width\">\n<div><figcaption>\u0412\u0435\u0440\u0441\u0438\u044e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430 \u0441\u0432\u043e\u0451 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 git status  <\/figcaption><\/div>\n<\/figure>\n<h3> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 Nano (\u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e)<\/h3>\n<p>Nano \u0435\u0441\u0442\u044c \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435, \u043d\u043e \u0435\u0441\u043b\u0438 \u043f\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u0435\u0433\u043e \u043d\u0435\u0442, \u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c:<\/p>\n<pre><code>sudo apt update sudo apt upgrade  sudo apt install nano  nano --version<\/code><\/pre>\n<p>\u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0447\u0435\u0440\u0435\u0437 nano \u0444\u0430\u0439\u043b docker-compose-non-dev.yml (\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f 0.0.0 dev ) :<\/p>\n<pre><code>x-superset-image: &amp;amp;superset-image apache\/superset:${TAG:-latest-dev}<\/code><\/pre>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u043d\u0430:<\/p>\n<pre><code>x-superset-image: &amp;amp;superset-image apache\/superset:2.1.0   (\u0438\u043b\u0438 3.0.1)<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 docker:<\/p>\n<pre><code>cd docker<\/code><\/pre>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0432\u0430\u0436\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 superset_config.py<\/p>\n<pre><code>nano superset_config.py<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \/ \u0417\u0430\u043c\u0435\u043d\u0438\u043c \u0432 \u043d\u0435\u0433\u043e \u0442\u0435\u043a\u0441\u0442:<\/p>\n<pre><code># Superset specific config  ROW_LIMIT = 25000  # Flask App Builder configuration # Your App secret key will be used for securely signing the session cookie # and encrypting sensitive information on the database # Make sure you are changing this key for your deployment with a strong key. # Alternatively you can set it with `SUPERSET_SECRET_KEY` environment variable. # You MUST set this for production environments or the server will not refuse # to start and you will see an error in the logs accordingly.  SECRET_KEY = 'YOUR_OWN_RANDOM_GENERATED_SECRET_KEY'  # The SQLAlchemy connection string to your database backend # This connection defines the path to the database that stores your # superset metadata (slices, connections, tables, dashboards, ...). # Note that the connection information to connect to the datasources # you want to explore are managed directly in the web UI  # Flask-WTF flag for CSRF  WTF_CSRF_ENABLED = True  # Add endpoints that need to be exempt from CSRF protection  WTF_CSRF_EXEMPT_LIST = []  # A CSRF token that expires in 1 year  WTF_CSRF_TIME_LIMIT = 60 * 60 * 24 * 365  # Set this API key to enable Mapbox visualizations  MAPBOX_API_KEY = ''<\/code><\/pre>\n<p>\u0422\u0443\u0442 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SECRET_KEY = &#8216;YOUR_OWN_RANDOM_GENERATED_SECRET_KEY&#8217; &#8212; \u044d\u0442\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u043f\u043e \u043d\u043e\u0432\u044b\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0434\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0421\u0415\u041a\u0420\u0415\u0422\u041d\u042b\u0419 \u041a\u041e\u0414.<\/p>\n<p>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0432\u043e\u0439 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 SECRET_KEY:<\/p>\n<pre><code>openssl rand -base64 42<\/code><\/pre>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0432\u044b\u0448\u0435 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430:<\/p>\n<p> SECRET_KEY = &#8216;QWDSAB8DhYr63dBsqfrLTxMzG+Z6FNF1uyrsjaSfFk9yXMqeZ8tlndKia&#8217;  <\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043d\u0430\u0448\u0438 \u043f\u0440\u0430\u0432\u043a\u0438 (ctrl + S) \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430<\/p>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code>sudo docker-compose -f docker-compose-non-dev.yml pull  sudo docker-compose -f docker-compose-non-dev.yml up<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0441\u043f\u0443\u0441\u0442\u044f \u043f\u0430\u0440\u0443 \u043c\u0438\u043d\u0443\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0435\u0449\u0451 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u0430, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 &#8230;.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0432\u0441\u0451 \u043e\u043a:<\/p>\n<pre><code> docker ps -a  <\/code><\/pre>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u043f\u043e\u0440\u0442 8088 ( \u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439, 8080 \u043b\u0438\u0431\u043e \u0434\u0440\u0443\u0433\u043e\u0439).<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0423\u0440\u0430, \u0443\u0441\u043f\u0435\u0445! \u041d\u0430 \u0441\u043a\u0440\u0438\u043d\u0435 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c (\u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 docker-init.sh \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438):<\/p>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c: admin<\/p>\n<p>\u041f\u0430\u0440\u043e\u043b\u044c: admin<\/p>\n<p>\u041f\u043e\u0437\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438.<\/p>\n<h2>\u0414\u0430\u043b\u044c\u0448\u0435, \u043a\u0430\u043a \u0431\u044b\u0442\u044c \u0441 \u0411\u0414 \u0438 \u0421\u0423\u0411\u0414<\/h2>\n<p>\u0411\u0414 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0430 \u0441\u0432\u043e\u0451 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430 \u043f\u043e\u0440\u0442\u0430\u043b\u0435 BI.<\/p>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0411\u0414 Postgres \u043d\u0430 \u043f\u043e\u0440\u0442 5432, \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0435\u0451 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430 \u043f\u043e\u0440\u0442\u0430\u043b\u0435 BI.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u0421\u0423\u0411\u0414, \u0442\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 PgAdmin,\u00a0\u0435\u0451 Docker-\u0444\u0430\u0439\u043b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u00a0<a href=\"https:\/\/hub.docker.com\/r\/dpage\/pgadmin4\" rel=\"noopener noreferrer nofollow\">https:\/\/hub.docker.com\/r\/dpage\/pgadmin4<\/a><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043d\u043d\u0435\u043a\u0442 \u043a Mssql, \u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u043f.\u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0438 \u0437\u0430\u043b\u0435\u0437\u0442\u044c \u0432 \u0434\u043e\u043a\u0435\u0440-\u0444\u0430\u0439\u043b SS:<\/p>\n<p>\u0412\u0432\u0435\u0434\u0451\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432:<\/p>\n<pre><code>docker ps<\/code><\/pre>\n<p>\u041d\u0430\u0439\u0434\u0451\u043c \u043d\u043e\u043c\u0435\u0440 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043d\u0430\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 superset_app \u0438 \u0437\u0430\u0439\u0434\u0451\u043c \u0432 \u044d\u0442\u043e\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440:<\/p>\n<pre><code>sudo docker exec -it &lt;\u043d\u043e\u043c\u0435\u0440_\u043d\u0430\u0448\u0435\u0433\u043e_\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430> bash<\/code><\/pre>\n<p>\u0422\u0430\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0438 \u0432\u044b\u0439\u0434\u0435\u043c \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430(ctrl + z):<\/p>\n<pre><code>sudo apt update  sudo apt upgrade  pip install -U pip   pip install pymssql<\/code><\/pre>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/773296\/\"> https:\/\/habr.com\/ru\/articles\/773296\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-359895","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/359895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=359895"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/359895\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=359895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=359895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=359895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}