Step 1: Login Linux and check the CentOS version
[root@bigdatasmallteam ~]# whoami
root
[root@bigdatasmallteam ~]# free
total used free shared buff/cache available
Mem: 16247588 1266648 11102236 274164 3878704 14368600
Swap: 9957372 0 9957372
[root@bigdatasmallteam ~]#
How to Install Docker on Linux CentOS 7.9
Step 1: Check Linux CentOS version:
[root@bigdatasmallteam ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
Step 2: Update the system in CentOS 7
[root@bigdatasmallteam ~]# sudo yum check-update
Loaded plugins: enabled_repos_upload, fastestmirror, package_upload, product-id, search-disabled-repos, subscription-manager,
: tracer_upload, versionlock
Loading mirror speeds from cached hostfile
PwC_CentOS_7_Base | 2.1 kB 00:00:00
PwC_CentOS_7_Extras | 2.1 kB 00:00:00
PwC_CentOS_7_Updates | 2.1 kB 00:00:00
PwC_Docker_Docker-CE | 2.1 kB 00:00:00
PwC_EPEL_7_EPEL | 2.6 kB 00:00:00
PwC_EPEL_7_Supplementary_EPEL_Created_by_PwC | 2.1 kB 00:00:00
PwC_Foreman_1_22_Foreman_Client | 2.1 kB 00:00:00
PwC_Foreman_2_1_Foreman_Client | 2.1 kB 00:00:00
PwC_Microsoft_Linux_Software_Repository_7_prod | 2.1 kB 00:00:00
mdatp.x86_64 101.53.02-1 PwC_Microsoft_Linux_Software_Repository_7_prod
Uploading Enabled Repositories Report
Loaded plugins: fastestmirror, product-id, subscription-manager, versionlock
[root@bigdatasmallteam ~]#
Step 3: Get the docker compose from github
If the server can connect the github, then run below script. Otherwise, download the docker compose and then upload to the CentOS server.**
How to install Docker on Linux CentOS 7.9
[root@iZ2zehb3zobkh31kn9cuo2Z ~]# curl -SL https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
[root@bigdatasmallteam ~]# mkdir -p ~/.docker/cli-plugins/
Step 4: Download the Docker Compose
https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64 on Windows
Upload docker-compose-linux-x86_64 to the server folder
[root@bigdatasmallteam ~]# pwd
/root
[root@bigdatasmallteam ~]# cp /home/CN_SSH_USER_02/docker-compose-linux-x86_64 /root/.docker/cli-plugins/
[root@bigdatasmallteam ~]# ls -l /root/.docker/cli-plugins/
total 24128
-rw------- 1 root root 24707072 Mar 3 13:33 docker-compose-linux-x86_64
[root@bigdatasmallteam ~]#
Install docker on Linux:
Docker Documentation – 16 Mar 22
Lists the installation methods
Docker Documentation – 16 Mar 22
Instructions for installing Docker Engine on CentOS
[root@bigdatasmallteam ~]# sudo yum install docker-ce docker-ce-cli containerd.io
Loaded plugins: enabled_repos_upload, fastestmirror, package_upload, product-id, search-disabled-repos, subscription-manager, tracer_upload, versionlock
Loading mirror speeds from cached hostfile
PwC_CentOS_7_Base | 2.1 kB 00:00:00
PwC_CentOS_7_Extras | 2.1 kB 00:00:00
PwC_CentOS_7_Updates | 2.1 kB 00:00:00
PwC_Docker_Docker-CE | 2.1 kB 00:00:00
PwC_EPEL_7_EPEL | 2.6 kB 00:00:00
PwC_EPEL_7_Supplementary_EPEL_Created_by_PwC | 2.1 kB 00:00:00
PwC_Foreman_1_22_Foreman_Client | 2.1 kB 00:00:00
PwC_Foreman_2_1_Foreman_Client | 2.1 kB 00:00:00
PwC_Microsoft_Linux_Software_Repository_7_prod | 2.1 kB 00:00:00
mdatp.x86_64 101.53.02-1 PwC_Microsoft_Linux_Software_Repository_7_prod
Uploading Enabled Repositories Report
Loaded plugins: fastestmirror, product-id, subscription-manager, versionlock
[root@bigdatasmallteam ~]# sudo yum install docker-ce docker-ce-cli containerd.io
Loaded plugins: enabled_repos_upload, fastestmirror, package_upload, product-id, search-disabled-repos, subscription-manager, tracer_upload, versionlock
Loading mirror speeds from cached hostfile
PwC_CentOS_7_Base | 2.1 kB 00:00:00
PwC_CentOS_7_Extras | 2.1 kB 00:00:00
PwC_CentOS_7_Updates | 2.1 kB 00:00:00
PwC_Docker_Docker-CE | 2.1 kB 00:00:00
PwC_EPEL_7_EPEL | 2.6 kB 00:00:00
Step 5: Start Docker and check docker status
[root@bigdatasmallteam ~]# sudo systemctl start docker
[root@bigdatasmallteam ~]# sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2022-03-03 13:43:38 HKT; 2min 16s ago
Docs: https://docs.docker.com
Main PID: 109474 (dockerd)
Tasks: 7
Memory: 31.2M
CGroup: /system.slice/docker.service
└─109474 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Mar 03 13:43:37 bigdatasmallteam dockerd[109474]: time="2022-03-03T13:43:37.994893444+08:00" level=info msg="failed to read ipv6 net.ipv6.conf.....accept_ra
Mar 03 13:43:37 bigdatasmallteam dockerd[109474]: time="2022-03-03T13:43:37.994920496+08:00" level=info msg="failed to read ipv6 net.ipv6.conf.....accept_ra
Mar 03 13:43:38 bigdatasmallteam dockerd[109474]: time="2022-03-03T13:43:38.197460756+08:00" level=info msg="Loading containers: done."
Mar 03 13:43:38 bigdatasmallteam dockerd[109474]: time="2022-03-03T13:43:38.254772674+08:00" level=info msg="Docker daemon" commit=459d0df graphdriver(s...=20.10.12
Mar 03 13:43:38 bigdatasmallteam dockerd[109474]: time="2022-03-03T13:43:38.254901669+08:00" level=info msg="Daemon has completed initialization"
Mar 03 13:43:38 bigdatasmallteam systemd[1]: Started Docker Application Container Engine.
Mar 03 13:43:38 bigdatasmallteam dockerd[109474]: time="2022-03-03T13:43:38.323577822+08:00" level=info msg="API listen on /var/run/docker.sock"
Mar 03 13:43:46 bigdatasmallteam dockerd[109474]: time="2022-03-03T13:43:46.451376542+08:00" level=warning msg="Error getting v2 registry: Get \"https:/... by peer"
Mar 03 13:43:46 bigdatasmallteam dockerd[109474]: time="2022-03-03T13:43:46.451424609+08:00" level=info msg="Attempting next endpoint for pull after err... by peer"
Mar 03 13:43:46 bigdatasmallteam dockerd[109474]: time="2022-03-03T13:43:46.460385769+08:00" level=error msg="Handler for POST /v1.41/images/create retu... by peer"
Hint: Some lines were ellipsized, use -l to show in full.
Step 6: Create a user superset_user for Apache superset.
[root@bigdatasmallteam ~]# whoami
root
[root@bigdatasmallteam ~]# sudo useradd superset_user
[root@bigdatasmallteam ~]# sudo usermod -aG docker superset_user
[root@bigdatasmallteam ~]# docker --version
Docker version 20.10.12, build e91ed57
Step 7: Check the docker hello-world.
[superset_user@bigdatasmallteam ~]$ whoami
superset_user
[superset_user@bigdatasmallteam ~]$ docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": read tcp 10.158.34.75:36406->54.86.228.181:443: read: connection reset by peer.
See 'docker run --help'.
[superset_user@bigdatasmallteam ~]$
This issue because this server cannot connect the internet (https://hub.docker.com).
Step 8: Download the hello-world docker image and apache superset docker image from https://hub.docker.com
Assuming we have another Linux on Aliyun that can download the docker images.
Download: docker hello-world
Docker Hub
Linux of Aliyun Server:
Download Hello-world docker image.
root@iZj6c746e7oevje00s2gumZ:~# docker -v
Docker version 20.10.12, build e91ed57
root@iZj6c746e7oevje00s2gumZ:~# docker pull hello-world
Using default tag: latest
latest: Pulling from library/hello-world
2db29710123e: Pull complete
Digest: sha256:4c5f3db4f8a54eb1e017c385f683a2de6e06f75be442dc32698c9bbe6c861edd
Status: Downloaded newer image for hello-world:latest
docker.io/library/hello-world:latest
root@iZj6c746e7oevje00s2gumZ:~# docker save hello-world > hello-world.tar
root@iZj6c746e7oevje00s2gumZ:~# ls -l
total 24
-rw-r--r-- 1 root root 24064 Mar 15 10:51 hello-world.tar
root@iZj6c746e7oevje00s2gumZ:~#
root@iZj6c746e7oevje00s2gumZ:~# chmod 777 *.*
root@iZj6c746e7oevje00s2gumZ:~# ls -l
total 24
-rwxrwxrwx 1 root root 24064 Mar 15 10:51 hello-world.tar
Download the Apache superset docker image.
root@iZj6c746e7oevje00s2gumZ:~# docker pull apache/superset
Using default tag: latest
latest: Pulling from apache/superset
e4d61adff207: Pull complete
4ff1945c672b: Pull complete
ff5b10aec998: Pull complete
12de8c754e45: Pull complete
ada1762e7602: Pull complete
2f2b2e030155: Pull complete
4169ad44c6d7: Pull complete
672a77ed36b6: Pull complete
a6d75b62b7e9: Pull complete
c5169b454ce8: Pull complete
5e7068fd48b5: Pull complete
90d1d3c899d2: Pull complete
b274567d4661: Pull complete
df5ca01d8ac7: Pull complete
fb0f0b542a01: Pull complete
ac856bf97c6b: Pull complete
720be1ef7467: Pull complete
c1706894113a: Pull complete
c250dbcb2341: Pull complete
Digest: sha256:05d09c62a6fcfd7e0403904cde2b34876c05fa5f5bd6df02081eb339d09de2f5
Status: Downloaded newer image for apache/superset:latest
docker.io/apache/superset:latest
root@iZj6c746e7oevje00s2gumZ:~# ls
hello-world.tar
root@iZj6c746e7oevje00s2gumZ:~# docker save apache/superset > superset.tar
root@iZj6c746e7oevje00s2gumZ:~# chmod 777 *.*
root@iZj6c746e7oevje00s2gumZ:~# ls -l
total 1595752
-rwxrwxrwx 1 root root 24064 Mar 15 10:51 hello-world.tar
-rwxrwxrwx 1 root root 1634021376 Mar 15 10:57 superset.tar
root@iZj6c746e7oevje00s2gumZ:~#
Download the Docker Image hello-world.tar and superset.tar to laptop.
And then upload them to the Linux CentOS7 that cannot connect internet
Step 9: Upload hello-world.tar to no internet Linux Server and run the docker image.
[root@Bigdatasmallteam]# cp hello-world.tar /home/superset_user/
[root@Bigdatasmallteam]# chmod 777 /home/superset_user/hello-world.tar
[root@Bigdatasmallteam]# su - superset_user
Last login: Tue Mar 15 10:03:56 HKT 2022 on pts/0
[superset_user@Bigdatasmallteam ~]$ whoami
superset_user
[superset_user@Bigdatasmallteam ~]$ ls
hello-world.tar superset-master superset-master.zip venv
[superset_user@Bigdatasmallteam ~]$
[superset_user@Bigdatasmallteam ~]$ docker load --input hello-world.tar
e07ee1baac5f: Loading layer [==================================================>] 14.85kB/14.85kB
Loaded image: hello-world:latest
[superset_user@Bigdatasmallteam ~]$
[superset_user@Bigdatasmallteam ~]$ docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
[superset_user@Bigdatasmallteam ~]$
Step 10: Upload superset.tar to no internet Linux Server and run the docker image.
Docker Hub
[root@Bigdatasmallteam]# cp /home/CN_SSH_USER_02/superset.tar /home/superset_user/
[root@Bigdatasmallteam]# cd /home/superset_user/
[root@Bigdatasmallteam superset_user]# ls
hello-world.tar superset-master superset-master.zip superset.tar venv
[root@Bigdatasmallteam superset_user]# chmod 777 superset.tar
[root@Bigdatasmallteam superset_user]# su - superset_user
Last login: Tue Mar 15 11:13:11 HKT 2022 on pts/0
[superset_user@Bigdatasmallteam ~]$ pwd
/home/superset_user
[superset_user@Bigdatasmallteam ~]$ ls
hello-world.tar superset-master superset-master.zip superset.tar venv
[superset_user@Bigdatasmallteam ~]$ docker load --input superset.tar
89fda00479fc: Loading layer [==================================================>] 129.1MB/129.1MB
26d5108b2cba: Loading layer [==================================================>] 11.3MB/11.3MB
48144a6f44ae: Loading layer [==================================================>] 19.31MB/19.31MB
e3f84a8cee1f: Loading layer [==================================================>] 156.5MB/156.5MB
316e3949bffa: Loading layer [==================================================>] 537.7MB/537.7MB
182f3ce3bf27: Loading layer [==================================================>] 19.04MB/19.04MB
5b9e7e39f904: Loading layer [==================================================>] 49.53MB/49.53MB
ff1f2a3b1a2d: Loading layer [==================================================>] 4.608kB/4.608kB
8dc5d08744dd: Loading layer [==================================================>] 8.788MB/8.788MB
08f045111778: Loading layer [==================================================>] 3.596MB/3.596MB
6e2b79321b71: Loading layer [==================================================>] 414.7MB/414.7MB
eb69610baeda: Loading layer [==================================================>] 5.12kB/5.12kB
b39b8b3696b2: Loading layer [==================================================>] 53.05MB/53.05MB
46028d1fd9c7: Loading layer [==================================================>] 71.49MB/71.49MB
82f63dd3cf6a: Loading layer [==================================================>] 15.63MB/15.63MB
f94bc4052a06: Loading layer [==================================================>] 23.04kB/23.04kB
d2fd34c7ee71: Loading layer [==================================================>] 144.2MB/144.2MB
5b9b6f158836: Loading layer [==================================================>] 4.096kB/4.096kB
8d07b0568d41: Loading layer [==================================================>] 4.096kB/4.096kB
Loaded image: apache/superset:latest
[superset_user@Bigdatasmallteam ~]$
Step 11: Run the Docker Image Apache Superset
[superset_user@Bigdatasmallteam ~]$ docker run -d -p 8080:8088 --name superset apache/superset
42e808a95fe687e9497b90ad22abbfafd42bfc1431600ac2690aecb6eb304af7
[superset_user@Bigdatasmallteam ~]$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
42e808a95fe6 apache/superset "/bin/sh -c /usr/bin…" 23 seconds ago Up 22 seconds (health: starting) 0.0.0.0:8080->8088/tcp superset
a7f3168eb8a1 hello-world "/hello" 25 hours ago Exited (0) 25 hours ago charming_edison
[superset_user@Bigdatasmallteam ~]$ docker exec -it superset superset fab create-admin \
> --username admin \
> --firstname Superset \
> --lastname Admin \
> --email [email protected] \
> --password admin
--------------------------------------------------------------------------------
WARNING
--------------------------------------------------------------------------------
A Default SECRET_KEY was detected, please use superset_config.py to override it.
Use a strong complex alphanumeric string and use a tool to help you generate
a sufficiently random sequence, ex: openssl rand -base64 42
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
logging was configured successfully
2022-03-16 03:48:42,915:INFO:superset.utils.logging_configurator:logging was configured successfully
2022-03-16 03:48:42,926:INFO:root:Configured event logger of type
/usr/local/lib/python3.8/site-packages/flask_caching/__init__.py:201: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
warnings.warn(
Recognized Database Authentications.
Admin User admin created.
[superset_user@Bigdatasmallteam ~]$
[superset_user@Bigdatasmallteam ~]$ docker exec -it superset superset db upgrade
--------------------------------------------------------------------------------
WARNING
--------------------------------------------------------------------------------
A Default SECRET_KEY was detected, please use superset_config.py to override it.
Use a strong complex alphanumeric string and use a tool to help you generate
a sufficiently random sequence, ex: openssl rand -base64 42
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
logging was configured successfully
2022-03-16 03:49:28,863:INFO:superset.utils.logging_configurator:logging was configured successfully
2022-03-16 03:49:28,872:INFO:root:Configured event logger of type
/usr/local/lib/python3.8/site-packages/flask_caching/__init__.py:201: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
warnings.warn(
WARNI [alembic.env] SQLite Database support for metadata databases will be removed in a future version of Superset.
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 4e6a06bad7a8, Init
INFO [alembic.runtime.migration] Running upgrade 4e6a06bad7a8 -> 5a7bad26f2a7, empty message
INFO [alembic.runtime.migration] Running upgrade 5a7bad26f2a7 -> 1e2841a4128, empty message
INFO [alembic.runtime.migration] Running upgrade 1e2841a4128 -> 2929af7925ed, TZ offsets in data sources
INFO [alembic.runtime.migration] Running upgrade 2929af7925ed -> 289ce07647b, Add encrypted password field
INFO [alembic.runtime.migration] Running upgrade 289ce07647b -> 1a48a5411020, adding slug to dash
INFO [alembic.runtime.migration] Running upgrade 1a48a5411020 -> 315b3f4da9b0, adding log model
INFO [alembic.runtime.migration] Running upgrade 315b3f4da9b0 -> 55179c7f25c7, sqla_descr
INFO [alembic.runtime.migration] Running upgrade 55179c7f25c7 -> 12d55656cbca, is_featured
/usr/local/lib/python3.8/site-packages/alembic/ddl/sqlite.py:43: UserWarning: Skipping unsupported ALTER for creation of implicit constraintPlease refer to the batch mode feature which allows for SQLite migrations using a copy-and-move strategy.
util.warn(
INFO [alembic.runtime.migration] Running upgrade 12d55656cbca -> 2591d77e9831, user_id
INFO [alembic.runtime.migration] Running upgrade 2591d77e9831 -> 8e80a26a31db, empty message
INFO [alembic.runtime.migration] Running upgrade 8e80a26a31db -> 7dbf98566af7, empty message
INFO [alembic.runtime.migration] Running upgrade 7dbf98566af7 -> 43df8de3a5f4, empty message
INFO [alembic.runtime.migration] Running upgrade 43df8de3a5f4 -> d827694c7555, css templates
INFO [alembic.runtime.migration] Running upgrade d827694c7555 -> 430039611635, log more
INFO [alembic.runtime.migration] Running upgrade 430039611635 -> 18e88e1cc004, making audit nullable
INFO [alembic.runtime.migration] Running upgrade 18e88e1cc004 -> 836c0bf75904, cache_timeouts
INFO [alembic.runtime.migration] Running upgrade 18e88e1cc004 -> a2d606a761d9, adding favstar model
INFO [alembic.runtime.migration] Running upgrade a2d606a761d9, 836c0bf75904 -> d2424a248d63, empty message
INFO [alembic.runtime.migration] Running upgrade d2424a248d63 -> 763d4b211ec9, fixing audit fk
INFO [alembic.runtime.migration] Running upgrade d2424a248d63 -> 1d2ddd543133, log dt
INFO [alembic.runtime.migration] Running upgrade 1d2ddd543133, 763d4b211ec9 -> fee7b758c130, empty message
INFO [alembic.runtime.migration] Running upgrade fee7b758c130 -> 867bf4f117f9, Adding extra field to Database model
INFO [alembic.runtime.migration] Running upgrade 867bf4f117f9 -> bb51420eaf83, add schema to table model
INFO [alembic.runtime.migration] Running upgrade bb51420eaf83 -> b4456560d4f3, change_table_unique_constraint
INFO [alembic.runtime.migration] Running upgrade b4456560d4f3 -> 4fa88fe24e94, owners_many_to_many
INFO [alembic.runtime.migration] Running upgrade 4fa88fe24e94 -> c3a8f8611885, Materializing permission
INFO [alembic.runtime.migration] Running upgrade c3a8f8611885 -> f0fbf6129e13, Adding verbose_name to tablecolumn
INFO [alembic.runtime.migration] Running upgrade f0fbf6129e13 -> 956a063c52b3, adjusting key length
INFO [alembic.runtime.migration] Running upgrade 956a063c52b3 -> 1226819ee0e3, Fix wrong constraint on table columns
INFO [alembic.runtime.migration] Running upgrade 1226819ee0e3 -> d8bc074f7aad, Add new field 'is_restricted' to SqlMetric and DruidMetric
INFO [alembic.runtime.migration] Running upgrade d8bc074f7aad -> 27ae655e4247, Make creator owners
INFO [alembic.runtime.migration] Running upgrade 27ae655e4247 -> 960c69cb1f5b, add dttm_format related fields in table_columns
INFO [alembic.runtime.migration] Running upgrade 960c69cb1f5b -> f162a1dea4c4, d3format_by_metric
INFO [alembic.runtime.migration] Running upgrade f162a1dea4c4 -> ad82a75afd82, Update models to support storing the queries.
INFO [alembic.runtime.migration] Running upgrade ad82a75afd82 -> 3c3ffe173e4f, add_sql_string_to_table
INFO [alembic.runtime.migration] Running upgrade 3c3ffe173e4f -> 41f6a59a61f2, database options for sql lab
INFO [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -> 4500485bde7d, allow_run_sync_async
INFO [alembic.runtime.migration] Running upgrade 4500485bde7d -> 65903709c321, allow_dml
INFO [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -> 33d996bcc382, update slice model
INFO [alembic.runtime.migration] Running upgrade 33d996bcc382, 65903709c321 -> b347b202819b, empty message
INFO [alembic.runtime.migration] Running upgrade b347b202819b -> 5e4a03ef0bf0, Add access_request table to manage requests to access datastores.
INFO [alembic.runtime.migration] Running upgrade 5e4a03ef0bf0 -> eca4694defa7, sqllab_setting_defaults
INFO [alembic.runtime.migration] Running upgrade eca4694defa7 -> ab3d66c4246e, add_cache_timeout_to_druid_cluster
INFO [alembic.runtime.migration] Running upgrade eca4694defa7 -> 3b626e2a6783, Sync DB with the models.py.
WARNI [root] Constraint must have a name
INFO [alembic.runtime.migration] Running upgrade 3b626e2a6783, ab3d66c4246e -> ef8843b41dac, empty message
INFO [alembic.runtime.migration] Running upgrade ef8843b41dac -> b46fa1b0b39e, Add json_metadata to the tables table.
INFO [alembic.runtime.migration] Running upgrade b46fa1b0b39e -> 7e3ddad2a00b, results_key to query
INFO [alembic.runtime.migration] Running upgrade 7e3ddad2a00b -> ad4d656d92bc, Add avg() to default metrics
INFO [alembic.runtime.migration] Running upgrade ad4d656d92bc -> c611f2b591b8, dim_spec
INFO [alembic.runtime.migration] Running upgrade c611f2b591b8 -> e46f2d27a08e, materialize perms
INFO [alembic.runtime.migration] Running upgrade e46f2d27a08e -> f1f2d4af5b90, Enable Filter Select
INFO [alembic.runtime.migration] Running upgrade e46f2d27a08e -> 525c854f0005, log_this_plus
INFO [alembic.runtime.migration] Running upgrade 525c854f0005, f1f2d4af5b90 -> 6414e83d82b7, empty message
INFO [alembic.runtime.migration] Running upgrade 6414e83d82b7 -> 1296d28ec131, Adds params to the datasource (druid) table
INFO [alembic.runtime.migration] Running upgrade 1296d28ec131 -> f18570e03440, Add index on the result key to the query table.
INFO [alembic.runtime.migration] Running upgrade f18570e03440 -> bcf3126872fc, Add keyvalue table
INFO [alembic.runtime.migration] Running upgrade f18570e03440 -> db0c65b146bd, update_slice_model_json
INFO [alembic.runtime.migration] Running upgrade db0c65b146bd -> a99f2f7c195a, rewriting url from shortner with new format
INFO [alembic.runtime.migration] Running upgrade a99f2f7c195a, bcf3126872fc -> d6db5a5cdb5d, empty message
INFO [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -> b318dfe5fb6c, adding verbose_name to druid column
INFO [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -> 732f1c06bcbf, add fetch values predicate
INFO [alembic.runtime.migration] Running upgrade 732f1c06bcbf, b318dfe5fb6c -> ea033256294a, empty message
INFO [alembic.runtime.migration] Running upgrade b318dfe5fb6c -> db527d8c4c78, Add verbose name to DruidCluster and Database
INFO [alembic.runtime.migration] Running upgrade db527d8c4c78, ea033256294a -> 979c03af3341, empty message
INFO [alembic.runtime.migration] Running upgrade 979c03af3341 -> a6c18f869a4e, query.start_running_time
INFO [alembic.runtime.migration] Running upgrade a6c18f869a4e -> 2fcdcb35e487, saved_queries
INFO [alembic.runtime.migration] Running upgrade 2fcdcb35e487 -> a65458420354, add_result_backend_time_logging
INFO [alembic.runtime.migration] Running upgrade a65458420354 -> ca69c70ec99b, tracking_url
INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -> a9c47e2c1547, add impersonate_user to dbs
INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -> ddd6ebdd853b, annotations
INFO [alembic.runtime.migration] Running upgrade a9c47e2c1547, ddd6ebdd853b -> d39b1e37131d, empty message
INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -> 19a814813610, Adding metric warning_text
INFO [alembic.runtime.migration] Running upgrade 19a814813610, a9c47e2c1547 -> 472d2f73dfd4, empty message
INFO [alembic.runtime.migration] Running upgrade 472d2f73dfd4, d39b1e37131d -> f959a6652acd, empty message
INFO [alembic.runtime.migration] Running upgrade f959a6652acd -> 4736ec66ce19, empty message
/usr/local/lib/python3.8/site-packages/sqlalchemy/dialects/sqlite/base.py:2011: SAWarning: WARNING: SQL-parsed foreign key constraint '('datasource_name', 'datasources', 'datasource_name')' could not be located in PRAGMA foreign_keys for table metrics
util.warn(
INFO [alembic.runtime.migration] Running upgrade 4736ec66ce19 -> 67a6ac9b727b, update_spatial_params
INFO [alembic.runtime.migration] Running upgrade 67a6ac9b727b -> 21e88bc06c02, migrate_old_annotation_layers
INFO [alembic.runtime.migration] Running upgrade 21e88bc06c02 -> e866bd2d4976, smaller_grid
Revision ID: e866bd2d4976
Revises: 21e88bc06c02
Create Date: 2018-02-13 08:07:40.766277
INFO [alembic.runtime.migration] Running upgrade e866bd2d4976 -> e68c4473c581, allow_multi_schema_metadata_fetch
INFO [alembic.runtime.migration] Running upgrade e68c4473c581 -> f231d82b9b26, empty message
INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -> bf706ae5eb46, cal_heatmap_metric_to_metrics
INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -> 30bb17c0dc76, empty message
INFO [alembic.runtime.migration] Running upgrade 30bb17c0dc76, bf706ae5eb46 -> c9495751e314, empty message
INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -> 130915240929, is_sqllab_view
INFO [alembic.runtime.migration] Running upgrade 130915240929, c9495751e314 -> 5ccf602336a0, empty message
INFO [alembic.runtime.migration] Running upgrade 5ccf602336a0 -> e502db2af7be, add template_params to tables
INFO [alembic.runtime.migration] Running upgrade e502db2af7be -> c5756bec8b47, Time grain SQLA
INFO [alembic.runtime.migration] Running upgrade c5756bec8b47 -> afb7730f6a9c, remove empty filters
INFO [alembic.runtime.migration] Running upgrade afb7730f6a9c -> 80a67c5192fa, single pie chart metric
INFO [alembic.runtime.migration] Running upgrade 80a67c5192fa -> bddc498dd179, adhoc filters
INFO [alembic.runtime.migration] Running upgrade bddc498dd179 -> 4451805bbaa1, remove double percents
INFO [alembic.runtime.migration] Running upgrade bddc498dd179 -> 3dda56f1c4c6, Migrate num_period_compare and period_ratio_type
INFO [alembic.runtime.migration] Running upgrade 3dda56f1c4c6 -> 1d9e835a84f9, empty message
INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -> e3970889f38e, empty message
INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -> 705732c70154, empty message
INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -> fc480c87706c, empty message
INFO [alembic.runtime.migration] Running upgrade fc480c87706c -> bebcf3fed1fe, Migrate dashboard position_json data from V1 to V2
INFO [alembic.runtime.migration] Running upgrade bebcf3fed1fe, 705732c70154 -> ec1f88a35cc6, empty message
INFO [alembic.runtime.migration] Running upgrade 705732c70154, e3970889f38e -> 46ba6aaaac97, empty message
INFO [alembic.runtime.migration] Running upgrade 46ba6aaaac97, ec1f88a35cc6 -> c18bd4186f15, empty message
INFO [alembic.runtime.migration] Running upgrade c18bd4186f15 -> 7fcdcde0761c, Reduce position_json size by remove extra space and component id prefix
INFO [alembic.runtime.migration] Running upgrade 7fcdcde0761c -> 0c5070e96b57, add user attributes table
INFO [alembic.runtime.migration] Running upgrade 0c5070e96b57 -> 1a1d627ebd8e, position_json
INFO [alembic.runtime.migration] Running upgrade 1a1d627ebd8e -> 55e910a74826, add_metadata_column_to_annotation_model.py
INFO [alembic.runtime.migration] Running upgrade 55e910a74826 -> 4ce8df208545, empty message
INFO [alembic.runtime.migration] Running upgrade 4ce8df208545 -> 46f444d8b9b7, remove_coordinator_from_druid_cluster_model.py
INFO [alembic.runtime.migration] Running upgrade 46f444d8b9b7 -> a61b40f9f57f, remove allow_run_sync
INFO [alembic.runtime.migration] Running upgrade a61b40f9f57f -> 6c7537a6004a, models for email reports
INFO [alembic.runtime.migration] Running upgrade 6c7537a6004a -> 3e1b21cd94a4, change_owner_to_m2m_relation_on_datasources.py
INFO [alembic.runtime.migration] Running upgrade 6c7537a6004a -> cefabc8f7d38, Increase size of name column in ab_view_menu
INFO [alembic.runtime.migration] Running upgrade 55e910a74826 -> 0b1f1ab473c0, Add extra column to Query
INFO [alembic.runtime.migration] Running upgrade 0b1f1ab473c0, cefabc8f7d38, 3e1b21cd94a4 -> de021a1ca60d, empty message
INFO [alembic.runtime.migration] Running upgrade de021a1ca60d -> fb13d49b72f9, better_filters
INFO [alembic.runtime.migration] Running upgrade fb13d49b72f9 -> a33a03f16c4a, Add extra column to SavedQuery
INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -> c829ff0b37d0, empty message
INFO [alembic.runtime.migration] Running upgrade c829ff0b37d0 -> 7467e77870e4, remove_aggs
INFO [alembic.runtime.migration] Running upgrade 7467e77870e4, de021a1ca60d -> fbd55e0f83eb, empty message
INFO [alembic.runtime.migration] Running upgrade fbd55e0f83eb, fb13d49b72f9 -> 8b70aa3d0f87, empty message
INFO [alembic.runtime.migration] Running upgrade 8b70aa3d0f87, a33a03f16c4a -> 18dc26817ad2, empty message
INFO [alembic.runtime.migration] Running upgrade 18dc26817ad2 -> c617da68de7d, form nullable
INFO [alembic.runtime.migration] Running upgrade c617da68de7d -> c82ee8a39623, Add implicit tags
INFO [alembic.runtime.migration] Running upgrade 18dc26817ad2 -> e553e78e90c5, add_druid_auth_py.py
INFO [alembic.runtime.migration] Running upgrade e553e78e90c5, c82ee8a39623 -> 45e7da7cfeba, empty message
INFO [alembic.runtime.migration] Running upgrade 45e7da7cfeba -> 80aa3f04bc82, Add Parent ids in dashboard layout metadata
INFO [alembic.runtime.migration] Running upgrade 80aa3f04bc82 -> d94d33dbe938, form strip
INFO [alembic.runtime.migration] Running upgrade d94d33dbe938 -> 937d04c16b64, update datasources
INFO [alembic.runtime.migration] Running upgrade 937d04c16b64 -> 7f2635b51f5d, update base columns
INFO [alembic.runtime.migration] Running upgrade 7f2635b51f5d -> e9df189e5c7e, update base metrics
INFO [alembic.runtime.migration] Running upgrade e9df189e5c7e -> afc69274c25a, update the sql, select_sql, and executed_sql columns in the
query table in mysql dbs to be long text columns
INFO [alembic.runtime.migration] Running upgrade afc69274c25a -> d7c1a0d6f2da, Remove limit used from query model
INFO [alembic.runtime.migration] Running upgrade d7c1a0d6f2da -> ab8c66efdd01, resample
INFO [alembic.runtime.migration] Running upgrade ab8c66efdd01 -> b4a38aa87893, deprecate database expression
INFO [alembic.runtime.migration] Running upgrade b4a38aa87893 -> d6ffdf31bdd4, Add published column to dashboards
INFO [alembic.runtime.migration] Running upgrade d6ffdf31bdd4 -> 190188938582, Remove duplicated entries in dashboard_slices table and add unique constraint
INFO [alembic.runtime.migration] Running upgrade 190188938582 -> def97f26fdfb, Add index to tagged_object
INFO [alembic.runtime.migration] Running upgrade def97f26fdfb -> 11c737c17cc6, deprecate_restricted_metrics
INFO [alembic.runtime.migration] Running upgrade 11c737c17cc6 -> 258b5280a45e, form strip leading and trailing whitespace
INFO [alembic.runtime.migration] Running upgrade 258b5280a45e -> 1495eb914ad3, time range
INFO [alembic.runtime.migration] Running upgrade 1495eb914ad3 -> b6fa807eac07, make_names_non_nullable
INFO [alembic.runtime.migration] Running upgrade b6fa807eac07 -> cca2f5d568c8, add encrypted_extra to dbs
INFO [alembic.runtime.migration] Running upgrade cca2f5d568c8 -> c2acd2cf3df2, alter type of dbs encrypted_extra
INFO [alembic.runtime.migration] Running upgrade c2acd2cf3df2 -> 78ee127d0d1d, reconvert legacy filters into adhoc
INFO [alembic.runtime.migration] Running upgrade 78ee127d0d1d -> db4b49eb0782, Add tables for SQL Lab state
INFO [alembic.runtime.migration] Running upgrade db4b49eb0782 -> 5afa9079866a, serialize_schema_permissions.py
INFO [alembic.runtime.migration] Running upgrade 5afa9079866a -> 89115a40e8ea, Change table schema description to long text
INFO [alembic.runtime.migration] Running upgrade 89115a40e8ea -> 817e1c9b09d0, add_not_null_to_dbs_sqlalchemy_url
INFO [alembic.runtime.migration] Running upgrade 817e1c9b09d0 -> e96dbf2cfef0, datasource_cluster_fk
INFO [alembic.runtime.migration] Running upgrade e96dbf2cfef0 -> 3325d4caccc8, empty message
INFO [alembic.runtime.migration] Running upgrade 3325d4caccc8 -> 0a6f12f60c73, add_role_level_security
INFO [alembic.runtime.migration] Running upgrade 0a6f12f60c73 -> 72428d1ea401, Add tmp_schema_name to the query object.
INFO [alembic.runtime.migration] Running upgrade 72428d1ea401 -> b5998378c225, add certificate to dbs
INFO [alembic.runtime.migration] Running upgrade b5998378c225 -> f9a30386bd74, cleanup_time_grainularity
INFO [alembic.runtime.migration] Running upgrade f9a30386bd74 -> 620241d1153f, update time_grain_sqla
INFO [alembic.runtime.migration] Running upgrade 620241d1153f -> 743a117f0d98, Add slack to the schedule
INFO [alembic.runtime.migration] Running upgrade 743a117f0d98 -> e557699a813e, add_tables_relation_to_row_level_security
INFO [alembic.runtime.migration] Running upgrade e557699a813e -> ea396d202291, Add ctas_method to the Query object
INFO [alembic.runtime.migration] Running upgrade ea396d202291 -> a72cb0ebeb22, deprecate dbs.perm column
INFO [alembic.runtime.migration] Running upgrade a72cb0ebeb22 -> 2f1d15e8a6af, add_alerts
INFO [alembic.runtime.migration] Running upgrade 2f1d15e8a6af -> f2672aa8350a, add_slack_to_alerts
INFO [alembic.runtime.migration] Running upgrade f2672aa8350a -> f120347acb39, Add extra column to tables and metrics
INFO [alembic.runtime.migration] Running upgrade f2672aa8350a -> 978245563a02, Migrate iframe in dashboard to markdown component
INFO [alembic.runtime.migration] Running upgrade 978245563a02, f120347acb39 -> f80a3b88324b, empty message
INFO [alembic.runtime.migration] Running upgrade f80a3b88324b -> 2e5a0ee25ed4, refractor_alerting
INFO [alembic.runtime.migration] Running upgrade f80a3b88324b -> 175ea3592453, Add cache to datasource lookup table.
INFO [alembic.runtime.migration] Running upgrade 175ea3592453, 2e5a0ee25ed4 -> ae19b4ee3692, empty message
INFO [alembic.runtime.migration] Running upgrade ae19b4ee3692 -> e5ef6828ac4e, add rls filter type and grouping key
INFO [alembic.runtime.migration] Running upgrade e5ef6828ac4e -> 3fbbc6e8d654, fix data access permissions for virtual datasets
INFO [alembic.runtime.migration] Running upgrade 3fbbc6e8d654 -> 18532d70ab98, Delete table_name unique constraint in mysql
INFO [alembic.runtime.migration] Running upgrade 18532d70ab98 -> b56500de1855, add_uuid_column_to_import_mixin
Cleaning up slice uuid from dashboard position json.. Done.
INFO [alembic.runtime.migration] Running upgrade b56500de1855 -> af30ca79208f, Collapse alerting models into a single one
INFO [alembic.runtime.migration] Running upgrade af30ca79208f -> 585b0b1a7b18, add exec info to saved queries
INFO [alembic.runtime.migration] Running upgrade 585b0b1a7b18 -> 96e99fb176a0, add_import_mixing_to_saved_query
INFO [alembic.runtime.migration] Running upgrade 96e99fb176a0 -> 49b5a32daba5, add report schedules
INFO [alembic.runtime.migration] Running upgrade 49b5a32daba5 -> a8173232b786, Add path to logs
INFO [alembic.runtime.migration] Running upgrade a8173232b786 -> e38177dbf641, security converge saved queries
INFO [alembic.runtime.migration] Running upgrade e38177dbf641 -> 8ee129739cf9, security converge css templates
INFO [alembic.runtime.migration] Running upgrade 8ee129739cf9 -> 811494c0cc23, Remove path, path_no_int, and ref from logs
INFO [alembic.runtime.migration] Running upgrade 811494c0cc23 -> 5daced1f0e76, reports add working_timeout column
INFO [alembic.runtime.migration] Running upgrade 5daced1f0e76 -> 40f16acf1ba7, security converge reports
INFO [alembic.runtime.migration] Running upgrade 40f16acf1ba7 -> ccb74baaa89b, security converge charts
INFO [alembic.runtime.migration] Running upgrade ccb74baaa89b -> c25cb2c78727, security converge annotations
INFO [alembic.runtime.migration] Running upgrade c25cb2c78727 -> 45731db65d9c, security converge datasets
INFO [alembic.runtime.migration] Running upgrade 45731db65d9c -> 4b84f97828aa, security converge logs
INFO [alembic.runtime.migration] Running upgrade 4b84f97828aa -> 1f6dca87d1a2, security converge dashboards
INFO [alembic.runtime.migration] Running upgrade 1f6dca87d1a2 -> 42b4c9e01447, security converge databases
INFO [alembic.runtime.migration] Running upgrade 42b4c9e01447 -> e37912a26567, security converge queries
INFO [alembic.runtime.migration] Running upgrade e37912a26567 -> ab104a954a8f, reports alter crontab size
INFO [alembic.runtime.migration] Running upgrade ab104a954a8f -> 73fd22e742ab, add_dynamic_plugins.py
INFO [alembic.runtime.migration] Running upgrade 73fd22e742ab -> c878781977c6, alert reports shared uniqueness
INFO [alembic.runtime.migration] Running upgrade c878781977c6 -> 260bf0649a77, migrate [x dateunit] to [x dateunit ago/later]
INFO [alembic.runtime.migration] Running upgrade 260bf0649a77 -> e11ccdd12658, add roles relationship to dashboard
INFO [alembic.runtime.migration] Running upgrade e11ccdd12658 -> 41ce8799acc3, rename pie label type
Updated 0 pie chart labels.
INFO [alembic.runtime.migration] Running upgrade 41ce8799acc3 -> 070c043f2fdb, add granularity to charts where missing
0 slices altered
INFO [alembic.runtime.migration] Running upgrade 070c043f2fdb -> c501b7c653a3, add missing uuid column
Cleaning up slice uuid from dashboard position json.. Done.
INFO [alembic.runtime.migration] Running upgrade c501b7c653a3 -> 1412ec1e5a7b, legacy force directed to echart
INFO [alembic.runtime.migration] Running upgrade 1412ec1e5a7b -> 67da9ef1ef9c, add hide_left_bar to tabstate
INFO [alembic.runtime.migration] Running upgrade 67da9ef1ef9c -> 989bbe479899, rename_filter_configuration_in_dashboard_metadata.py
Updated 0 native filter configurations.
INFO [alembic.runtime.migration] Running upgrade 989bbe479899 -> 301362411006, add_execution_id_to_report_execution_log_model.py
INFO [alembic.runtime.migration] Running upgrade 301362411006 -> 134cea61c5e7, remove dataset health check message
INFO [alembic.runtime.migration] Running upgrade 134cea61c5e7 -> 085f06488938, Country map use lowercase country name
INFO [alembic.runtime.migration] Running upgrade 085f06488938 -> fc3a3a8ff221, migrate filter sets to new format
Updated 0 filter sets with 0 filters.
INFO [alembic.runtime.migration] Running upgrade fc3a3a8ff221 -> 19e978e1b9c3, add_report_format_to_report_schedule_model.py
INFO [alembic.runtime.migration] Running upgrade 19e978e1b9c3 -> d416d0d715cc, add_limiting_factor_column_to_query_model.py
INFO [alembic.runtime.migration] Running upgrade d416d0d715cc -> f1410ed7ec95, migrate native filters to new schema
Upgraded 0 filters and 0 filter sets.
INFO [alembic.runtime.migration] Running upgrade f1410ed7ec95 -> 453530256cea, add_save_form_column_to_db_model
INFO [alembic.runtime.migration] Running upgrade 453530256cea -> 3317e9248280, add_creation_method_to_reports_model
INFO [alembic.runtime.migration] Running upgrade 3317e9248280 -> 030c840e3a1c, Add query context to slices
INFO [alembic.runtime.migration] Running upgrade 030c840e3a1c -> ae1ed299413b, add_timezone_to_report_schedule
INFO [alembic.runtime.migration] Running upgrade ae1ed299413b -> 31b2a1039d4a, drop tables constraint
INFO [alembic.runtime.migration] Running upgrade 31b2a1039d4a -> e323605f370a, fix schemas_allowed_for_csv_upload
INFO [alembic.runtime.migration] Running upgrade e323605f370a -> 143b6f2815da, migrate pivot table v2 heatmaps to new format
Upgraded 0 slices.
INFO [alembic.runtime.migration] Running upgrade 143b6f2815da -> f6196627326f, update chart permissions
INFO [alembic.runtime.migration] Running upgrade f6196627326f -> 6d20ba9ecb33, add_last_saved_at_to_slice_model
INFO [alembic.runtime.migration] Running upgrade 6d20ba9ecb33 -> 07071313dd52, change_fetch_values_predicate_to_text
INFO [alembic.runtime.migration] Running upgrade 07071313dd52 -> 021b81fe4fbb, Add type to native filter configuration
INFO [alembic] [AddTypeToNativeFilter] Starting upgrade
INFO [alembic] [AddTypeToNativeFilter] Done!
INFO [alembic.runtime.migration] Running upgrade 021b81fe4fbb -> 181091c0ef16, add_extra_column_to_columns_model
INFO [alembic.runtime.migration] Running upgrade 181091c0ef16 -> 3ebe0993c770, add filter set model
INFO [alembic.runtime.migration] Running upgrade 3ebe0993c770 -> 60dc453f4e2e, migrate timeseries_limit_metric to legacy_order_by in pivot_table_v2
INFO [alembic.runtime.migration] Running upgrade 60dc453f4e2e -> 32646df09c64, update time grain SQLA
INFO [alembic.runtime.migration] Running upgrade 32646df09c64 -> b92d69a6643c, rename_csv_to_file
INFO [alembic.runtime.migration] Running upgrade b92d69a6643c -> 0ca9e5f1dacd, rename to schemas_allowed_for_file_upload in dbs.extra
INFO [alembic.runtime.migration] Running upgrade 0ca9e5f1dacd -> f9847149153d, add_certifications_columns_to_slice
INFO [alembic.runtime.migration] Running upgrade f9847149153d -> aea15018d53b, add_certifications_columns_to_dashboard
INFO [alembic.runtime.migration] Running upgrade aea15018d53b -> abe27eaf93db, add_extra_config_column_to_alerts
INFO [alembic.runtime.migration] Running upgrade abe27eaf93db -> 3ba29ecbaac5, Change datatype of type in BaseColumn
INFO [alembic.runtime.migration] Running upgrade 3ba29ecbaac5 -> fe23025b9441, rename_big_viz_total_form_data_fields
INFO [alembic.runtime.migration] Running upgrade fe23025b9441 -> 31bb738bd1d2, move_pivot_table_v2_legacy_order_by_to_timeseries_limit_metric
INFO [alembic.runtime.migration] Running upgrade 31bb738bd1d2 -> bb38f40aa3ff, Add force_screenshot to alerts/reports
INFO [alembic.runtime.migration] Running upgrade bb38f40aa3ff -> c53bae8f08dd, add_saved_query_foreign_key_to_tab_state
Revision ID: c53bae8f08dd
Revises: bb38f40aa3ff
Create Date: 2021-12-15 15:05:21.845777
INFO [alembic.runtime.migration] Running upgrade c53bae8f08dd -> 5fd49410a97a, Add columns for external management
INFO [alembic.runtime.migration] Running upgrade 5fd49410a97a -> 5afbb1a5849b, add_embedded_dahshoard_table
INFO [alembic.runtime.migration] Running upgrade 5afbb1a5849b -> b8d3a24d9131, New dataset models
INFO [alembic.runtime.migration] Running upgrade b8d3a24d9131 -> b5a422d8e252, fix query and saved_query null schema
INFO [alembic.runtime.migration] Running upgrade b5a422d8e252 -> ab9a9d86e695, deprecate time_range_endpoints
INFO [alembic.runtime.migration] Running upgrade ab9a9d86e695 -> 7293b0ca7944, change_adhoc_filter_b_from_none_to_empty_array
[superset_user@Bigdatasmallteam ~]$
[superset_user@Bigdatasmallteam ~]$ docker exec -it superset superset load_examples
--------------------------------------------------------------------------------
WARNING
--------------------------------------------------------------------------------
A Default SECRET_KEY was detected, please use superset_config.py to override it.
Use a strong complex alphanumeric string and use a tool to help you generate
a sufficiently random sequence, ex: openssl rand -base64 42
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
logging was configured successfully
2022-03-16 03:50:59,660:INFO:superset.utils.logging_configurator:logging was configured successfully
2022-03-16 03:50:59,668:INFO:root:Configured event logger of type
/usr/local/lib/python3.8/site-packages/flask_caching/__init__.py:201: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
warnings.warn(
Creating database reference for examples
2022-03-16 03:51:01,717:INFO:superset.utils.database:Creating database reference for examples
Loading examples metadata and related data into examples
Creating default CSS templates
Loading [World Bank's Health Nutrition and Population Stats]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/urllib/request.py", line 1354, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/local/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/local/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/local/lib/python3.8/http/client.py", line 1425, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/usr/local/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/local/lib/python3.8/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/local/lib/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/superset", line 33, in
sys.exit(load_entry_point('apache-superset', 'console_scripts', 'superset')())
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/flask/cli.py", line 586, in main
return super(FlaskGroup, self).main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/flask/cli.py", line 426, in decorator
return __ctx.invoke(f, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/app/superset/cli/examples.py", line 108, in load_examples
load_examples_run(load_test_data, load_big_data, only_metadata, force)
File "/app/superset/cli/examples.py", line 49, in load_examples_run
examples.load_world_bank_health_n_pop(only_metadata, force)
File "/app/superset/examples/world_bank.py", line 56, in load_world_bank_health_n_pop
data = get_example_data("countries.json.gz")
File "/app/superset/examples/helpers.py", line 72, in get_example_data
content = request.urlopen( # pylint: disable=consider-using-with
File "/usr/local/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/local/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.8/urllib/request.py", line 1397, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/local/lib/python3.8/urllib/request.py", line 1357, in do_open
raise URLError(err)
urllib.error.URLError:
[superset_user@Bigdatasmallteam ~]$
[superset_user@Bigdatasmallteam ~]$ docker exec -it superset superset init
--------------------------------------------------------------------------------
WARNING
--------------------------------------------------------------------------------
A Default SECRET_KEY was detected, please use superset_config.py to override it.
Use a strong complex alphanumeric string and use a tool to help you generate
a sufficiently random sequence, ex: openssl rand -base64 42
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
logging was configured successfully
2022-03-16 03:52:19,226:INFO:superset.utils.logging_configurator:logging was configured successfully
2022-03-16 03:52:19,236:INFO:root:Configured event logger of type
/usr/local/lib/python3.8/site-packages/flask_caching/__init__.py:201: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
warnings.warn(
Syncing role definition
2022-03-16 03:52:27,038:INFO:superset.security.manager:Syncing role definition
Syncing Admin perms
2022-03-16 03:52:27,113:INFO:superset.security.manager:Syncing Admin perms
Syncing Alpha perms
2022-03-16 03:52:27,196:INFO:superset.security.manager:Syncing Alpha perms
Syncing Gamma perms
2022-03-16 03:52:27,507:INFO:superset.security.manager:Syncing Gamma perms
Syncing granter perms
2022-03-16 03:52:27,821:INFO:superset.security.manager:Syncing granter perms
Syncing sql_lab perms
2022-03-16 03:52:28,084:INFO:superset.security.manager:Syncing sql_lab perms
Fetching a set of all perms to lookup which ones are missing
2022-03-16 03:52:28,379:INFO:superset.security.manager:Fetching a set of all perms to lookup which ones are missing
Creating missing datasource permissions.
2022-03-16 03:52:28,454:INFO:superset.security.manager:Creating missing datasource permissions.
Creating missing database permissions.
2022-03-16 03:52:28,460:INFO:superset.security.manager:Creating missing database permissions.
Cleaning faulty perms
2022-03-16 03:52:28,464:INFO:superset.security.manager:Cleaning faulty perms
[superset_user@Bigdatasmallteam ~]$
Step 12: open the browser
http://server_ip: 8080
Default User/password: admin/admin for login
--------------------大数据小团队--------------------
蒙昭良:《Oracle DBA高效入门指南》作者
2013-2019: 摩根大通 – 美国哥伦布
2021-目前 : 普华永道 – 北京
大数据小团队论坛
蒙昭良1021×1189 148 KB
--------------------大数据小团队--------------------