[ 
https://issues.apache.org/jira/browse/AMBARI-22516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16270568#comment-16270568
 ] 

Ronald van de Kuil commented on AMBARI-22516:
---------------------------------------------

Hello Attila,

Thank you for your patch. I ran the build and it does not complete. 

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check 
(default) on project ambari: Too many files with unapproved license: 1 See RAT 
report in: /root/ambari/target/rat.txt -> [Help 1]

Which says:

Unapproved licenses:

  12899499_AMBARI-22516.branch-2.6.patch

This is what I did:

  513  git clone -b release-2.6.0 https://github.com/apache/ambari.git
  514  cd ambari/
  515  wget 
https://issues.apache.org/jira/secure/attachment/12899499/12899499_AMBARI-22516.branch-2.6.patch
  516  git apply --stat 12899499_AMBARI-22516.branch-2.6.patch
  517  git apply --check 12899499_AMBARI-22516.branch-2.6.patch
  518  git apply 12899499_AMBARI-22516.branch-2.6.patch
  519  mvn versions:set -DnewVersion=2.6.0.0.0
  520  mvn clean
  521  mvn versions:set -DnewVersion=2.6.0.0.0
  522  pushd ambari-metrics
  523  mvn versions:set -DnewVersion=2.6.0.0.0
  524  popd
  525  mvn -B clean install package rpm:rpm -DnewVersion=2.6.0.0.0 -DskipTests 
-Dpython.ver="python >= 2.7"



> Ambari 2.6 build has python 2.6 dependency
> ------------------------------------------
>
>                 Key: AMBARI-22516
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22516
>             Project: Ambari
>          Issue Type: Improvement
>         Environment: RHEL 7.4
>            Reporter: Ronald van de Kuil
>            Priority: Critical
>         Attachments: AMBARI-22516.branch-2.6.patch
>
>
> The installation guide for Ambari 2.6 instructs us to build the RHEL rpm 
> using:
> mvn -B clean install package rpm:rpm -DnewVersion=2.6.0.0.0 -DskipTests 
> -Dpython.ver="python >= 2.6"
> I just tried this on RHEL 7 (which is not listed in the instructions) and 
> then the build fails:
> /usr/lib/rpm/brp-python-bytecompile: line 44: /usr/bin/python2.6: No such 
> file or directory
> I read that downgrading RHEL 7 to use python 2.6 is not a good idea because 
> allegedly several OS scripts depend on it.
> I saw a different JIRA issue that gave some suggestions to overwrite the 
> required version using commandline options.
> Should ambari be able to run on the version 7 of the OS at this moment? .And 
> if so, should it work fine with the 2.7 version of python?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to