clemlabprojects / ambari

Fork of Apache Ambari maintained by Clemlab Company
https://www.clemlab.com
Apache License 2.0
39 stars 15 forks source link

【bug】No permission to download hdp-utils installation package #63

Open zyclove opened 4 months ago

zyclove commented 4 months ago

hi, no permission to download hdp-utils installation package.

https://www.clemlab.com/docs/1.2.2.0/getting-ready/setup-local-repository/setting-up-offline-repository https://clemlabs.s3.eu-west-3.amazonaws.com/centos8/odp-utils/1.2.2.0-105/repos-utils.tar.gz

image

zyclove commented 4 months ago

https://clemlabs.s3.eu-west-3.amazonaws.com/centos8/odp-utils/1.2.2.0/repos-utils.tar.gz

This is ok .

lucasbak commented 4 months ago

Hi @zyclove

https://clemlabs.s3.eu-west-3.amazonaws.com/centos8/odp-release/1.2.2.0-106/repos.tar.gz https://clemlabs.s3.eu-west-3.amazonaws.com/centos8/odp-utils/1.2.2.0/repos-utils.tar.gz

zyclove commented 4 months ago

yum install ambari-server

Last metadata expiration check: 0:32:57 ago on Sun Feb 18 09:50:58 2024. Error: Problem: conflicting requests

[root@ip-10-7-12-214 ~]# cat /etc/os-release 
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
SUPPORT_END="2028-03-15"

[root@ambari-server ~]# python --version
Python 2.7.9

[root@ambari-server ~]# postgres --version
postgres (PostgreSQL) 15.5

what's wrong with 'yum install ambari-server' ? Isn’t Amazon Linux 2023 supported yet? @lucasbak

lucasbak commented 4 months ago

Hi @zyclove

Which Operating system is it ? Which rpms do you use ?

zyclove commented 4 months ago

Amazon Linux 2023

ambari : https://clemlabs.s3.eu-west-3.amazonaws.com/centos8/ambari-release/2.7.9.0.0-26/repos-ambari.tar.gz

lucasbak commented 4 months ago

It's because we have a dependency on postgresql-server >= 8.1 Can you make yum search postgresql-server

zyclove commented 4 months ago

$ yum search postgresql-server Last metadata expiration check: 0:00:38 ago on Sun Feb 18 11:39:53 2024. No matches found. $ yum search postgresql15-server Last metadata expiration check: 0:00:45 ago on Sun Feb 18 11:39:53 2024. ======================================================================== Name Exactly Matched: postgresql15-server ========================================================================= postgresql15-server.x86_64 : The programs needed to create and run a PostgreSQL server ============================================================================ Name Matched: postgresql15-server ============================================================================= postgresql15-server-devel.x86_64 : PostgreSQL development header files and libraries

@lucasbak

lucasbak commented 4 months ago

@zyclove

We dont support Officially Amazon Linux. However as it is deprecated we can remove postgresql-server dependency from Ambari RPM. Give a try to https://clemlabs.s3.eu-west-3.amazonaws.com/centos8/ambari-release/2.7.9.0.0-38/repos-ambari.tar.gz

zyclove commented 4 months ago

hi , Can the pyhon2 version be monitored directly through python --verson instead of rpm -q python2?

企业微信截图_3a2265a6-d3f6-4a30-8f9b-ab3345137e30

Since amazon-linux-2023 no longer supports Python2.

企业微信截图_0798f07c-9f92-42e9-8408-39a7cb48c06f

python2 is installed through source code compilation, not through rpm package; so it will still report that Python2 dependency is not satisfied.

@lucasbak

wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
./configure --enable-optimizations
make altinstall

python --version is 2.7.18
zyclove commented 4 months ago

In addition, is there any version support for python3 now?

zyclove commented 4 months ago

https://github.com/apache/ambari/commits/trunk/ image

hi, could you merge this into your Python3 branch?

zyclove commented 4 months ago

https://github.com/clemlabprojects/ambari/tree/2.7.9.0-python3 Can you provide the version of this branch? Can it be used in production?

@lucasbak

lucasbak commented 4 months ago

Hi @zyclove,

As lot of our clients are still in use of python2, we need to support both in //. We already ported python3 however we need more test coverage as we have a lot more components to migrate. We will keep you up to date as soon as we have packaged ready. We almost done.

Best regards

zyclove commented 4 months ago

hi , Can the pyhon2 version be monitored directly through python --verson instead of rpm -q python2?

企业微信截图_3a2265a6-d3f6-4a30-8f9b-ab3345137e30

Since amazon-linux-2023 no longer supports Python2. 企业微信截图_0798f07c-9f92-42e9-8408-39a7cb48c06f

python2 is installed through source code compilation, not through rpm package; so it will still report that Python2 dependency is not satisfied.

@lucasbak

wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
./configure --enable-optimizations
make altinstall

python --version is 2.7.18

Hi, could you the Python dependency check here support non-rpm package installation of Python2?

zyclove commented 4 months ago

image

Change to Centos 8 , but with the error. (https://clemlabs.s3.eu-west-3.amazonaws.com/centos8/ambari-release/2.7.9.0.0-38/repos-ambari.tar.gz)

zyclove commented 4 months ago

image

@lucasbak

lucasbak commented 4 months ago

@zyclove

We are working hard to deliver you best packaging possible on the most supported system. We will keep you up to date as soon as python3 ambari is ready. We are currently finishing the last tests