Good morning -

I am trying to follow this guide
<https://cwiki.apache.org/confluence/display/METRON/Metron+0.4.1+with+HDP+2.5+bare-metal+install+on+Centos+7+with+MariaDB+for+Metron+REST>
to installing Metron 0.4.1 on a Virtual Machine running CentOS 7.

I am able to get to the section titled "Build Metron Code" and then I fail
on this command:

​> ​
mvn clean package -DskipTests -T 2C -P HDP-2.5.0.0,mpack


I have attached the stack trace at the point where the error is encountered.

I have also attached the npm-debug.log

I looked at the package.json file in
/home/admin/metron/metron-interface/metron-config/
and noticed that tough-cookie is not listed as a dependency.

I tried npm install tough-cookie in that directory and when I re-run the
mvn command it doesn't fail on the tough-cookie dependency, but it does
fail on another missing dependency.

If there is any insight you could provide to help me get metron set up, it
would be greatly appreciated.

Thank you for your time.

-Tarik
[INFO] Cannot find module 'tough-cookie'
[INFO] Error: Cannot find module 'tough-cookie'
[INFO]     at Function.Module._resolveFilename (module.js:440:15)
[INFO]     at Function.Module._load (module.js:388:25)
[INFO]     at Module.require (module.js:468:17)
[INFO]     at require (internal/module.js:20:19)
[INFO]     at Object.<anonymous> 
(/home/admin/metron/metron-interface/metron-config/node_modules/request/lib/cookies.js:3:13)
[INFO]     at Module._compile (module.js:541:32)
[INFO]     at Object.Module._extensions..js (module.js:550:10)
[INFO]     at Module.load (module.js:458:32)
[INFO]     at tryModuleLoad (module.js:417:12)
[INFO]     at Function.Module._load (module.js:409:3)
[INFO]     at Module.require (module.js:468:17)
[INFO]     at require (internal/module.js:20:19)
[INFO]     at Object.<anonymous> 
(/home/admin/metron/metron-interface/metron-config/node_modules/request/index.js:18:15)
[INFO]     at Module._compile (module.js:541:32)
[INFO]     at Object.Module._extensions..js (module.js:550:10)
[INFO]     at Module.load (module.js:458:32)
[INFO]     at tryModuleLoad (module.js:417:12)
[INFO]     at Function.Module._load (module.js:409:3)
[INFO]     at Module.require (module.js:468:17)
[INFO]     at require (internal/module.js:20:19)
[INFO]     at Leek._enqueue 
(/home/admin/metron/metron-interface/metron-config/node_modules/leek/lib/leek.js:60:30)
[INFO]     at Leek.track 
(/home/admin/metron/metron-interface/metron-config/node_modules/leek/lib/leek.js:87:15)
[INFO]     at Class.Command.validateAndRun 
(/home/admin/metron/metron-interface/metron-config/node_modules/angular-cli/lib/models/command.js:119:18)
[INFO]     at 
/home/admin/metron/metron-interface/metron-config/node_modules/angular-cli/lib/cli/cli.js:86:22
[INFO]     at tryCatch 
(/home/admin/metron/metron-interface/metron-config/node_modules/rsvp/dist/lib/rsvp/-internal.js:198:12)
[INFO]     at invokeCallback 
(/home/admin/metron/metron-interface/metron-config/node_modules/rsvp/dist/lib/rsvp/-internal.js:211:13)
[INFO]     at 
/home/admin/metron/metron-interface/metron-config/node_modules/rsvp/dist/lib/rsvp/then.js:26:14
[INFO]     at flush 
(/home/admin/metron/metron-interface/metron-config/node_modules/rsvp/dist/lib/rsvp/asap.js:80:5)
[INFO]     at _combinedTickCallback (internal/process/next_tick.js:67:7)
[INFO]     at process._tickCallback (internal/process/next_tick.js:98:9)
[ERROR]
[ERROR] npm ERR! Linux 3.10.0-693.11.6.el7.x86_64
[ERROR] npm ERR! argv 
"/home/admin/metron/metron-interface/metron-config/node/node" 
"/home/admin/metron/metron-interface/metron-config/node/node_modules/npm/bin/npm-cli.js"
 "run" "build"
[ERROR] npm ERR! node v6.2.0
[ERROR] npm ERR! npm  v3.8.9
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! [email protected] build: 
`./node_modules/angular-cli/bin/ng build -prod`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the [email protected] build script 
'./node_modules/angular-cli/bin/ng build -prod'.
[ERROR] npm ERR! Make sure you have the latest version of node.js and npm 
installed.
[ERROR] npm ERR! If you do, this is most likely a problem with the 
metron-management-ui package,
[ERROR] npm ERR! not with npm itself.
[ERROR] npm ERR! Tell the author that this fails on your system:
[ERROR] npm ERR!     ./node_modules/angular-cli/bin/ng build -prod
[ERROR] npm ERR! You can get information on how to open an issue for this 
project with:
[ERROR] npm ERR!     npm bugs metron-management-ui
[ERROR] npm ERR! Or if that isn't available, you can get their info via:
[ERROR] npm ERR!     npm owner ls metron-management-ui
[ERROR] npm ERR! There is likely additional logging output above.
[ERROR]
[ERROR] npm ERR! Please include the following file with any support request:
[ERROR] npm ERR!     
/home/admin/metron/metron-interface/metron-config/npm-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Metron ............................................. SUCCESS [ 18.283 s]
[INFO] metron-stellar ..................................... SUCCESS [ 17.041 s]
[INFO] stellar-common ..................................... SUCCESS [01:27 min]
[INFO] metron-analytics ................................... SUCCESS [ 13.388 s]
[INFO] metron-maas-common ................................. SUCCESS [  8.245 s]
[INFO] metron-platform .................................... SUCCESS [ 14.540 s]
[INFO] metron-test-utilities .............................. SUCCESS [01:43 min]
[INFO] metron-integration-test ............................ SUCCESS [ 45.030 s]
[INFO] metron-maas-service ................................ SUCCESS [  6.208 s]
[INFO] metron-common ...................................... SUCCESS [ 57.620 s]
[INFO] metron-statistics .................................. SUCCESS [ 20.714 s]
[INFO] metron-writer ...................................... SKIPPED
[INFO] metron-storm-kafka-override ........................ SUCCESS [  3.452 s]
[INFO] metron-storm-kafka ................................. SUCCESS [  0.513 s]
[INFO] metron-hbase ....................................... SKIPPED
[INFO] metron-profiler-common ............................. SKIPPED
[INFO] metron-profiler-client ............................. SKIPPED
[INFO] metron-profiler .................................... SKIPPED
[INFO] metron-hbase-client ................................ SUCCESS [ 34.673 s]
[INFO] metron-enrichment .................................. SKIPPED
[INFO] metron-indexing .................................... SKIPPED
[INFO] metron-solr ........................................ SKIPPED
[INFO] metron-pcap ........................................ SKIPPED
[INFO] metron-parsers ..................................... SKIPPED
[INFO] metron-pcap-backend ................................ SKIPPED
[INFO] metron-data-management ............................. SKIPPED
[INFO] metron-api ......................................... SKIPPED
[INFO] metron-management .................................. SKIPPED
[INFO] elasticsearch-shaded ............................... SUCCESS [ 46.177 s]
[INFO] metron-elasticsearch ............................... SKIPPED
[INFO] metron-deployment .................................. SUCCESS [  0.278 s]
[INFO] Metron Ambari Management Pack ...................... SUCCESS [ 34.735 s]
[INFO] metron-contrib ..................................... SUCCESS [  0.278 s]
[INFO] metron-docker ...................................... SUCCESS [ 34.032 s]
[INFO] metron-interface ................................... SUCCESS [ 13.701 s]
[INFO] metron-config ...................................... FAILURE [03:54 min]
[INFO] metron-alerts ...................................... SUCCESS [03:25 min]
[INFO] metron-rest-client ................................. SUCCESS [  1.450 s]
[INFO] metron-rest ........................................ SKIPPED
[INFO] site-book .......................................... SUCCESS [ 12.466 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:33 min (Wall Clock)
[INFO] Finished at: 2018-01-09T08:47:39-07:00
[INFO] Final Memory: 224M/3049M
[INFO] ------------------------------------------------------------------------
Downloading: 
https://raw.github.com/benelog/multiline/master/maven-repository/org/mortbay/jetty/servlet-api-2.5/6.1.14/servlet-api-2.5-6.1.14.pom
[ERROR] Failed to execute goal 
com.github.eirslett:frontend-maven-plugin:1.3:npm (ng build) on project 
metron-config: Failed to run task: 'npm run build' failed. (error code 1) -> 
[Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :metron-config
0 info it worked if it ends with ok
1 verbose cli [ '/home/admin/metron/metron-interface/metron-config/node/node',
1 verbose cli   '/home/admin/metron/metron-interface/metron-config/node/node_modules/npm/bin/npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 silly lifecycle [email protected]~prebuild: no script for prebuild, continuing
7 info lifecycle [email protected]~build: [email protected]
8 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~build: PATH: /home/admin/metron/metron-interface/metron-config/node/node_modules/npm/bin/node-gyp-bin:/home/admin/metron/metron-interface/metron-config/node_modules/.bin:/home/admin/metron/metron-interface/metron-config/node:/home/admin/metron/metron-interface/metron-config/node:/opt/apache-maven-3.3.9/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/admin/.local/bin:/home/admin/bin:/opt/node-v8.9.4-linux-x64/bin:
10 verbose lifecycle [email protected]~build: CWD: /home/admin/metron/metron-interface/metron-config
11 silly lifecycle [email protected]~build: Args: [ '-c', './node_modules/angular-cli/bin/ng build -prod' ]
12 silly lifecycle [email protected]~build: Returned: code: 1  signal: null
13 info lifecycle [email protected]~build: Failed to exec build script
14 verbose stack Error: [email protected] build: `./node_modules/angular-cli/bin/ng build -prod`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/home/admin/metron/metron-interface/metron-config/node/node_modules/npm/lib/utils/lifecycle.js:245:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/home/admin/metron/metron-interface/metron-config/node/node_modules/npm/lib/utils/spawn.js:24:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:850:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/admin/metron/metron-interface/metron-config
17 error Linux 3.10.0-693.11.6.el7.x86_64
18 error argv "/home/admin/metron/metron-interface/metron-config/node/node" "/home/admin/metron/metron-interface/metron-config/node/node_modules/npm/bin/npm-cli.js" "run" "build"
19 error node v6.2.0
20 error npm  v3.8.9
21 error code ELIFECYCLE
22 error [email protected] build: `./node_modules/angular-cli/bin/ng build -prod`
22 error Exit status 1
23 error Failed at the [email protected] build script './node_modules/angular-cli/bin/ng build -prod'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the metron-management-ui package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     ./node_modules/angular-cli/bin/ng build -prod
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs metron-management-ui
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls metron-management-ui
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Reply via email to