You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Reed Villanueva <rv...@ucera.org> on 2019/11/01 19:46:11 UTC

Re: Issues building ambari v2.7.3 "on project ambari-metrics-storm-sink-legacy"

After waiting for project to build found that problem not fixed.
When using the nexus-hortonworks mirror, it appears that maven is also
looking there for an artifact called "ring-cors" and failing (I assume due
to the fact that I have it configured as a mirrorOf *). Moving the mirror
info to the project pom.xml, I get the same error again:

[ERROR] Failed to execute goal on project ambari-metrics-storm-sink-legacy:
Could not resolve dependencies for project
org.apache.ambari:ambari-metrics-storm-sink-legacy:jar:2.7.3.0.0: Failed to
collect dependencies at
org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Failed to read
artifact descriptor for
org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Could not transfer
artifact org.apache.storm:storm-core:pom:0.10.0.2.3.0.0-2557 from/to
apache-hadoop (
http://nexus-private.hortonworks.com/nexus/content/groups/public): Connect
to nexus-private.hortonworks.com:80 [
nexus-private.hortonworks.com/54.173.242.72] failed: Connection timed out
(Connection timed out) -> [Help 1]

Anyone with more maven experience know how to fix this issue? Anyone else
had this issue building the project?


On Thu, Oct 31, 2019 at 12:38 PM Reed Villanueva <rv...@ucera.org>
wrote:

> Fixed issue.
> My $M2_HOME/conf/setting.xml now looks like...
>
> ....<mirrors>
>     <!-- mirror
>      | Specifies a repository mirror site to use instead of a given repository. The repository that
>      | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
>      | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
>      |
>     <mirror>
>       <id>mirrorId</id>
>       <mirrorOf>repositoryId</mirrorOf>
>       <name>Human Readable Name for this Mirror.</name>
>       <url>http://my.repository.com/repo/path</url>
>     </mirror>
>      -->
>         <mirror>
>                 <id>nexus-hortonworks</id>
>                 <mirrorOf>*,!central</mirrorOf>
>                 <name>Nexus hortonworks</name>
>                 <url>https://repo.hortonworks.com/content/groups/public/</url>
>         </mirror>
>   </mirrors>
> ....
>
>
> On Thu, Oct 31, 2019 at 11:40 AM Reed Villanueva <rv...@ucera.org>
> wrote:
>
>> Problem seems similar to the Taiwanese post here:
>> https://translate.google.com/translate?hl=en&sl=zh-TW&u=https://www.twblogs.net/a/5d5f397bbd9eee541c328e0c&prev=search
>>
>> Not very experienced with maven, so not totally sure how to interpret
>> their steps, but will continue trying to fix and debug.
>>
>> On Thu, Oct 31, 2019 at 11:10 AM Reed Villanueva <rv...@ucera.org>
>> wrote:
>>
>>> Installed latest version of maven:
>>> [root@HW001 apache-ambari-2.7.3-src]# mvn --version
>>> Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117;
>>> 2019-08-27T05:06:16-10:00)
>>> Maven home: /usr/local/src/apache-maven
>>> Java version: 1.8.0_151, vendor: Oracle Corporation, runtime:
>>> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
>>> Default locale: en_US, platform encoding: UTF-8
>>> OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch: "amd64",
>>> family: "unix"
>>>
>>> Still getting errors:
>>> [ERROR] Failed to execute goal on project
>>> ambari-metrics-storm-sink-legacy: Could not resolve dependencies for
>>> project org.apache.ambari:ambari-metrics-storm-sink-legacy:jar:2.7.3.0.0:
>>> Failed to collect dependencies at
>>> org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Failed to read
>>> artifact descriptor for
>>> org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Could not transfer
>>> artifact org.apache.storm:storm-core:pom:0.10.0.2.3.0.0-2557 from/to
>>> apache-hadoop (
>>> http://nexus-private.hortonworks.com/nexus/content/groups/public):
>>> Connect to nexus-private.hortonworks.com:80 [
>>> nexus-private.hortonworks.com/54.173.242.72] failed: Connection timed
>>> out (Connection timed out) -> [Help 1]
>>>
>>> On Thu, Oct 31, 2019 at 10:31 AM Reed Villanueva <rv...@ucera.org>
>>> wrote:
>>>
>>>> UPDATE:
>>>> New error message:
>>>> [ERROR] Failed to execute goal
>>>> com.github.eirslett:frontend-maven-plugin:1.4:install-node-and-yarn
>>>> (install node and yarn) on project ambari-web: The plugin
>>>> com.github.eirslett:frontend-maven-plugin:1.4 requires Maven version 3.1.0
>>>> -> [Help 1]
>>>>
>>>> Prereq. versions:
>>>>
>>>> [root@HW001 ~]# java -version
>>>> openjdk version "1.8.0_151"
>>>> OpenJDK Runtime Environment (build 1.8.0_151-b12)
>>>> OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 Downloads]# g++ --version
>>>> g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
>>>> Copyright (C) 2015 Free Software Foundation, Inc.
>>>> This is free software; see the source for copying conditions.  There is NO
>>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]# mvn -v
>>>> Apache Maven 3.0.5 (Red Hat 3.0.5-17)
>>>> Maven home: /usr/share/maven
>>>> Java version: 1.8.0_151, vendor: Oracle Corporation
>>>> Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
>>>> Default locale: en_US, platform encoding: UTF-8
>>>> OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch: "amd64", family: "unix"
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]# npm --version
>>>> 3.10.10
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]# python --version
>>>> Python 2.7.5
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]# pip --version
>>>> pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]# easy_install --version
>>>> setuptools 0.9.8
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]# yum list installed | grep rpm-build
>>>> rpm-build.x86_64                      4.11.3-40.el7                   @base
>>>> rpm-build-libs.x86_64                 4.11.3-40.el7                   @base
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]# node --version
>>>> v6.17.1
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]#
>>>> [root@HW001 ~]# npm list -g | grep brunch
>>>> ├─┬ brunch@2.10.17
>>>> │ │ ├── brunch-skeletons@0.1.6
>>>> │ ├─┬ serve-brunch@0.2.1
>>>>
>>>>
>>>> Appears need a version of maven beyond what the default centos7 repos
>>>> provide (3.0.5). Will continue working on this to debug.
>>>>
>>>> On Thu, Oct 31, 2019 at 9:56 AM Reed Villanueva <rv...@ucera.org>
>>>> wrote:
>>>>
>>>>> Attempting to build ambari 2.7.3 via docs:
>>>>> https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.3
>>>>> Getting build errors when installing after command:
>>>>> mvn -B clean install rpm:rpm -DnewVersion=2.7.3.0.0 -DbuildNumber=4295bb16c439cbc8fb0e7362f19768dde1477868
>>>>> -DskipTests -Dpython.ver="python >= 2.6"
>>>>>
>>>>> Any ideas what could be going on here or fixes? Some info that may be
>>>>> relevant provided below:
>>>>>
>>>>> [root@HW001 ~]# sha256sum ./Downloads/apache-ambari-2.7.3-src.tar.gz
>>>>> 920c1b2caaba3a6f8b97ee67c557b7b4817d05dda7104d8bb6cbdc68da13c1fe
>>>>>  ./Downloads/apache-ambari-2.7.3-src.tar.gz
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# java -version
>>>>> openjdk version "1.8.0_151"
>>>>> OpenJDK Runtime Environment (build 1.8.0_151-b12)
>>>>> OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# mvn -v
>>>>> Apache Maven 3.0.5 (Red Hat 3.0.5-17)
>>>>> Maven home: /usr/share/maven
>>>>> Java version: 1.8.0_151, vendor: Oracle Corporation
>>>>> Java home:
>>>>> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
>>>>> Default locale: en_US, platform encoding: UTF-8
>>>>> OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch:
>>>>> "amd64", family: "unix"
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# python --version
>>>>> Python 2.7.5
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# pip --version
>>>>> pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
>>>>> [root@HW001 ~]# easy_install --version
>>>>> setuptools 0.9.8
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# yum list installed | grep rpm-build
>>>>> rpm-build.x86_64                      4.11.3-40.el7
>>>>> @base
>>>>> rpm-build-libs.x86_64                 4.11.3-40.el7
>>>>> @base
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# node --version
>>>>> v6.17.1
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# npm list -g | grep brunch
>>>>> ├─┬ brunch@2.10.17
>>>>> │ │ ├── brunch-skeletons@0.1.6
>>>>> │ ├─┬ serve-brunch@0.2.1
>>>>>
>>>>

-- 
This electronic message is intended only for the named 
recipient, and may 
contain information that is confidential or 
privileged. If you are not the 
intended recipient, you are 
hereby notified that any disclosure, copying, 
distribution or 
use of the contents of this message is strictly 
prohibited. If 
you have received this message in error or are not the 
named
recipient, please notify us immediately by contacting the 
sender at 
the electronic mail address noted above, and delete 
and destroy all copies 
of this message. Thank you.

Re: Issues building ambari v2.7.3 "on project ambari-metrics-storm-sink-legacy"

Posted by "Antunes, Fernando De Souza" <fe...@arcelormittal.com.br>.
Maybe these can give some help.
They are my steps to build the 2.7.4

Create a CentOS 7.7 Azure Virtual Machine 16 GB RAM.
# yum install rpm-build
# yum install gcc-c++
# yum install npm
# npm install -g brunch
# yum install git
# yum install python-devel
# wget https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea
# setuptools-0.6c11-py2.7.egg
Apache Maven

# wget http://mirror.nbtelecom.com.br/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz
# tar xzvf apache-maven-3.6.2-bin.tar.gz
# ls /opt
# mv apache-maven-3.6.2 /opt
# export PATH=/opt/apache-maven-3.6.2/bin:$PATH
Ambari
# export _JAVA_OPTIONS="-Xmx8192m -Djava.awt.headless=true"
# wget http://www.apache.org/dist/ambari/ambari-2.7.4/apache-ambari-2.7.4-src.tar.gz
#  tar xfvz apache-ambari-2.7.4-src.tar.gz
#  cd apache-ambari-2.7.4-src
#  mvn versions:set -DnewVersion=2.7.4.0.0
#  pushd ambari-metrics
#  mvn versions:set -DnewVersion=2.7.4.0.0
#  popd
#  mvn -X -e -B clean install rpm:rpm -DnewVersion=2.7.4.0.0 -DbuildNumber=b730f30585dd67c10d3b841317100f17d4b2c5f1 -DskipTests -Dpython.ver="python >= 2.6" -Drat.skip=true
#  ls ambari-server/target/rpm/ambari-server/RPMS/x86_64/ambari-server-2.7.4.0-0.x86_64.rpm
# yum install ambari-server/target/rpm/ambari-server/RPMS/x86_64/ambari-server-2.7.4.0-0.x86_64.rpm

From: Reed Villanueva <rv...@ucera.org>
Date: Monday, 4 November 2019 16:55
To: user@ambari.apache.org <us...@ambari.apache.org>
Subject: Re: Issues building ambari v2.7.3 "on project ambari-metrics-storm-sink-legacy"
**This Message originated from a Non-ArcelorMittal source**
I was not cloning via git (should I be, if so which branch is recommended)? The installation docs I was following did not mention optionally using the git repo fro installation, so I assumed it was not the recommended way (eg. the code from the apache archive or mirror would be the most stable).
I am simply following the installation docs here:  https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.3<https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_confluence_display_AMBARI_Installation-2BGuide-2Bfor-2BAmbari-2B2.7.3&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=jLPCNuIDtv5raIR6SH_GsHz9hVzKsp9sSIL4vCCl-1g&e=>
 And downloading the .tar.gz from: https://archive.apache.org/dist/ambari/ambari-2.7.3/<https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.apache.org_dist_ambari_ambari-2D2.7.3_&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=PBB6gRzJotoBl_45-c5BxaFmy4LkY2Q8URIVtbp4hGs&e=>

On Sun, Nov 3, 2019 at 4:58 PM Akhil Naik <as...@cloudera.com>> wrote:
Hi Reed,

Not Sure which branch you are trying to build.
If it's branch-2.7 there was a Apache JIRA filed : https://issues.apache.org/jira/browse/AMBARI-25348<https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_browse_AMBARI-2D25348&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=U5m-sdy2xKhAfb5MZEFf4a771kDU39qcaZVK13N52P4&e=>
after which the pom.xml was changed https://nexus-private.hortonworks.com/<https://urldefense.proofpoint.com/v2/url?u=http-3A__hortonworks.com_&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=oBBxn_zaYJofPm08LnV8kLkpfmIbW4ujZcCUOimPdGE&e=>nexus/ to https://repo.hortonworks.com/<https://urldefense.proofpoint.com/v2/url?u=http-3A__hortonworks.com_&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=oBBxn_zaYJofPm08LnV8kLkpfmIbW4ujZcCUOimPdGE&e=>

refer to : https://github.com/apache/ambari/pull/3063/files<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_ambari_pull_3063_files&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=A8jpP0osDwzcPlPY7ou5n5_qBEqe_qHmennpChi8vYg&e=>

and change your pom.xml accordingly.



Thanks,
Akhil Subhash Naik
________________________________


On Sat, Nov 2, 2019 at 1:26 AM Reed Villanueva <rv...@ucera.org>> wrote:
After waiting for project to build found that problem not fixed.
When using the nexus-hortonworks mirror, it appears that maven is also looking there for an artifact called "ring-cors" and failing (I assume due to the fact that I have it configured as a mirrorOf *). Moving the mirror info to the project pom.xml, I get the same error again:

[ERROR] Failed to execute goal on project ambari-metrics-storm-sink-legacy: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-storm-sink-legacy:jar:2.7.3.0.0: Failed to collect dependencies at org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Failed to read artifact descriptor for org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Could not transfer artifact org.apache.storm:storm-core:pom:0.10.0.2.3.0.0-2557 from/to apache-hadoop (http://nexus-private.hortonworks.com/nexus/content/groups/public<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus-2Dprivate.hortonworks.com_nexus_content_groups_public&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=sKC2EEnOWDDk_ZzTmECpirwtO_y4We4XZMFx_LvKaWs&e=>): Connect to nexus-private.hortonworks.com:80<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus-2Dprivate.hortonworks.com-3A80&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=2rzSzBmot5jcVq4MbAjn4jvTzCprbvqTTxiPUryi06g&e=> [nexus-private.hortonworks.com/54.173.242.72<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus-2Dprivate.hortonworks.com_54.173.242.72&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=N2G4duluVcd2_dWMBfQaMiIOYDEaDPx5BC9TWFk0VqE&e=>] failed: Connection timed out (Connection timed out) -> [Help 1]

Anyone with more maven experience know how to fix this issue? Anyone else had this issue building the project?


On Thu, Oct 31, 2019 at 12:38 PM Reed Villanueva <rv...@ucera.org>> wrote:
Fixed issue.
My $M2_HOME/conf/setting.xml now looks like...


....

<mirrors>

    <!-- mirror

     | Specifies a repository mirror site to use instead of a given repository. The repository that

     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used

     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.

     |

    <mirror>

      <id>mirrorId</id>

      <mirrorOf>repositoryId</mirrorOf>

      <name>Human Readable Name for this Mirror.</name>

      <url>http://my.repository.com/repo/path<https://urldefense.proofpoint.com/v2/url?u=http-3A__my.repository.com_repo_path&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=Y4qNHmkSq7bXtinYcfFn-Ae4O_B4e_THBBN8rvQpX24&e=></url>

    </mirror>

     -->

        <mirror>

                <id>nexus-hortonworks</id>

                <mirrorOf>*,!central</mirrorOf>

                <name>Nexus hortonworks</name>

                <url>https://repo.hortonworks.com/content/groups/public/<https://urldefense.proofpoint.com/v2/url?u=https-3A__repo.hortonworks.com_content_groups_public_&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=PC9IieuzwNqfC2zQg_rO15x_Kg9jUqbikDVYROpDbtY&e=></url>

        </mirror>

  </mirrors>

....

On Thu, Oct 31, 2019 at 11:40 AM Reed Villanueva <rv...@ucera.org>> wrote:
Problem seems similar to the Taiwanese post here:  https://translate.google.com/translate?hl=en&sl=zh-TW&u=https://www.twblogs.net/a/5d5f397bbd9eee541c328e0c&prev=search<https://urldefense.proofpoint.com/v2/url?u=https-3A__translate.google.com_translate-3Fhl-3Den-26sl-3Dzh-2DTW-26u-3Dhttps-3A__www.twblogs.net_a_5d5f397bbd9eee541c328e0c-26prev-3Dsearch&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=NrzlrPbHI3ch4Pdc51WDemJBXe_u0eR7o5X1r6fg7XQ&e=>

Not very experienced with maven, so not totally sure how to interpret their steps, but will continue trying to fix and debug.

On Thu, Oct 31, 2019 at 11:10 AM Reed Villanueva <rv...@ucera.org>> wrote:
Installed latest version of maven:
[root@HW001 apache-ambari-2.7.3-src]# mvn --version
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T05:06:16-10:00)
Maven home: /usr/local/src/apache-maven
Java version: 1.8.0_151, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch: "amd64", family: "unix"

Still getting errors:
[ERROR] Failed to execute goal on project ambari-metrics-storm-sink-legacy: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-storm-sink-legacy:jar:2.7.3.0.0: Failed to collect dependencies at org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Failed to read artifact descriptor for org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Could not transfer artifact org.apache.storm:storm-core:pom:0.10.0.2.3.0.0-2557 from/to apache-hadoop (http://nexus-private.hortonworks.com/nexus/content/groups/public<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus-2Dprivate.hortonworks.com_nexus_content_groups_public&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=sKC2EEnOWDDk_ZzTmECpirwtO_y4We4XZMFx_LvKaWs&e=>): Connect to nexus-private.hortonworks.com:80<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus-2Dprivate.hortonworks.com-3A80&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=2rzSzBmot5jcVq4MbAjn4jvTzCprbvqTTxiPUryi06g&e=> [nexus-private.hortonworks.com/54.173.242.72<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus-2Dprivate.hortonworks.com_54.173.242.72&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=N2G4duluVcd2_dWMBfQaMiIOYDEaDPx5BC9TWFk0VqE&e=>] failed: Connection timed out (Connection timed out) -> [Help 1]

On Thu, Oct 31, 2019 at 10:31 AM Reed Villanueva <rv...@ucera.org>> wrote:
UPDATE:
New error message:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:install-node-and-yarn (install node and yarn) on project ambari-web: The plugin com.github.eirslett:frontend-maven-plugin:1.4 requires Maven version 3.1.0 -> [Help 1]

Prereq. versions:

[root@HW001 ~]# java -version

openjdk version "1.8.0_151"

OpenJDK Runtime Environment (build 1.8.0_151-b12)

OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 Downloads]# g++ --version

g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)

Copyright (C) 2015 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]# mvn -v

Apache Maven 3.0.5 (Red Hat 3.0.5-17)

Maven home: /usr/share/maven

Java version: 1.8.0_151, vendor: Oracle Corporation

Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre

Default locale: en_US, platform encoding: UTF-8

OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch: "amd64", family: "unix"

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]# npm --version

3.10.10

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]# python --version

Python 2.7.5

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]# pip --version

pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]# easy_install --version

setuptools 0.9.8

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]# yum list installed | grep rpm-build

rpm-build.x86_64                      4.11.3-40.el7                   @base

rpm-build-libs.x86_64                 4.11.3-40.el7                   @base

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]# node --version

v6.17.1

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]#

[root@HW001 ~]# npm list -g | grep brunch

├─┬ brunch@2.10.17

│ │ ├── brunch-skeletons@0.1.6

│ ├─┬ serve-brunch@0.2.1

Appears need a version of maven beyond what the default centos7 repos provide (3.0.5). Will continue working on this to debug.

On Thu, Oct 31, 2019 at 9:56 AM Reed Villanueva <rv...@ucera.org>> wrote:
Attempting to build ambari 2.7.3 via docs: https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.3<https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_confluence_display_AMBARI_Installation-2BGuide-2Bfor-2BAmbari-2B2.7.3&d=DwMFaQ&c=y5LGzd1hT50ruE_IlUH7x8VGgWz9W0tFVWT6rSvPUKA&r=DG-yyggEeDDj0vPKrcPwzAPjq3r7k5xcx-lyRJMIzdUcgrfcgsklQfuqQSHxihJ_&m=5HkDjyCUHPPQxtN5VhOc1Ktxpqd9AQHJxSeWzB2eSv0&s=jLPCNuIDtv5raIR6SH_GsHz9hVzKsp9sSIL4vCCl-1g&e=>
Getting build errors when installing after command:
mvn -B clean install rpm:rpm -DnewVersion=2.7.3.0.0 -DbuildNumber=4295bb16c439cbc8fb0e7362f19768dde1477868 -DskipTests -Dpython.ver="python >= 2.6"

Any ideas what could be going on here or fixes? Some info that may be relevant provided below:

[root@HW001 ~]# sha256sum ./Downloads/apache-ambari-2.7.3-src.tar.gz
920c1b2caaba3a6f8b97ee67c557b7b4817d05dda7104d8bb6cbdc68da13c1fe  ./Downloads/apache-ambari-2.7.3-src.tar.gz
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]# java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]# mvn -v
Apache Maven 3.0.5 (Red Hat 3.0.5-17)
Maven home: /usr/share/maven
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch: "amd64", family: "unix"
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]# python --version
Python 2.7.5
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]# pip --version
pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
[root@HW001 ~]# easy_install --version
setuptools 0.9.8
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]# yum list installed | grep rpm-build
rpm-build.x86_64                      4.11.3-40.el7                   @base
rpm-build-libs.x86_64                 4.11.3-40.el7                   @base
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]# node --version
v6.17.1
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]#
[root@HW001 ~]# npm list -g | grep brunch
├─┬ brunch@2.10.17
│ │ ├── brunch-skeletons@0.1.6
│ ├─┬ serve-brunch@0.2.1

This electronic message is intended only for the named
recipient, and may contain information that is confidential or
privileged. If you are not the intended recipient, you are
hereby notified that any disclosure, copying, distribution or
use of the contents of this message is strictly prohibited. If
you have received this message in error or are not the named
recipient, please notify us immediately by contacting the
sender at the electronic mail address noted above, and delete
and destroy all copies of this message. Thank you.

This electronic message is intended only for the named
recipient, and may contain information that is confidential or
privileged. If you are not the intended recipient, you are
hereby notified that any disclosure, copying, distribution or
use of the contents of this message is strictly prohibited. If
you have received this message in error or are not the named
recipient, please notify us immediately by contacting the
sender at the electronic mail address noted above, and delete
and destroy all copies of this message. Thank you.

AVISO LEGAL

"As informacoes existentes nesta mensagem e nos arquivos anexados tem carater confidencial e sao para uso restrito. A utilizacao, divulgacao, copia ou distribuicao desta mensagem, ou parte dela, por qualquer pessoa diferente do destinatario e proibida, sujeitando o infrator as sancoes legais. Se esta mensagem foi recebida por engano, favor exclui-la e informar ao remetente pelo endereco eletronico acima. Agradecemos sua cooperacao."

DISCLAIMER

"This email and its attachments may contain privileged and/or confidential information. Use, disclosure, copying or distribution of this message, or part thereof, by anyone other than the intended recipient is strictly prohibited, and will submit the infractor to the legal sanctions. If you have received this email in error, please notify the sender by reply email and destroy all copies of this message. Thank you for your cooperation."

Re: Issues building ambari v2.7.3 "on project ambari-metrics-storm-sink-legacy"

Posted by Reed Villanueva <rv...@ucera.org>.
I was not cloning via git (should I be, if so which branch is recommended)?
The installation docs I was following did not mention optionally using the
git repo fro installation, so I assumed it was not the recommended way (eg.
the code from the apache archive or mirror would be the most stable).
I am simply following the installation docs here:
https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.3

 And downloading the .tar.gz from:
https://archive.apache.org/dist/ambari/ambari-2.7.3/

On Sun, Nov 3, 2019 at 4:58 PM Akhil Naik <as...@cloudera.com> wrote:

> Hi Reed,
>
> Not Sure which branch you are trying to build.
> If it's branch-2.7 there was a Apache JIRA filed :
> https://issues.apache.org/jira/browse/AMBARI-25348
> after which the pom.xml was changed https://nexus-private.hortonworks.com/nexus/
> to https://repo.hortonworks.com/
>
> refer to : https://github.com/apache/ambari/pull/3063/files
>
> and change your pom.xml accordingly.
>
>
>
>
> *Thanks,Akhil Subhash Naik*
>
> ------------------------------
>
>
> On Sat, Nov 2, 2019 at 1:26 AM Reed Villanueva <rv...@ucera.org>
> wrote:
>
>> After waiting for project to build found that problem not fixed.
>> When using the nexus-hortonworks mirror, it appears that maven is also
>> looking there for an artifact called "ring-cors" and failing (I assume due
>> to the fact that I have it configured as a mirrorOf *). Moving the mirror
>> info to the project pom.xml, I get the same error again:
>>
>> [ERROR] Failed to execute goal on project
>> ambari-metrics-storm-sink-legacy: Could not resolve dependencies for
>> project org.apache.ambari:ambari-metrics-storm-sink-legacy:jar:2.7.3.0.0:
>> Failed to collect dependencies at
>> org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Failed to read
>> artifact descriptor for
>> org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Could not transfer
>> artifact org.apache.storm:storm-core:pom:0.10.0.2.3.0.0-2557 from/to
>> apache-hadoop (
>> http://nexus-private.hortonworks.com/nexus/content/groups/public):
>> Connect to nexus-private.hortonworks.com:80 [
>> nexus-private.hortonworks.com/54.173.242.72] failed: Connection timed
>> out (Connection timed out) -> [Help 1]
>>
>> Anyone with more maven experience know how to fix this issue? Anyone else
>> had this issue building the project?
>>
>>
>> On Thu, Oct 31, 2019 at 12:38 PM Reed Villanueva <rv...@ucera.org>
>> wrote:
>>
>>> Fixed issue.
>>> My $M2_HOME/conf/setting.xml now looks like...
>>>
>>> ....<mirrors>
>>>     <!-- mirror
>>>      | Specifies a repository mirror site to use instead of a given repository. The repository that
>>>      | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
>>>      | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
>>>      |
>>>     <mirror>
>>>       <id>mirrorId</id>
>>>       <mirrorOf>repositoryId</mirrorOf>
>>>       <name>Human Readable Name for this Mirror.</name>
>>>       <url>http://my.repository.com/repo/path</url>
>>>     </mirror>
>>>      -->
>>>         <mirror>
>>>                 <id>nexus-hortonworks</id>
>>>                 <mirrorOf>*,!central</mirrorOf>
>>>                 <name>Nexus hortonworks</name>
>>>                 <url>https://repo.hortonworks.com/content/groups/public/</url>
>>>         </mirror>
>>>   </mirrors>
>>> ....
>>>
>>>
>>> On Thu, Oct 31, 2019 at 11:40 AM Reed Villanueva <rv...@ucera.org>
>>> wrote:
>>>
>>>> Problem seems similar to the Taiwanese post here:
>>>> https://translate.google.com/translate?hl=en&sl=zh-TW&u=https://www.twblogs.net/a/5d5f397bbd9eee541c328e0c&prev=search
>>>>
>>>> Not very experienced with maven, so not totally sure how to interpret
>>>> their steps, but will continue trying to fix and debug.
>>>>
>>>> On Thu, Oct 31, 2019 at 11:10 AM Reed Villanueva <rv...@ucera.org>
>>>> wrote:
>>>>
>>>>> Installed latest version of maven:
>>>>> [root@HW001 apache-ambari-2.7.3-src]# mvn --version
>>>>> Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117;
>>>>> 2019-08-27T05:06:16-10:00)
>>>>> Maven home: /usr/local/src/apache-maven
>>>>> Java version: 1.8.0_151, vendor: Oracle Corporation, runtime:
>>>>> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
>>>>> Default locale: en_US, platform encoding: UTF-8
>>>>> OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch:
>>>>> "amd64", family: "unix"
>>>>>
>>>>> Still getting errors:
>>>>> [ERROR] Failed to execute goal on project
>>>>> ambari-metrics-storm-sink-legacy: Could not resolve dependencies for
>>>>> project org.apache.ambari:ambari-metrics-storm-sink-legacy:jar:2.7.3.0.0:
>>>>> Failed to collect dependencies at
>>>>> org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Failed to read
>>>>> artifact descriptor for
>>>>> org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Could not transfer
>>>>> artifact org.apache.storm:storm-core:pom:0.10.0.2.3.0.0-2557 from/to
>>>>> apache-hadoop (
>>>>> http://nexus-private.hortonworks.com/nexus/content/groups/public):
>>>>> Connect to nexus-private.hortonworks.com:80 [
>>>>> nexus-private.hortonworks.com/54.173.242.72] failed: Connection timed
>>>>> out (Connection timed out) -> [Help 1]
>>>>>
>>>>> On Thu, Oct 31, 2019 at 10:31 AM Reed Villanueva <
>>>>> rvillanueva@ucera.org> wrote:
>>>>>
>>>>>> UPDATE:
>>>>>> New error message:
>>>>>> [ERROR] Failed to execute goal
>>>>>> com.github.eirslett:frontend-maven-plugin:1.4:install-node-and-yarn
>>>>>> (install node and yarn) on project ambari-web: The plugin
>>>>>> com.github.eirslett:frontend-maven-plugin:1.4 requires Maven version 3.1.0
>>>>>> -> [Help 1]
>>>>>>
>>>>>> Prereq. versions:
>>>>>>
>>>>>> [root@HW001 ~]# java -version
>>>>>> openjdk version "1.8.0_151"
>>>>>> OpenJDK Runtime Environment (build 1.8.0_151-b12)
>>>>>> OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 Downloads]# g++ --version
>>>>>> g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
>>>>>> Copyright (C) 2015 Free Software Foundation, Inc.
>>>>>> This is free software; see the source for copying conditions.  There is NO
>>>>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# mvn -v
>>>>>> Apache Maven 3.0.5 (Red Hat 3.0.5-17)
>>>>>> Maven home: /usr/share/maven
>>>>>> Java version: 1.8.0_151, vendor: Oracle Corporation
>>>>>> Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
>>>>>> Default locale: en_US, platform encoding: UTF-8
>>>>>> OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch: "amd64", family: "unix"
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# npm --version
>>>>>> 3.10.10
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# python --version
>>>>>> Python 2.7.5
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# pip --version
>>>>>> pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# easy_install --version
>>>>>> setuptools 0.9.8
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# yum list installed | grep rpm-build
>>>>>> rpm-build.x86_64                      4.11.3-40.el7                   @base
>>>>>> rpm-build-libs.x86_64                 4.11.3-40.el7                   @base
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# node --version
>>>>>> v6.17.1
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# npm list -g | grep brunch
>>>>>> ├─┬ brunch@2.10.17
>>>>>> │ │ ├── brunch-skeletons@0.1.6
>>>>>> │ ├─┬ serve-brunch@0.2.1
>>>>>>
>>>>>>
>>>>>> Appears need a version of maven beyond what the default centos7 repos
>>>>>> provide (3.0.5). Will continue working on this to debug.
>>>>>>
>>>>>> On Thu, Oct 31, 2019 at 9:56 AM Reed Villanueva <
>>>>>> rvillanueva@ucera.org> wrote:
>>>>>>
>>>>>>> Attempting to build ambari 2.7.3 via docs:
>>>>>>> https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.3
>>>>>>> Getting build errors when installing after command:
>>>>>>> mvn -B clean install rpm:rpm -DnewVersion=2.7.3.0.0 -DbuildNumber=4295bb16c439cbc8fb0e7362f19768dde1477868
>>>>>>> -DskipTests -Dpython.ver="python >= 2.6"
>>>>>>>
>>>>>>> Any ideas what could be going on here or fixes? Some info that may
>>>>>>> be relevant provided below:
>>>>>>>
>>>>>>> [root@HW001 ~]# sha256sum ./Downloads/apache-ambari-2.7.3-src.tar.gz
>>>>>>> 920c1b2caaba3a6f8b97ee67c557b7b4817d05dda7104d8bb6cbdc68da13c1fe
>>>>>>>  ./Downloads/apache-ambari-2.7.3-src.tar.gz
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]# java -version
>>>>>>> openjdk version "1.8.0_151"
>>>>>>> OpenJDK Runtime Environment (build 1.8.0_151-b12)
>>>>>>> OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]# mvn -v
>>>>>>> Apache Maven 3.0.5 (Red Hat 3.0.5-17)
>>>>>>> Maven home: /usr/share/maven
>>>>>>> Java version: 1.8.0_151, vendor: Oracle Corporation
>>>>>>> Java home:
>>>>>>> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
>>>>>>> Default locale: en_US, platform encoding: UTF-8
>>>>>>> OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch:
>>>>>>> "amd64", family: "unix"
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]# python --version
>>>>>>> Python 2.7.5
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]# pip --version
>>>>>>> pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
>>>>>>> [root@HW001 ~]# easy_install --version
>>>>>>> setuptools 0.9.8
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]# yum list installed | grep rpm-build
>>>>>>> rpm-build.x86_64                      4.11.3-40.el7
>>>>>>>   @base
>>>>>>> rpm-build-libs.x86_64                 4.11.3-40.el7
>>>>>>>   @base
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]# node --version
>>>>>>> v6.17.1
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]#
>>>>>>> [root@HW001 ~]# npm list -g | grep brunch
>>>>>>> ├─┬ brunch@2.10.17
>>>>>>> │ │ ├── brunch-skeletons@0.1.6
>>>>>>> │ ├─┬ serve-brunch@0.2.1
>>>>>>>
>>>>>>
>> This electronic message is intended only for the named
>> recipient, and may contain information that is confidential or
>> privileged. If you are not the intended recipient, you are
>> hereby notified that any disclosure, copying, distribution or
>> use of the contents of this message is strictly prohibited. If
>> you have received this message in error or are not the named
>> recipient, please notify us immediately by contacting the
>> sender at the electronic mail address noted above, and delete
>> and destroy all copies of this message. Thank you.
>>
>

-- 
This electronic message is intended only for the named 
recipient, and may 
contain information that is confidential or 
privileged. If you are not the 
intended recipient, you are 
hereby notified that any disclosure, copying, 
distribution or 
use of the contents of this message is strictly 
prohibited. If 
you have received this message in error or are not the 
named
recipient, please notify us immediately by contacting the 
sender at 
the electronic mail address noted above, and delete 
and destroy all copies 
of this message. Thank you.

Re: Issues building ambari v2.7.3 "on project ambari-metrics-storm-sink-legacy"

Posted by Akhil Naik <as...@cloudera.com>.
Hi Reed,

Not Sure which branch you are trying to build.
If it's branch-2.7 there was a Apache JIRA filed :
https://issues.apache.org/jira/browse/AMBARI-25348
after which the pom.xml was changed
https://nexus-private.hortonworks.com/nexus/
to https://repo.hortonworks.com/

refer to : https://github.com/apache/ambari/pull/3063/files

and change your pom.xml accordingly.




*Thanks,Akhil Subhash Naik*

------------------------------


On Sat, Nov 2, 2019 at 1:26 AM Reed Villanueva <rv...@ucera.org>
wrote:

> After waiting for project to build found that problem not fixed.
> When using the nexus-hortonworks mirror, it appears that maven is also
> looking there for an artifact called "ring-cors" and failing (I assume due
> to the fact that I have it configured as a mirrorOf *). Moving the mirror
> info to the project pom.xml, I get the same error again:
>
> [ERROR] Failed to execute goal on project
> ambari-metrics-storm-sink-legacy: Could not resolve dependencies for
> project org.apache.ambari:ambari-metrics-storm-sink-legacy:jar:2.7.3.0.0:
> Failed to collect dependencies at
> org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Failed to read
> artifact descriptor for
> org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Could not transfer
> artifact org.apache.storm:storm-core:pom:0.10.0.2.3.0.0-2557 from/to
> apache-hadoop (
> http://nexus-private.hortonworks.com/nexus/content/groups/public):
> Connect to nexus-private.hortonworks.com:80 [
> nexus-private.hortonworks.com/54.173.242.72] failed: Connection timed out
> (Connection timed out) -> [Help 1]
>
> Anyone with more maven experience know how to fix this issue? Anyone else
> had this issue building the project?
>
>
> On Thu, Oct 31, 2019 at 12:38 PM Reed Villanueva <rv...@ucera.org>
> wrote:
>
>> Fixed issue.
>> My $M2_HOME/conf/setting.xml now looks like...
>>
>> ....<mirrors>
>>     <!-- mirror
>>      | Specifies a repository mirror site to use instead of a given repository. The repository that
>>      | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
>>      | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
>>      |
>>     <mirror>
>>       <id>mirrorId</id>
>>       <mirrorOf>repositoryId</mirrorOf>
>>       <name>Human Readable Name for this Mirror.</name>
>>       <url>http://my.repository.com/repo/path</url>
>>     </mirror>
>>      -->
>>         <mirror>
>>                 <id>nexus-hortonworks</id>
>>                 <mirrorOf>*,!central</mirrorOf>
>>                 <name>Nexus hortonworks</name>
>>                 <url>https://repo.hortonworks.com/content/groups/public/</url>
>>         </mirror>
>>   </mirrors>
>> ....
>>
>>
>> On Thu, Oct 31, 2019 at 11:40 AM Reed Villanueva <rv...@ucera.org>
>> wrote:
>>
>>> Problem seems similar to the Taiwanese post here:
>>> https://translate.google.com/translate?hl=en&sl=zh-TW&u=https://www.twblogs.net/a/5d5f397bbd9eee541c328e0c&prev=search
>>>
>>> Not very experienced with maven, so not totally sure how to interpret
>>> their steps, but will continue trying to fix and debug.
>>>
>>> On Thu, Oct 31, 2019 at 11:10 AM Reed Villanueva <rv...@ucera.org>
>>> wrote:
>>>
>>>> Installed latest version of maven:
>>>> [root@HW001 apache-ambari-2.7.3-src]# mvn --version
>>>> Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117;
>>>> 2019-08-27T05:06:16-10:00)
>>>> Maven home: /usr/local/src/apache-maven
>>>> Java version: 1.8.0_151, vendor: Oracle Corporation, runtime:
>>>> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
>>>> Default locale: en_US, platform encoding: UTF-8
>>>> OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch: "amd64",
>>>> family: "unix"
>>>>
>>>> Still getting errors:
>>>> [ERROR] Failed to execute goal on project
>>>> ambari-metrics-storm-sink-legacy: Could not resolve dependencies for
>>>> project org.apache.ambari:ambari-metrics-storm-sink-legacy:jar:2.7.3.0.0:
>>>> Failed to collect dependencies at
>>>> org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Failed to read
>>>> artifact descriptor for
>>>> org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557: Could not transfer
>>>> artifact org.apache.storm:storm-core:pom:0.10.0.2.3.0.0-2557 from/to
>>>> apache-hadoop (
>>>> http://nexus-private.hortonworks.com/nexus/content/groups/public):
>>>> Connect to nexus-private.hortonworks.com:80 [
>>>> nexus-private.hortonworks.com/54.173.242.72] failed: Connection timed
>>>> out (Connection timed out) -> [Help 1]
>>>>
>>>> On Thu, Oct 31, 2019 at 10:31 AM Reed Villanueva <rv...@ucera.org>
>>>> wrote:
>>>>
>>>>> UPDATE:
>>>>> New error message:
>>>>> [ERROR] Failed to execute goal
>>>>> com.github.eirslett:frontend-maven-plugin:1.4:install-node-and-yarn
>>>>> (install node and yarn) on project ambari-web: The plugin
>>>>> com.github.eirslett:frontend-maven-plugin:1.4 requires Maven version 3.1.0
>>>>> -> [Help 1]
>>>>>
>>>>> Prereq. versions:
>>>>>
>>>>> [root@HW001 ~]# java -version
>>>>> openjdk version "1.8.0_151"
>>>>> OpenJDK Runtime Environment (build 1.8.0_151-b12)
>>>>> OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 Downloads]# g++ --version
>>>>> g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
>>>>> Copyright (C) 2015 Free Software Foundation, Inc.
>>>>> This is free software; see the source for copying conditions.  There is NO
>>>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# mvn -v
>>>>> Apache Maven 3.0.5 (Red Hat 3.0.5-17)
>>>>> Maven home: /usr/share/maven
>>>>> Java version: 1.8.0_151, vendor: Oracle Corporation
>>>>> Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
>>>>> Default locale: en_US, platform encoding: UTF-8
>>>>> OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch: "amd64", family: "unix"
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# npm --version
>>>>> 3.10.10
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# python --version
>>>>> Python 2.7.5
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# pip --version
>>>>> pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# easy_install --version
>>>>> setuptools 0.9.8
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# yum list installed | grep rpm-build
>>>>> rpm-build.x86_64                      4.11.3-40.el7                   @base
>>>>> rpm-build-libs.x86_64                 4.11.3-40.el7                   @base
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# node --version
>>>>> v6.17.1
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]#
>>>>> [root@HW001 ~]# npm list -g | grep brunch
>>>>> ├─┬ brunch@2.10.17
>>>>> │ │ ├── brunch-skeletons@0.1.6
>>>>> │ ├─┬ serve-brunch@0.2.1
>>>>>
>>>>>
>>>>> Appears need a version of maven beyond what the default centos7 repos
>>>>> provide (3.0.5). Will continue working on this to debug.
>>>>>
>>>>> On Thu, Oct 31, 2019 at 9:56 AM Reed Villanueva <rv...@ucera.org>
>>>>> wrote:
>>>>>
>>>>>> Attempting to build ambari 2.7.3 via docs:
>>>>>> https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.3
>>>>>> Getting build errors when installing after command:
>>>>>> mvn -B clean install rpm:rpm -DnewVersion=2.7.3.0.0 -DbuildNumber=4295bb16c439cbc8fb0e7362f19768dde1477868
>>>>>> -DskipTests -Dpython.ver="python >= 2.6"
>>>>>>
>>>>>> Any ideas what could be going on here or fixes? Some info that may be
>>>>>> relevant provided below:
>>>>>>
>>>>>> [root@HW001 ~]# sha256sum ./Downloads/apache-ambari-2.7.3-src.tar.gz
>>>>>> 920c1b2caaba3a6f8b97ee67c557b7b4817d05dda7104d8bb6cbdc68da13c1fe
>>>>>>  ./Downloads/apache-ambari-2.7.3-src.tar.gz
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# java -version
>>>>>> openjdk version "1.8.0_151"
>>>>>> OpenJDK Runtime Environment (build 1.8.0_151-b12)
>>>>>> OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# mvn -v
>>>>>> Apache Maven 3.0.5 (Red Hat 3.0.5-17)
>>>>>> Maven home: /usr/share/maven
>>>>>> Java version: 1.8.0_151, vendor: Oracle Corporation
>>>>>> Java home:
>>>>>> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
>>>>>> Default locale: en_US, platform encoding: UTF-8
>>>>>> OS name: "linux", version: "3.10.0-693.11.1.el7.x86_64", arch:
>>>>>> "amd64", family: "unix"
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# python --version
>>>>>> Python 2.7.5
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# pip --version
>>>>>> pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
>>>>>> [root@HW001 ~]# easy_install --version
>>>>>> setuptools 0.9.8
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# yum list installed | grep rpm-build
>>>>>> rpm-build.x86_64                      4.11.3-40.el7
>>>>>> @base
>>>>>> rpm-build-libs.x86_64                 4.11.3-40.el7
>>>>>> @base
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# node --version
>>>>>> v6.17.1
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]#
>>>>>> [root@HW001 ~]# npm list -g | grep brunch
>>>>>> ├─┬ brunch@2.10.17
>>>>>> │ │ ├── brunch-skeletons@0.1.6
>>>>>> │ ├─┬ serve-brunch@0.2.1
>>>>>>
>>>>>
> This electronic message is intended only for the named
> recipient, and may contain information that is confidential or
> privileged. If you are not the intended recipient, you are
> hereby notified that any disclosure, copying, distribution or
> use of the contents of this message is strictly prohibited. If
> you have received this message in error or are not the named
> recipient, please notify us immediately by contacting the
> sender at the electronic mail address noted above, and delete
> and destroy all copies of this message. Thank you.
>