ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandro Fernandez <afernan...@hortonworks.com>
Subject Re: Cannot Build Ambari master branch or 2.4.2 on Ubuntu 16.04.1 LTS
Date Wed, 01 Feb 2017 19:12:25 GMT
Is anyone else building on Ubuntu?

Lewis, have you  tried building with "mvn clean package -DskipTests"?

Thanks,
Alejandro

From: lewis john mcgibbney <lewismc@apache.org<mailto:lewismc@apache.org>>
Reply-To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Date: Tuesday, January 31, 2017 at 6:18 PM
To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Subject: Re: Cannot Build Ambari master branch or 2.4.2 on Ubuntu 16.04.1 LTS

Hi Sumit,
I followed the wiki entry and have ended up at another dead end!
I install absolutely everything as per the wiki page, I then execute 'mvn clean install -DskipTests',
this results in the following

[INFO]
[INFO] --- maven-assembly-plugin:2.4.1:single (make-assembly) @ ambari ---
[INFO] Reading assembly descriptor: /home/webmaster/apache-ambari-2.4.2-src/ambari-project/src/main/assemblies/empty.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Main ........................................ FAILURE [  5.877 s]
[INFO] Apache Ambari Project POM .......................... SKIPPED
[INFO] Ambari Web ......................................... SKIPPED
[INFO] Ambari Views ....................................... SKIPPED
[INFO] Ambari Admin View .................................. SKIPPED

The offending file 'empty.xml' is present at
https://github.com/apache/ambari/blob/release-2.4.2/ambari-project/src/main/assemblies/empty.xml
I've never seen an empty assembly file before, has anyone else encountered this error when
attempting to build Ambari 2.4.2?
Thanks

On Tue, Jan 31, 2017 at 5:39 PM, lewis john mcgibbney <lewismc@apache.org<mailto:lewismc@apache.org>>
wrote:
Thank you Sumit, I'll try it out.
Best


On Sat, Jan 28, 2017 at 12:22 PM, lewis john mcgibbney <lewismc@apache.org<mailto:lewismc@apache.org>>
wrote:
Hi Folks,
I'm having a bit of trouble here, and have seen some evidence of other struggling as well.
After I ensure that all prerequisites are installed, when attempting to build both master
branch and 2.4.2 release, both result in the reactor summary as below

mvn versions:set -DnewVersion=${AMBARI_VERSION}

This happens when attempting to build metrics as directed in all installation manuals.


[INFO] ------------------------------------------------------------------------
[INFO] Building ambari-metrics 2.4.2.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- versions-maven-plugin:2.3:set (default-cli) @ ambari-metrics ---
Enter the new version to set 2.4.2.0.0: :
[INFO] Searching for local aggregator root...
[INFO] Local aggregation root: /home/webmaster/ambari
[INFO] Processing change of org.apache.ambari:ambari-metrics:2.4.2.0.0 -> 2.4.2.0.0
[ERROR]
java.io.FileNotFoundException: /home/webmaster/ambari/ambari-metrics/ambari-metrics (No such
file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:146)
    at org.codehaus.plexus.util.xml.XmlReader.<init>(XmlReader.java:124)
    at org.codehaus.plexus.util.xml.XmlStreamReader.<init>(XmlStreamReader.java:67)
    at org.codehaus.plexus.util.ReaderFactory.newXmlReader(ReaderFactory.java:118)
    at org.codehaus.mojo.versions.api.PomHelper.readXmlFile(PomHelper.java:1606)
    at org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo.process(AbstractVersionsUpdaterMojo.java:321)
    at org.codehaus.mojo.versions.SetMojo.execute(SetMojo.java:298)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.int<http://org.apache.maven.lifecycle.int>ernal.MojoExecutor.execute(MojoExecutor.java:207)
    at org.apache.maven.lifecycle.int<http://org.apache.maven.lifecycle.int>ernal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.int<http://org.apache.maven.lifecycle.int>ernal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.int<http://org.apache.maven.lifecycle.int>ernal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.int<http://org.apache.maven.lifecycle.int>ernal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.int<http://org.apache.maven.lifecycle.int>ernal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.int<http://org.apache.maven.lifecycle.int>ernal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] utility ............................................ SKIPPED

The same has been reported numerous times over on various sites (but not the Ambari lists
as far as I can see)
https://community.hortonworks.com/questions/77012/apache-ambari-file-not-found-execution-ambari-metr.html
http://search-hadoop.com/m/Ambari/g7Bc6BiFlM1KGh4B?subj=built+and+install+ambari+2+4+with+CentOS+6+5+meet+with+ambari+metrics+ambari+metrics+No+such+file+or+directory+

Any ideas folks?
Thank you
Lewis
--
http://home.apache.org/~lewismc/<http://home.apache.org/%7Elewismc/>
@hectorMcSpector
http://www.linkedin.com/in/lmcgibbney



--
http://home.apache.org/~lewismc/
@hectorMcSpector
http://www.linkedin.com/in/lmcgibbney



--
http://home.apache.org/~lewismc/
@hectorMcSpector
http://www.linkedin.com/in/lmcgibbney

Mime
View raw message