RHEL 8+ yumは、必須の依存関係があるにもかかわらず、依存関係について不平を言います。

RHEL 8+ yumは、必須の依存関係があるにもかかわらず、依存関係について不平を言います。

RHEL 8.4があり、次のrpmをインストールしようとしています。

yum localinstall  ambari-agent-2.6.2.2-1.x86_64.rpm
Failed loading plugin "product-id": No module named 'subscription_manager.productid'
Failed loading plugin "subscription-manager": cannot import name 'injection'
Failed loading plugin "upload-profile": cannot import name 'packageprofilelib'
Last metadata expiration check: 0:22:37 ago on Mon 01 May 2023 03:16:36 PM UTC.
Error:
 Problem: conflicting requests
  - nothing provides rpm-python needed by ambari-agent-2.6.2.2-1.x86_64
  - nothing provides python >= 2.6 needed by ambari-agent-2.6.2.2-1.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

上記では、yum例外yum文句を見ることができます。

  - nothing provides python >= 2.6 needed by ambari-agent-2.6.2.2-1.x86_64

しかし、実際には以下のようにこのサーバーにPython2をインストールしました。

python --version
Python 2.7.18

rpm -qa | grep python2
python2-pip-wheel-9.0.3-19.module+el8.6.0+13001+ad200bd9.noarch
python2-pip-9.0.3-19.module+el8.6.0+13001+ad200bd9.noarch
python2-setuptools-wheel-39.0.1-13.module+el8.4.0+9442+27d0e81c.noarch
python2-setuptools-39.0.1-13.module+el8.4.0+9442+27d0e81c.noarch
python2-2.7.18-11.module+el8.7.0+15681+7a92afba.x86_64
python2-libs-2.7.18-11.module+el8.7.0+15681+7a92afba.x86_64

alternatives --config python

There are 3 programs which provide 'python'.

  Selection    Command
-----------------------------------------------
*  1           /usr/libexec/no-python
   2           /usr/bin/python3
 + 3           /usr/bin/python2

Enter to keep the current selection[+], or type selection number:

私がここで何を見逃しているのでしょうか?

ベストアンサー1

Ambari 2.6.2はrhel8と互換性がありません。問題は、コマンドがyum provides pythonパッケージ/rpmを返さないことです。

python
ambari-agent理論的には、「インストールする必要 があります」というメッセージを提供する模擬rpmを作成してインストールできますが、動作しません

実際のソリューションに基づいてクラスタにノードを追加するには、Ambariをインストールする必要があるとします。

  1. rhel7/centos7のインストールとドライバのトラブルシューティング(例:新しいネットワーク/ HBAカード)
  2. Ambariなしでrhel8のtarから新しいクラスタを作成して移行する
  3. 待って、おそらくAmbari 2.8または2.9はrhel8をサポートします。
  4. rhel8パッチを使用して独自のAmbariを構築する

最も厳しいが最も高く評価されるオプションはオプション4です。これを達成するには、次のものが必要です。Apacheビッグトップ、一部のパッチは以下で提供されます。このリポジトリ、そしてあなたの人生の約5ヶ月。

おすすめ記事