ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ganesh Raju <ganesh.r...@linaro.org>
Subject Re: Cannot Build Ambari master branch or 2.4.2 on Ubuntu 16.04.1 LTS
Date Wed, 01 Feb 2017 20:45:01 GMT
I have been trying to build in Debian and i am stuck with the following
error.

[INFO] Ambari Metrics Kafka Sink ......................... SUCCESS [2.571s]

[INFO] Ambari Metrics Storm Sink ......................... FAILURE [4.530s]

[INFO] Ambari Metrics Storm Sink (Legacy) ................ SKIPPED

[INFO] Ambari Metrics Collector .......................... SKIPPED

[INFO] Ambari Metrics Monitor ............................ SKIPPED

[INFO] Ambari Metrics Grafana ............................ SKIPPED

[INFO] Ambari Metrics Assembly ........................... SKIPPED

[INFO] Ambari Server ..................................... SKIPPED

[INFO] Ambari Functional Tests ........................... SKIPPED

[INFO] Ambari Agent ...................................... SKIPPED

[INFO] Ambari Client ..................................... SKIPPED

[INFO] Ambari Python Client .............................. SKIPPED

[INFO] Ambari Groovy Client .............................. SKIPPED

[INFO] Ambari Shell ...................................... SKIPPED

[INFO] Ambari Python Shell ............................... SKIPPED

[INFO] Ambari Groovy Shell ............................... SKIPPED

[INFO] ambari-logsearch .................................. SKIPPED

[INFO] Ambari Logsearch Appender ......................... SKIPPED

[INFO] Ambari Logsearch Solr Client ...................... SKIPPED

[INFO] Ambari Logsearch Portal ........................... SKIPPED

[INFO] Ambari Logsearch Log Feeder ....................... SKIPPED

[INFO] Ambari Logsearch Assembly ......................... SKIPPED

[INFO]
------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 3:32.049s

[INFO] Finished at: Wed Feb 01 16:24:58 UTC 2017

[INFO] Final Memory: 57M/375M

[INFO]
------------------------------------------------------------------------

[ERROR] Failed to execute goal on project ambari-metrics-storm-sink: Could
not resolve dependencies for project
org.apache.ambari:ambari-metrics-storm-sink:jar:2.4.2.0.0: Failed to
collect dependencies for [org.apache.commons:commons-lang3:jar:3.3.2
(compile), commons-codec:commons-codec:jar:1.8 (compile),
org.apache.storm:storm-core:jar:0.9.3 (compile),
org.apache.ambari:ambari-metrics-common:jar:2.4.2.0.0 (compile),
org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13 (compile),
junit:junit:jar:4.10 (test), org.easymock:easymock:jar:3.2 (test),
org.powermock:powermock-api-easymock:jar:1.6.2 (test),
org.powermock:powermock-module-junit4:jar:1.6.2 (test)]: Failed to read
artifact descriptor for clj-time:clj-time:jar:0.4.1: Could not transfer
artifact clj-time:clj-time:pom:0.4.1 from/to apache-snapshots (
https://repository.apache.org/content/repositories/snapshots): peer not
authenticated -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal on project ambari-metrics-storm-sink: Could not resolve dependencies
for project org.apache.ambari:ambari-metrics-storm-sink:jar:2.4.2.0.0:
Failed to collect dependencies for
[org.apache.commons:commons-lang3:jar:3.3.2 (compile),
commons-codec:commons-codec:jar:1.8 (compile),
org.apache.storm:storm-core:jar:0.9.3 (compile),
org.apache.ambari:ambari-metrics-common:jar:2.4.2.0.0 (compile),
org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13 (compile),
junit:junit:jar:4.10 (test), org.easymock:easymock:jar:3.2 (test),
org.powermock:powermock-api-easymock:jar:1.6.2 (test),
org.powermock:powermock-module-junit4:jar:1.6.2 (test)]

at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)

at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)

at
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)

at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)

at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

Caused by: org.apache.maven.project.DependencyResolutionException: Could
not resolve dependencies for project
org.apache.ambari:ambari-metrics-storm-sink:jar:2.4.2.0.0: Failed to
collect dependencies for [org.apache.commons:commons-lang3:jar:3.3.2
(compile), commons-codec:commons-codec:jar:1.8 (compile),
org.apache.storm:storm-core:jar:0.9.3 (compile),
org.apache.ambari:ambari-metrics-common:jar:2.4.2.0.0 (compile),
org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13 (compile),
junit:junit:jar:4.10 (test), org.easymock:easymock:jar:3.2 (test),
org.powermock:powermock-api-easymock:jar:1.6.2 (test),
org.powermock:powermock-module-junit4:jar:1.6.2 (test)]

at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:158)

at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)

... 22 more

Caused by: org.sonatype.aether.collection.DependencyCollectionException:
Failed to collect dependencies for
[org.apache.commons:commons-lang3:jar:3.3.2 (compile),
commons-codec:commons-codec:jar:1.8 (compile),
org.apache.storm:storm-core:jar:0.9.3 (compile),
org.apache.ambari:ambari-metrics-common:jar:2.4.2.0.0 (compile),
org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13 (compile),
junit:junit:jar:4.10 (test), org.easymock:easymock:jar:3.2 (test),
org.powermock:powermock-api-easymock:jar:1.6.2 (test),
org.powermock:powermock-module-junit4:jar:1.6.2 (test)]

at
org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:258)

at
org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308)

at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)

... 23 more

Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException:
Failed to read artifact descriptor for clj-time:clj-time:jar:0.4.1

at
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:296)

at
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)

at
org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:412)

at
org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:544)

at
org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240)

... 25 more

Caused by: org.sonatype.aether.resolution.ArtifactResolutionException:
Could not transfer artifact clj-time:clj-time:pom:0.4.1 from/to
apache-snapshots (
https://repository.apache.org/content/repositories/snapshots): peer not
authenticated

at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)

at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)

at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)

at
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281)

... 29 more

Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could
not transfer artifact clj-time:clj-time:pom:0.4.1 from/to apache-snapshots (
https://repository.apache.org/content/repositories/snapshots): peer not
authenticated

at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:951)

at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941)

at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:669)

at
org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.maven.wagon.TransferFailedException: peer not
authenticated

at
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:892)

at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)

at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)

at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)

at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:601)

... 4 more

Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

at
sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:431)

at
org.apache.maven.wagon.providers.http.httpclient.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:126)

at
org.apache.maven.wagon.providers.http.httpclient.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:572)

at
org.apache.maven.wagon.shared.http4.ConfigurableSSLSocketFactoryDecorator.connectSocket(ConfigurableSSLSocketFactoryDecorator.java:64)

at
org.apache.maven.wagon.providers.http.httpclient.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)

at
org.apache.maven.wagon.providers.http.httpclient.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)

at
org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)

at
org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)

at
org.apache.maven.wagon.providers.http.httpclient.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)

at
org.apache.maven.wagon.providers.http.httpclient.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)

at
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:746)

at
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:886)

... 8 more

[ERROR]

[ERROR]

[ERROR] For more information about the errors and possible solutions,
please read the following articles:

[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the
command

[ERROR]   mvn <goals> -rf :ambari-metrics-storm-sink


On Wed, Feb 1, 2017 at 1:12 PM, Alejandro Fernandez <
afernandez@hortonworks.com> wrote:

> 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>
> Reply-To: "user@ambari.apache.org" <user@ambari.apache.org>
> Date: Tuesday, January 31, 2017 at 6:18 PM
> To: "user@ambari.apache.org" <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>
> 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(Lau
>>> ncher.java:229)
>>>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithEx
>>> itCode(Launcher.java:415)
>>>     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launc
>>> her.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+me
>>> trics+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
>



-- 
IRC: ganeshraju@#linaro on irc.freenode.ne <http://irc.freenode.net/>t

Mime
View raw message