How to install Apache Superset on Linux CentOS 7.9

From: 

How to install Apache Superset on Linux CentOS 7.9 - Superset - Big Data Small Team

Linux: Root user updates the user’s password command:

[root@iZ2zehb3zobkh31kn9cuo2Z ~]# whoami
root
[root@iZ2zehb3zobkh31kn9cuo2Z ~]# **passwd superset_user**
Changing password for user superset_user.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@iZ2zehb3zobkh31kn9cuo2Z ~]#
[root@iZ2zehb3zobkh31kn9cuo2Z ~]# su - superset_user
Last login: Mon Jan 24 20:57:02 CST 2022 on pts/2
[superset_user@iZ2zehb3zobkh31kn9cuo2Z ~]$ whoami
superset_user
[superset_user@iZ2zehb3zobkh31kn9cuo2Z ~]$ pwd
/home/superset_user
[superset_user@iZ2zehb3zobkh31kn9cuo2Z ~]$ git clone https://github.com/apache/superset.git
-bash: git: command not found
[superset_user@iZ2zehb3zobkh31kn9cuo2Z ~]$

Step 1: Install git on Linux CentOS

[root@iZ2zehb3zobkh31kn9cuo2Z ~]# whoami
root
[root@iZ2zehb3zobkh31kn9cuo2Z ~]#
[root@iZ2zehb3zobkh31kn9cuo2Z ~]#
[root@iZ2zehb3zobkh31kn9cuo2Z ~]# sudo yum install git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.3.1-23.el7_8 will be installed
--> Processing Dependency: perl-Git = 1.8.3.1-23.el7_8 for package: git-1.8.3.1-23.el7_8.x86_64
--> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.3.1-23.el7_8.x86_64
--> Processing Dependency: perl(Git) for package: git-1.8.3.1-23.el7_8.x86_64
--> Processing Dependency: perl(Error) for package: git-1.8.3.1-23.el7_8.x86_64
--> Running transaction check
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
---> Package perl-Git.noarch 0:1.8.3.1-23.el7_8 will be installed
---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================
 Package                                    Arch                             Version                                      Repository                      Size
===============================================================================================================================================================
Installing:
 git                                        x86_64                           1.8.3.1-23.el7_8                             base                           4.4 M
Installing for dependencies:
 perl-Error                                 noarch                           1:0.17020-2.el7                              base                            32 k
 perl-Git                                   noarch                           1.8.3.1-23.el7_8                             base                            56 k
 perl-TermReadKey                           x86_64                           2.30-20.el7                                  base                            31 k

Transaction Summary
===============================================================================================================================================================
Install  1 Package (+3 Dependent packages)

Total download size: 4.5 M
Installed size: 22 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): perl-Error-0.17020-2.el7.noarch.rpm                                                                                              |  32 kB  00:00:00
(2/4): perl-Git-1.8.3.1-23.el7_8.noarch.rpm                                                                                             |  56 kB  00:00:00
(3/4): perl-TermReadKey-2.30-20.el7.x86_64.rpm                                                                                          |  31 kB  00:00:00
(4/4): git-1.8.3.1-23.el7_8.x86_64.rpm                                                                                                  | 4.4 MB  00:00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                           20 MB/s | 4.5 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:perl-Error-0.17020-2.el7.noarch                                                                                                           1/4
  Installing : perl-TermReadKey-2.30-20.el7.x86_64                                                                                                         2/4
  Installing : perl-Git-1.8.3.1-23.el7_8.noarch                                                                                                            3/4
  Installing : git-1.8.3.1-23.el7_8.x86_64                                                                                                                 4/4
  Verifying  : git-1.8.3.1-23.el7_8.x86_64                                                                                                                 1/4
  Verifying  : 1:perl-Error-0.17020-2.el7.noarch                                                                                                           2/4
  Verifying  : perl-Git-1.8.3.1-23.el7_8.noarch                                                                                                            3/4
  Verifying  : perl-TermReadKey-2.30-20.el7.x86_64                                                                                                         4/4

Installed:
  git.x86_64 0:1.8.3.1-23.el7_8

Dependency Installed:
  perl-Error.noarch 1:0.17020-2.el7                  perl-Git.noarch 0:1.8.3.1-23.el7_8                  perl-TermReadKey.x86_64 0:2.30-20.el7

Complete!
[root@iZ2zehb3zobkh31kn9cuo2Z ~]#

Step 2: Clone Superset’s Github repository

 [superset_user@iZ2zehb3zobkh31kn9cuo2Z ~]$ whoami
 superset_user
[superset_user@iZ2zehb3zobkh31kn9cuo2Z ~]$ pwd
 /home/superset_user
 [superset_user@iZ2zehb3zobkh31kn9cuo2Z ~]$ git clone https://github.com/apache/superset.git

image1117×242 8.79 KB

Step 3: Launch Superset Through Docker Compose

[superset_user@iZ2zehb3zobkh31kn9cuo2Z ~]$ cd superset
[superset_user@iZ2zehb3zobkh31kn9cuo2Z superset]$ docker-compose -f docker-compose-non-dev.yml up
-bash: docker-compose: command not found
[superset_user@iZ2zehb3zobkh31kn9cuo2Z superset]$

Step 4: Download the current stable release of Docker Compose:

[root@iZ2zehb3zobkh31kn9cuo2Z ~]# sudo yum update
[root@iZ2zehb3zobkh31kn9cuo2Z ~]# sudo yum upgrade
[root@iZ2zehb3zobkh31kn9cuo2Z ~]# sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

See this : Install Docker Compose | Docker Documentation

[root@iZ2zehb3zobkh31kn9cuo2Z ~]#
[root@iZ2zehb3zobkh31kn9cuo2Z ~]# sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   664  100   664    0     0    854      0 --:--:-- --:--:-- --:--:--   853
100 12.1M  100 12.1M    0     0  22628      0  0:09:22  0:09:22 --:--:-- 23897
[root@iZ2zehb3zobkh31kn9cuo2Z ~]#
[root@iZ2zehb3zobkh31kn9cuo2Z ~]#
[root@iZ2zehb3zobkh31kn9cuo2Z ~]# sudo chmod +x /usr/local/bin/docker-compose
[root@iZ2zehb3zobkh31kn9cuo2Z ~]# docker-compose --version
docker-compose version 1.29.2, build 5becea4c
[root@iZ2zehb3zobkh31kn9cuo2Z ~]#

Step 5: Launch Superset through Docker Compose Again

[superset_user@iZ2zehb3zobkh31kn9cuo2Z ~]$ cd superset/
[superset_user@iZ2zehb3zobkh31kn9cuo2Z superset]$ pwd
/home/superset_user/superset
[superset_user@iZ2zehb3zobkh31kn9cuo2Z superset]$ whoami
superset_user
[superset_user@iZ2zehb3zobkh31kn9cuo2Z superset]$ docker-compose -f docker-compose-non-dev.yml up
Creating network "superset_default" with the default driver
Creating volume "superset_superset_home" with default driver
Creating volume "superset_db_home" with default driver
Creating volume "superset_redis" with default driver
Pulling redis (redis:latest)...
latest: Pulling from library/redis
a2abf6c4d29d: Pull complete
c7a4e4382001: Pull complete
4044b9ba67c9: Pull complete
c8388a79482f: Pull complete
413c8bb60be2: Pull complete
1abfd3011519: Pull complete
Digest: sha256:db485f2e245b5b3329fdc7eff4eb00f913e09d8feb9ca720788059fdc2ed8339
Status: Downloaded newer image for redis:latest
Pulling db (postgres:10)...
10: Pulling from library/postgres
35b2232c987e: Pull complete
c03727fea36b: Pull complete
40c6d8e16779: Pull complete
c2ef16a628a4: Pull complete
e74a9f29f468: Pull complete
433f4ea81bed: Pull complete
0e16d29f73c0: Pull complete
0dcac015b659: Pull complete
dc2331ea67f6: Pull complete
d52087659281: Pull complete
45c60b42d5d2: Pull complete
58cce4a887b7: Pull complete
b9e11d2c9515: Pull complete
909505ad0b91: Pull complete
Digest: sha256:ac0b1670c906d610741e93a517e6492979b7b0ad2127862c8a574ce265dc8804
Status: Downloaded newer image for postgres:10
Pulling superset (apache/superset:latest-dev)...
latest-dev: Pulling from apache/superset
0e29546d541c: Pull complete
9b829c73b52b: Pull complete
cb5b7ae36172: Pull complete
6494e4811622: Pull complete
6f9f74896dfa: Pull complete
fcb6d5f7c986: Pull complete
35b0d149a82c: Pull complete
700a07047b6b: Pull complete
793b1b0c3ddf: Pull complete
89bb2e26d755: Pull complete
9ad848b8319e: Pull complete
33a87fb76172: Pull complete
7b5c77c0d32b: Pull complete
918dd1291c56: Pull complete
cebb7090f60c: Pull complete
30bfe0ee98cf: Pull complete
9234d1f8b5a2: Downloading [===========================================>       ]  53.61MB/61.83MB
9e89bfdaa3f9: Download complete
9234d1f8b5a2: Downloading [=============================================>     ]  56.84MB/61.83MB
a4b0b8218ca4: Download complete
9234d1f8b5a2: Pull complete
9e89bfdaa3f9: Pull complete
e384991b1489: Pull complete
a4b0b8218ca4: Pull complete
4d0418d93677: Pull complete
d582e940b697: Pull complete
5f21f3b3e948: Pull complete
575794811846: Pull complete
Digest: sha256:4875d3d80ad6d6534d2445f821b6cbc76765dcc53d39a2b35b0b5c2edf753990
Status: Downloaded newer image for apache/superset:latest-dev
Creating superset_cache ... done
Creating superset_db    ... done
Creating superset_worker      ... done
Creating superset_init        ... done
Creating superset_worker_beat ... done
Creating superset_app         ... done
Attaching to superset_cache, superset_db, superset_worker, superset_init, superset_worker_beat, superset_app
superset_app            | Skipping local overrides
superset_app            | Starting web app...
superset_cache          | 1:C 24 Jan 2022 14:20:49.337 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
superset_cache          | 1:C 24 Jan 2022 14:20:49.337 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=1, just started
superset_cache          | 1:C 24 Jan 2022 14:20:49.337 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
superset_cache          | 1:M 24 Jan 2022 14:20:49.337 * monotonic clock: POSIX clock_gettime
superset_cache          | 1:M 24 Jan 2022 14:20:49.338 * Running mode=standalone, port=6379.
superset_cache          | 1:M 24 Jan 2022 14:20:49.338 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
superset_cache          | 1:M 24 Jan 2022 14:20:49.338 # Server initialized
superset_cache          | 1:M 24 Jan 2022 14:20:49.338 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
superset_cache          | 1:M 24 Jan 2022 14:20:49.338 * Ready to accept connections
db_1                    | The files belonging to this database system will be owned by user "postgres".
db_1                    | This user must also own the server process.
db_1                    |
db_1                    | The database cluster will be initialized with locale "en_US.utf8".
db_1                    | The default database encoding has accordingly been set to "UTF8".
db_1                    | The default text search configuration will be set to "english".
db_1                    |
db_1                    | Data page checksums are disabled.
db_1                    |
db_1                    | fixing permissions on existing directory /var/lib/postgresql/data ... ok
db_1                    | creating subdirectories ... ok
db_1                    | selecting default max_connections ... 100
db_1                    | selecting default shared_buffers ... 128MB
db_1                    | selecting default timezone ... Etc/UTC
db_1                    | selecting dynamic shared memory implementation ... posix
db_1                    | creating configuration files ... ok
db_1                    | running bootstrap script ... ok
superset_init           | Skipping local overrides
superset_init           |
superset_init           | ##########################################################
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值