ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewis john mcgibbney <lewi...@apache.org>
Subject Re: Cannot Build Ambari master branch or 2.4.2 on Ubuntu 16.04.1 LTS
Date Wed, 01 Feb 2017 02:18:31 GMT
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>
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
> > 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>(XmlStrea
>> mReader.java:67)
>>     at org.codehaus.plexus.util.ReaderFactory.newXmlReader(ReaderFa
>> ctory.java:118)
>>     at org.codehaus.mojo.versions.api.PomHelper.readXmlFile(PomHelp
>> er.java:1606)
>>     at org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo.proce
>> ss(AbstractVersionsUpdaterMojo.java:321)
>>     at org.codehaus.mojo.versions.SetMojo.execute(SetMojo.java:298)
>>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMoj
>> o(DefaultBuildPluginManager.java:134)
>>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:207)
>>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:153)
>>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:145)
>>     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>> uildProject(LifecycleModuleBuilder.java:116)
>>     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>> uildProject(LifecycleModuleBuilder.java:80)
>>     at org.apache.maven.lifecycle.internal.builder.singlethreaded.S
>> ingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>     at org.apache.maven.lifecycle.internal.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(NativeMethodAcce
>> ssorImpl.java:57)
>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnha
>> nced(Launcher.java:289)
>>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
>> Launcher.java:229)
>>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithEx
>> itCode(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-amb
>> ari-file-not-found-execution-ambari-metr.html
>> http://search-hadoop.com/m/Ambari/g7Bc6BiFlM1KGh4B?subj=buil
>> t+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/
>> @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