[
https://issues.apache.org/jira/browse/AMBARI-25528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17150767#comment-17150767
]
Masahiro Tanaka edited comment on AMBARI-25528 at 7/3/20, 6:39 AM:
-------------------------------------------------------------------
When we compile ambari like {{mvn clean package -DskipTests -Drat.skip}}, it
kicks
[azuredb_create_generator.sh|https://github.com/apache/ambari/blob/branch-2.7/ambari-server/pom.xml#L774].
Then it runs
[azuredb_create_generator.py|https://github.com/apache/ambari/blob/branch-2.7/ambari-server/src/main/python/azuredb_create_generator.py#L1]
which has {{#!/usr/bin/env python}} shebang.
It might be replaced with {{#!/usr/bin/env python2}} as [Python community
encourages to have python2 command|https://www.python.org/dev/peps/pep-0394/].
As far as I confirmed, AmazonLinux2, Ubuntu18.04, CentOS7 have {{python2}}
command.
was (Author: masatana):
When we compile ambari like {{mvn clean package -DskipTests -Drat.skip}}, it
kicks
[azuredb_create_generator.sh|https://github.com/apache/ambari/blob/branch-2.7/ambari-server/pom.xml#L774].
Then it runs
[azuredb_create_generator.py|https://github.com/apache/ambari/blob/branch-2.7/ambari-server/src/main/python/azuredb_create_generator.py#L1]
which has {{#!/usr/bin/env python}} shebang.
It might be replaced with {{#!/usr/bin/env python2}} as [Python community
encourages to have python2 command|https://www.python.org/dev/peps/pep-0394/].
As far as I confirmed, AmazonLinux2, Ubuntu18.04, CentOS7 have {{pythno2}}
command.
> Unable to build Ambari Server on RHEL8 due to lack of python command
> --------------------------------------------------------------------
>
> Key: AMBARI-25528
> URL: https://issues.apache.org/jira/browse/AMBARI-25528
> Project: Ambari
> Issue Type: Improvement
> Components: ambari-server
> Affects Versions: 2.6.1, 2.7.6
> Environment: CentOS8/RHEL8
> Reporter: Masahiro Tanaka
> Priority: Major
>
> When buildingĀ ambari-server on RHEL8/CentOS8, I got an error like below:
> {code}
> [INFO] --- exec-maven-plugin:1.2.1:exec (azuredb-gen) @ ambari-server ---
> /usr/bin/env: 'python': No such file or directory
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Ambari Main 2.6.1.0.0 .............................. SUCCESS [ 1.548
> s]
> [INFO] Apache Ambari Project POM .......................... SUCCESS [ 0.008
> s]
> [INFO] Ambari Web ......................................... SUCCESS [ 34.585
> s]
> [INFO] Ambari Views ....................................... SUCCESS [ 1.296
> s]
> [INFO] Ambari Admin View .................................. SUCCESS [ 54.170
> s]
> [INFO] utility 1.0.0.0-SNAPSHOT ........................... SUCCESS [ 0.245
> s]
> [INFO] ambari-metrics ..................................... SUCCESS [ 0.264
> s]
> [INFO] Ambari Metrics Common .............................. SUCCESS [ 3.927
> s]
> [INFO] Ambari Metrics Hadoop Sink ......................... SUCCESS [ 2.345
> s]
> [INFO] Ambari Metrics Flume Sink .......................... SUCCESS [ 1.508
> s]
> [INFO] Ambari Metrics Kafka Sink .......................... SUCCESS [ 1.568
> s]
> [INFO] Ambari Metrics Storm Sink .......................... SUCCESS [ 2.129
> s]
> [INFO] Ambari Metrics Storm Sink (Legacy) ................. SUCCESS [ 1.918
> s]
> [INFO] Ambari Metrics Collector ........................... SUCCESS [ 23.907
> s]
> [INFO] Ambari Metrics Monitor ............................. SUCCESS [ 1.315
> s]
> [INFO] Ambari Metrics Grafana 2.1.0.0.0 ................... SUCCESS [ 5.045
> s]
> [INFO] Ambari Metrics Assembly ............................ SUCCESS [01:14
> min]
> [INFO] Ambari Server ...................................... FAILURE [ 3.976
> s]
> [INFO] Ambari Functional Tests ............................ SKIPPED
> {code}
> I guess the root cause is RHEL8/CentOS8 drops python command but python2.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)