1. 程式人生 > >安裝impala報錯python-setuptools is needed by impala-kudu-shell-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86

安裝impala報錯python-setuptools is needed by impala-kudu-shell-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86

安裝impala的rpm -ivh impala-kudu-shell-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64.rpm報錯

[[email protected] soft]# rpm -ivh impala-kudu-shell-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64.rpm
warning: impala-kudu-shell-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID e8f86acd: NOKEY

error: Failed dependencies:
        python-setuptools is needed by impala-kudu-shell-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64

解決辦法安裝python依賴環境

#執行安裝python
yum install -y python-setuptools

#控制檯輸出資訊

Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.tuna.tsinghua.edu.cn
 * updates: mirrors.huaweicloud.com
base                                                          | 3.6 kB  00:00:00
extras                                                        | 3.4 kB  00:00:00
updates                                                       | 3.4 kB  00:00:00
(1/4): base/7/x86_64/group_gz                                 | 166 kB  00:00:00
(2/4): extras/7/x86_64/primary_db                             | 204 kB  00:00:00
(3/4): base/7/x86_64/primary_db                               | 5.9 MB  00:00:01
(4/4): updates/7/x86_64/primary_db                            | 6.0 MB  00:00:02
Resolving Dependencies
--> Running transaction check
---> Package python-setuptools.noarch 0:0.9.8-7.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-7.el7.noarch
--> Running transaction check
---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be installed
--> Processing Dependency: python-ipaddress for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================
 Package                                 Arch       Version           Repository
                                                                                Size
=====================================================================================
Installing:
 python-setuptools                       noarch     0.9.8-7.el7       base     397 k
Installing for dependencies:
 python-backports                        x86_64     1.0-8.el7         base     5.8 k
 python-backports-ssl_match_hostname     noarch     3.5.0.1-1.el7     base      13 k
 python-ipaddress                        noarch     1.0.16-2.el7      base      34 k

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

Total download size: 450 k
Installed size: 2.2 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/base/packages/python-backports-1.0-8.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for python-backports-1.0-8.el7.x86_64.rpm is not installed
(1/4): python-backports-1.0-8.el7.x86_64.rpm                  | 5.8 kB  00:00:00
(2/4): python-backports-ssl_match_hostname-3.5.0.1-1.el7.noar |  13 kB  00:00:00
(3/4): python-ipaddress-1.0.16-2.el7.noarch.rpm               |  34 kB  00:00:00
(4/4): python-setuptools-0.9.8-7.el7.noarch.rpm               | 397 kB  00:00:00
-------------------------------------------------------------------------------------
Total                                                   980 kB/s | 450 kB  00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <
[email protected]
>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-5.1804.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. ** Found 13 pre-existing rpmdb problem(s), 'yum check' output follows: impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of hadoop impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of hadoop-hdfs impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of hadoop-yarn impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of hadoop-mapreduce impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of hbase impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of hive >= ('0', '0.12.0+cdh5.1.0', None) impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of zookeeper impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of hadoop-libhdfs impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of avro-libs impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of parquet impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of sentry >= ('0', '1.3.0+cdh5.1.0', None) impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of sentry impala-kudu-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64 has missing requires of /lib/lsb/init-functions Installing : python-backports-1.0-8.el7.x86_64 1/4 Installing : python-ipaddress-1.0.16-2.el7.noarch 2/4 Installing : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 3/4 Installing : python-setuptools-0.9.8-7.el7.noarch 4/4 Verifying : python-ipaddress-1.0.16-2.el7.noarch 1/4 Verifying : python-setuptools-0.9.8-7.el7.noarch 2/4 Verifying : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 3/4 Verifying : python-backports-1.0-8.el7.x86_64 4/4 Installed: python-setuptools.noarch 0:0.9.8-7.el7 Dependency Installed: python-backports.x86_64 0:1.0-8.el7 python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 python-ipaddress.noarch 0:1.0.16-2.el7 Complete!

安裝python成功後再次kudu的rpm

rpm -ivh impala-kudu-shell-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64.rpm

控制檯輸出資訊:

warning: impala-kudu-shell-2.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.11.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID e8f86acd: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:impala-kudu-shell-2.7.0+cdh5.9.0+################################# [100%]

沒有任何報錯資訊,說明安裝成功了