ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Reix (JIRA)" <>
Subject [jira] [Commented] (AMBARI-7275) Issue while porting Ambari on PPC64: x86_64 code is downloaded and run
Date Thu, 18 Sep 2014 13:46:34 GMT


Tony Reix commented on AMBARI-7275:

About building Ambari packages, we have noticed that, though on a PPC64 machine (using our
workaround), "mvn package" puts x86_64 code into the RPM. Thus, that does not work...
" find -name "*.java" | xargs grep x86_64  " shows that x86_64 is hardcoded in Java code:

So, there is something there to be changed, in order to handle all architectures.

> Issue while porting Ambari on PPC64: x86_64 code is downloaded and run
> ----------------------------------------------------------------------
>                 Key: AMBARI-7275
>                 URL:
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 1.6.1
>         Environment: RHEL 7 / PPC64
>            Reporter: Tony Reix
> Hi,
> I've started porting Ambari 1.6.1(.1) on different environments (IBM PPC64, IBM JVM)
and I have several issues.
> One of them is, on RHEL 7 / PPC64, that Maven downloads x86_64 nodejs code (node v0.10.26
and npm 1.4.3) and tries to run it, though I already have nodejs available on my machine (/opt/node/bin/node
, version v0.10.29).
> Changing pom.xml files to  version v0.10.29 for node did not fix the issue.
> Following: , I
did :
> mvn -B clean install package rpm:rpm -DnewVersion=${AMBARI_VERSION} -DskipTests -Dpython.ver="python
> 2.6" -Preplaceurl
> Traces are:
> ....
> [INFO] Installing node version v0.10.26
> [INFO] Creating temporary ....
> [INFO] Downloading Node.js from
to ....}
> [INFO] Extracting Node.js files in node_tmp
> [INFO] Unpacking ... into /..../node_tmp
> [INFO] Moving node binary to .../ambari/ambari-admin/src/main/resources/ui/admin-web/node/node
> [INFO] Deleting temporary directory ...
> [INFO] Installed node locally.
> [INFO] Running 'npm install --unsafe-perm --color=false' in ...
> [INFO] /home/reixt/AMBARI/FromAmbariGitHub/ambari/ambari-admin/src/main/resources/ui/admin-web/node/
ligne3: /home/reixt/AMBARI/FromAmbariGitHub/ambari/ambari-admin/src/main/resources/ui/admin-web/node/node
: impossible to run binary file
> $ file /home/reixt/AMBARI/FromAmbariGitHub/ambari/ambari-admin/src/main/resources/ui/admin-web/node/node
> .../node: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses
shared libs), for GNU/Linux 2.6.9, not stripped
> This MVN/Ambari mechanism needs to be changed so that:
>  - it does not download nodejs (node, npm) code if node/npm commands are already available
(with compatible versions) on my machine
>  - it uses compatible versions (as an example: use 0.10.29 if available on the machine
already and version > 0.10.26 is required)
>  - it downloads node.js code for my machine architecture (arch awareness) if it is not
available on the machine where I want to build Ambari.
> For now, I found no work-around for this issue.

This message was sent by Atlassian JIRA

View raw message