Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62C301197E for ; Thu, 18 Sep 2014 13:46:35 +0000 (UTC) Received: (qmail 7898 invoked by uid 500); 18 Sep 2014 13:46:35 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 7862 invoked by uid 500); 18 Sep 2014 13:46:35 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 7849 invoked by uid 99); 18 Sep 2014 13:46:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2014 13:46:34 +0000 Date: Thu, 18 Sep 2014 13:46:34 +0000 (UTC) From: "Tony Reix (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-7275) Issue while porting Ambari on PPC64: x86_64 code is downloaded and run MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-7275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138935#comment-14138935 ] 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: ./ambari-server/src/test/java/org/apache/ambari/server/agent/AgentHostInfoTest.java 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: https://issues.apache.org/jira/browse/AMBARI-7275 > 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: https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development , 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 http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-x64.tar.gz 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/with_new_path.sh: 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 (v6.3.4#6332)