Luigi Caramico created AMBARI-25499:
---------------------------------------

             Summary: Unable to build ambari 2.7.5
                 Key: AMBARI-25499
                 URL: https://issues.apache.org/jira/browse/AMBARI-25499
             Project: Ambari
          Issue Type: Bug
          Components: ambari-admin
    Affects Versions: 2.7.1, 2.7.3, 2.7.4, 2.7.5
            Reporter: Luigi Caramico


following the instruction on 
[https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.5]

 

I started to build Ambari but I get the error 

[INFO] --- exec-maven-plugin:1.2.1:exec (Bower install) @ ambari-admin ---
bower error Unexpected token {

 

 

[INFO] [email protected] node_modules/bower
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected] ([email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected], [email protected])
[INFO] ├── [email protected]
[INFO] ├── [email protected] ([email protected])
[INFO] ├── [email protected] ([email protected])
[INFO] ├── [email protected] ([email protected])
[INFO] ├── [email protected] ([email protected], [email protected], 
[email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected], 
[email protected])
[INFO] ├── [email protected] ([email protected])
[INFO] ├── [email protected] ([email protected])
[INFO] ├── [email protected] ([email protected])
[INFO] ├── [email protected] ([email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected], 
[email protected], [email protected], [email protected], [email protected], 
[email protected], [email protected], [email protected], 
[email protected], [email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected], [email protected], 
[email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected], 
[email protected], [email protected], [email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected], [email protected], 
[email protected], [email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected], 
[email protected], [email protected], [email protected], [email protected])
[INFO] ├── [email protected]
[INFO] └── [email protected] ([email protected], [email protected], [email protected], 
[email protected], [email protected], [email protected])
[INFO] 
[INFO] [email protected] node_modules/phantomjs
[INFO] ├── [email protected]
[INFO] ├── [email protected]
[INFO] ├── [email protected] ([email protected])
[INFO] ├── [email protected] ([email protected])
[INFO] ├── [email protected] ([email protected], [email protected])
[INFO] ├── [email protected] ([email protected], [email protected], [email protected], 
[email protected])
[INFO] ├── [email protected] ([email protected], [email protected], 
[email protected], [email protected], [email protected])
[INFO] └── [email protected] ([email protected], [email protected], 
[email protected], [email protected], [email protected], [email protected], 
[email protected], [email protected], [email protected], [email protected], 
[email protected], [email protected], [email protected], [email protected], 
[email protected], [email protected], [email protected], [email protected], 
[email protected], [email protected])
[INFO] 
[INFO] [email protected] node_modules/karma-phantomjs-launcher
[INFO] └── [email protected] ([email protected], [email protected], [email protected], 
[email protected], [email protected], [email protected], [email protected], 
[email protected])
[INFO] 
[INFO] --- exec-maven-plugin:1.2.1:exec (Bower install) @ ambari-admin ---
bower error Unexpected token {

Stack trace:
SyntaxError: Unexpected token {
 at exports.runInThisContext (vm.js:53:16)
 at Module._compile (module.js:373:25)
 at Object.Module._extensions..js (module.js:416:10)
 at Module.load (module.js:343:32)
 at Function.Module._load (module.js:300:12)
 at Module.require (module.js:353:17)
 at require (internal/module.js:12:17)
 at Object.<anonymous> 
(/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/bower-registry-client/node_modules/request/lib/cookies.js:3:13)
 at Module._compile (module.js:409:26)
 at Object.Module._extensions..js (module.js:416:10)

Console trace:
Trace
 at StandardRenderer.error 
(/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/lib/renderers/StandardRenderer.js:72:17)
 at Logger.<anonymous> 
(/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/bin/bower:111:22)
 at emitOne (events.js:77:13)
 at Logger.emit (events.js:169:7)
 at Logger.emit 
(/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
 at 
/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/lib/commands/index.js:40:20
 at _rejected 
(/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/q/q.js:797:24)
 at 
/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/q/q.js:823:30
 at Promise.when 
(/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/q/q.js:1035:31)
 at Promise.promise.promiseDispatch 
(/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/q/q.js:741:41)

System info:
Bower version: 1.3.8
Node version: 4.5.0
OS: Linux 3.10.0-1062.el7.x86_64 x64
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Main ........................................ SUCCESS [ 44.570 s]
[INFO] Apache Ambari Project POM .......................... SUCCESS [ 0.410 s]
[INFO] Ambari Web ......................................... SUCCESS [01:25 min]
[INFO] Ambari Views ....................................... SUCCESS [ 19.071 s]
[INFO] Ambari Admin View .................................. FAILURE [01:24 min]
[INFO] ambari-utility ..................................... SKIPPED
[INFO] ambari-metrics ..................................... SKIPPED
[INFO] Ambari Metrics Common .............................. SKIPPED
[INFO] Ambari Metrics Hadoop Sink ......................... SKIPPED
[INFO] Ambari Metrics Flume Sink .......................... SKIPPED
[INFO] Ambari Metrics Kafka Sink .......................... SKIPPED
[INFO] Ambari Metrics Storm Sink .......................... SKIPPED
[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 Host Aggregator ..................... SKIPPED
[INFO] Ambari Metrics Assembly ............................ SKIPPED
[INFO] Ambari Service Advisor ............................. SKIPPED
[INFO] Ambari Server ...................................... SKIPPED
[INFO] Ambari Functional Tests ............................ SKIPPED
[INFO] Ambari Agent ....................................... SKIPPED
[INFO] ambari-logsearch ................................... SKIPPED
[INFO] Ambari Logsearch Appender .......................... SKIPPED
[INFO] Ambari Logsearch Config Api ........................ SKIPPED
[INFO] Ambari Logsearch Config JSON ....................... SKIPPED
[INFO] Ambari Logsearch Config Solr ....................... SKIPPED
[INFO] Ambari Logsearch Config Zookeeper .................. SKIPPED
[INFO] Ambari Logsearch Config Local ...................... SKIPPED
[INFO] Ambari Logsearch Log Feeder Plugin Api ............. SKIPPED
[INFO] Ambari Logsearch Log Feeder Container Registry ..... SKIPPED
[INFO] Ambari Logsearch Log Feeder ........................ SKIPPED
[INFO] Ambari Logsearch Web ............................... SKIPPED
[INFO] Ambari Logsearch Server ............................ SKIPPED
[INFO] Ambari Logsearch Assembly .......................... SKIPPED
[INFO] Ambari Logsearch Integration Test .................. SKIPPED
[INFO] ambari-infra ....................................... SKIPPED
[INFO] Ambari Infra Solr Client ........................... SKIPPED
[INFO] Ambari Infra Solr Plugin ........................... SKIPPED
[INFO] Ambari Infra Manager ............................... SKIPPED
[INFO] Ambari Infra Assembly .............................. SKIPPED
[INFO] Ambari Infra Manager Integration Tests ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:54 min
[INFO] Finished at: 2020-04-07T00:50:18-07:00
[INFO] Final Memory: 44M/560M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec 
(Bower install) on project ambari-admin: Command execution failed. Process 
exited with an error: 1 (Exit value: 1) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (Bower install) on project 
ambari-admin: Command execution failed.
 at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
 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:116)
 at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
 at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.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(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: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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution 
failed.
 at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:362)
 at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
 at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
 ... 20 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an 
error: 1 (Exit value: 1)
 at 
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
 at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
 at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:610)
 at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:352)
 ... 22 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :ambari-admin

 

 

Any suggestion?

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to