Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Metron 0.4.1: Build Metron with HDP 2.5 failure

Metron 0.4.1: Build Metron with HDP 2.5 failure

New Contributor

Hello, thanks in advance for the helping

I'm following this guide to install Metron and after doing this command

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

I receive in the end part of the list of text the following errors:

[WARNING] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2 (node_modules/chokidar/node_modules/fsevents):
[WARNING] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.0: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
[WARNING] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents):
[WARNING] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.0: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
[WARNING] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/karma/node_modules/chokidar/node_modules/fsevents):
[WARNING] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.0: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
Downloaded: https://repo.maven.apache.org/maven2/com/squareup/okio/okio/1.4.0/okio-1.4.0.jar (64 KB at 140.9 KB/sec)
[ERROR] npm ERR! Linux 3.10.0-693.21.1.el7.x86_64
[ERROR] npm ERR! argv "/root/metron/metron-interface/metron-alerts/node/node" "/root/metron/metron-interface/metron-alerts/node/node_modules/npm/bin/npm-cli.js" "install"
[ERROR] npm ERR! node v7.10.0/344 KB   168/177 KB
[ERROR] npm ERR! npm  v4.2.08/344 KB   176/177 KB
[ERROR] npm ERR! code ELIFECYCLE4 KB   177/177 KB
[ERROR] npm ERR! errno 1  112/344 KB   177/177 KB
[ERROR]
[ERROR] npm ERR! node-sass@4.8.3 install: `node scripts/install.js`
[ERROR] npm ERR! Exit status 1344 KB   177/177 KB
[ERROR] npm ERR! 312 KB   128/344 KB   177/177 KB
[ERROR] npm ERR! Failed at the node-sass@4.8.3 install script 'node scripts/install.js'.
[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 node-sass package,
[ERROR] npm ERR! not with npm itself.  177/177 KB
[ERROR] npm ERR! Tell the author that this fails on your system:
[ERROR] npm ERR!     node scripts/install.js
[ERROR] npm ERR! You can get information on how to open an issue for this project with:
[ERROR] npm ERR!     npm bugs node-sass177/177 KB
[ERROR] npm ERR! Or if that isn't available, you can get their info via:
[ERROR] npm ERR!     npm owner ls node-sass
[ERROR] npm ERR! There is likely additional logging output above.
Downloaded: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.1.2/httpcore-4.1.2.jar (177 KB at 371.8 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/squareup/okhttp/okhttp/2.4.0/okhttp-2.4.0.jar (312 KB at 649.2 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/net/byteseek/byteseek/2.0.3/byteseek-2.0.3.jar (329 KB at 682.8 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.1.2/httpclient-4.1.2.jar (344 KB at 689.4 KB/sec)
Downloaded: http://repo.hortonworks.com/content/repositories/releases/org/apache/hadoop/hadoop-hdfs/2.7.3.2.5.0.... (0 B at 0.0 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ metron-profiler-common ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-profiler-common ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-profiler-common ---
[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/root/metron/metron-analytics/metron-profiler-common/target/jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ metron-profiler-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/metron/metron-analytics/metron-profiler-common/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ metron-profiler-common ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 17 source files to /root/metron/metron-analytics/metron-profiler-common/target/classes
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ metron-pcap ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-pcap ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-pcap ---
[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/root/metron/metron-platform/metron-pcap/target/jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ metron-pcap ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/metron/metron-platform/metron-pcap/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ metron-pcap ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 23 source files to /root/metron/metron-platform/metron-pcap/target/classes
/root/metron/metron-analytics/metron-profiler-common/src/main/java/org/apache/metron/profiler/DefaultProfileBuilder.java:129: warning: [unchecked] unchecked method invocation: method assign in class DefaultProfileBuilder is applied to given types
        assign(definition.getInit(), message, "init");
              ^
  required: Map<String,String>,Map<String,Object>,String
  found: Map<String,String>,JSONObject,String
/root/metron/metron-analytics/metron-profiler-common/src/main/java/org/apache/metron/profiler/DefaultProfileBuilder.java:129: warning: [unchecked] unchecked conversion
        assign(definition.getInit(), message, "init");
                                     ^
  required: Map<String,Object>
  found:    JSONObject
/root/metron/metron-analytics/metron-profiler-common/src/main/java/org/apache/metron/profiler/DefaultProfileBuilder.java:133: warning: [unchecked] unchecked method invocation: method assign in class DefaultProfileBuilder is applied to given types
      assign(definition.getUpdate(), message, "update");
            ^
  required: Map<String,String>,Map<String,Object>,String
  found: Map<String,String>,JSONObject,String
/root/metron/metron-analytics/metron-profiler-common/src/main/java/org/apache/metron/profiler/DefaultProfileBuilder.java:133: warning: [unchecked] unchecked conversion
      assign(definition.getUpdate(), message, "update");
                                     ^
  required: Map<String,Object>
  found:    JSONObject
4 warnings
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ metron-profiler-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ metron-profiler-common ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to /root/metron/metron-analytics/metron-profiler-common/target/test-classes
warning: No SupportedSourceVersion annotation found on org.adrianwalker.multilinestring.MultilineProcessor, returning RELEASE_6.
warning: Supported source version 'RELEASE_6' from annotation processor 'org.adrianwalker.multilinestring.MultilineProcessor' less than -source '1.8'
[ERROR]
[ERROR] npm ERR! Please include the following file with any support request:
[ERROR] npm ERR!     /root/.npm/_logs/2018-04-23T14_28_28_706Z-debug.log
/root/metron/metron-platform/metron-pcap/src/main/java/org/apache/metron/pcap/pattern/ByteArrayMatchingUtil.java:41: warning: [MissingOverride] load implements method in CacheLoader; expected @Override
                    public Searcher<SequenceMatcher> load(String pattern) throws Exception {
                                                     ^
    (see http://errorprone.info/bugpattern/MissingOverride)
  Did you mean '@Override public Searcher<SequenceMatcher> load(String pattern) throws Exception {'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:92: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put(measurement.getProfileName().getBytes())
                                                      ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put(measurement.getProfileName().getBytes(UTF_8))' or '.put(measurement.getProfileName().getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:93: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put(measurement.getEntity().getBytes())
                                                 ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put(measurement.getEntity().getBytes(UTF_8))' or '.put(measurement.getEntity().getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:94: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put("group1".getBytes())
                                  ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put("group1".getBytes(UTF_8))' or '.put("group1".getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:118: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put(measurement.getProfileName().getBytes())
                                                      ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put(measurement.getProfileName().getBytes(UTF_8))' or '.put(measurement.getProfileName().getBytes(Charset.defaultCharset()))'?
/root/metron/metron-platform/metron-pcap/src/main/java/org/apache/metron/pcap/writer/PcapWriter.java:40: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
    return key.getBytes();
                       ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean 'return key.getBytes(UTF_8);' or 'return key.getBytes(Charset.defaultCharset());'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:119: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put(measurement.getEntity().getBytes())
                                                 ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put(measurement.getEntity().getBytes(UTF_8))' or '.put(measurement.getEntity().getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:120: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put("group1".getBytes())
                                  ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put("group1".getBytes(UTF_8))' or '.put("group1".getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:121: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put("group2".getBytes())
                                  ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put("group2".getBytes(UTF_8))' or '.put("group2".getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:145: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put(measurement.getProfileName().getBytes())
                                                      ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put(measurement.getProfileName().getBytes(UTF_8))' or '.put(measurement.getProfileName().getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:146: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put(measurement.getEntity().getBytes())
                                                 ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put(measurement.getEntity().getBytes(UTF_8))' or '.put(measurement.getEntity().getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:147: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put("200".getBytes())
                               ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put("200".getBytes(UTF_8))' or '.put("200".getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:171: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put(measurement.getProfileName().getBytes())
                                                      ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put(measurement.getProfileName().getBytes(UTF_8))' or '.put(measurement.getProfileName().getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:172: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put(measurement.getEntity().getBytes())
                                                 ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put(measurement.getEntity().getBytes(UTF_8))' or '.put(measurement.getEntity().getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:173: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put("200".getBytes())
                               ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put("200".getBytes(UTF_8))' or '.put("200".getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:174: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put("group1".getBytes())
                                  ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put("group1".getBytes(UTF_8))' or '.put("group1".getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:198: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put(measurement.getProfileName().getBytes())
                                                      ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put(measurement.getProfileName().getBytes(UTF_8))' or '.put(measurement.getProfileName().getBytes(Charset.defaultCharset()))'?
/root/metron/metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/hbase/SaltyRowKeyBuilderTest.java:199: warning: [DefaultCharset] Implicit use of the platform default charset, which can result in e.g. non-ASCII characters being silently replaced with '?' in many environments
            .put(measurement.getEntity().getBytes())
                                                 ^
    (see http://errorprone.info/bugpattern/DefaultCharset)
  Did you mean '.put(measurement.getEntity().getBytes(UTF_8))' or '.put(measurement.getEntity().getBytes(Charset.defaultCharset()))'?
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Metron ............................................. SUCCESS [  0.821 s]
[INFO] metron-stellar ..................................... SUCCESS [  0.791 s]
[INFO] stellar-common ..................................... SUCCESS [ 18.009 s]
[INFO] metron-analytics ................................... SUCCESS [  0.047 s]
[INFO] metron-maas-common ................................. SUCCESS [  0.608 s]
[INFO] metron-platform .................................... SUCCESS [  0.789 s]
18 warnings
[INFO] metron-test-utilities .............................. SUCCESS [  4.496 s]
[INFO] metron-integration-test ............................ SUCCESS [  7.261 s]
[INFO] metron-maas-service ................................ SUCCESS [  5.318 s]
[INFO] metron-common ...................................... SUCCESS [ 19.337 s]
[INFO] metron-statistics .................................. SUCCESS [ 23.795 s]
[INFO] metron-writer ...................................... SUCCESS [ 23.275 s]
[INFO] metron-storm-kafka-override ........................ SUCCESS [  1.048 s]
[INFO] metron-storm-kafka ................................. SUCCESS [  0.503 s]
[INFO] metron-hbase ....................................... SUCCESS [ 26.062 s]
[INFO] metron-profiler-common ............................. SKIPPED
[INFO] metron-profiler-client ............................. SKIPPED
[INFO] metron-profiler .................................... SKIPPED
[INFO] metron-hbase-client ................................ SUCCESS [ 14.974 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 [ 11.372 s]
[INFO] metron-elasticsearch ............................... SKIPPED
[INFO] metron-deployment .................................. SUCCESS [  0.040 s]
[INFO] Metron Ambari Management Pack ...................... SUCCESS [  3.232 s]
[INFO] metron-contrib ..................................... SUCCESS [  0.039 s]
[INFO] metron-docker ...................................... SUCCESS [  1.431 s]
[INFO] metron-interface ................................... SUCCESS [  0.039 s]
[INFO] metron-config ...................................... SKIPPED
[INFO] metron-alerts ...................................... FAILURE [01:21 min]
[INFO] metron-rest-client ................................. SUCCESS [  0.941 s]
[INFO] metron-rest ........................................ SKIPPED
[INFO] site-book .......................................... SUCCESS [  1.348 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:23 min (Wall Clock)
[INFO] Finished at: 2018-04-23T14:28:29+00:00
[INFO]
[INFO] --- maven-surefire-plugin:2.18:test (default-test) @ metron-profiler-common ---
[INFO] Final Memory: 138M/3096M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:npm (npm install) on project metron-alerts: Failed to run task: 'npm install' 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-alerts
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-surefire-plugin:2.18:test (unit-tests) @ metron-profiler-common ---
Don't have an account?
Coming from Hortonworks? Activate your account here