Re: mvn building errors with 0.3.1
Thank you Justin, We build successfully using your guidance. We added empty method to UserAdapter: > import java.util.Map; > ... > @Override > public void updateAdapter(Mapconfig) { > } And now it builds just fine. - Dima On 05/16/2017 12:23 AM, Justin Leet wrote: > That's actually not the error you have, looking through the logs. For > context, that's just a warning resulting from our use of a JSON library > that doesn't use typed Maps under the hood. > > Looking through your log, it looks the root error is this: > /home/redacted/sst-metron/metron-platform/metron- > enrichment/src/main/java/org/apache/metron/enrichment/ > adapters/user/UserAdapter.java:27: error: UserAdapter is not abstract and > does not override abstract method updateAdapter(Map ) in > EnrichmentAdapter > public class UserAdapter extends JdbcAdapter { > > Given that it looks like it's code for your fork, I'd need to know details, > but considering it's extending JdbcAdapter, you can probably implement it > as an empty method. I think the main nonempty one is the GeoAdapter. > Specifically, GenericEnrichmentBolt calls updateAdapter whenever the global > config changes. This essentially lets adapters subscribe to global > configuration updates and act if necessary (Geo for example can have it's > DB file updated, and that file location is stored in the global config). > > On Mon, May 15, 2017 at 2:32 PM, Dima Kovalyov > wrote: > >> Hello Metron devs, >> >> I am trying to merge Apache Metron branch Metron_0.3.1 into our Metron >> fork. I resolved few conflicts in regards to pom and travis xml files. >> When I build it, I receive following error: >> [INFO] Compiling 55 source files to >> /home/redacted/sst-metron/metron-platform/metron-enrichment/target/classes >> /home/redacted/sst-metron/metron-platform/metron- >> enrichment/src/main/java/org/apache/metron/enrichment/ >> adapters/simplehbase/SimpleHBaseAdapter.java:90: >> warning: [unchecked] unchecked call to put(K,V) as a member of the raw >> type HashMap >> enriched.put(kv.getKey().type + "." + values.getKey(), >> values.getValue()); >> ^ >> where K,V are type-variables: >> K extends Object declared in class HashMap >> V extends Object declared in class HashMap >> ... >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile >> (default-compile) on project metron-enrichment: Compilation failure -> >> [Help 1] >> >> Attached full file for check. >> >> Both repos building fine separately. >> >> Can you please advise where I can find file that causes this? >> Thank you. >> >> - Dima >>
Re: mvn building errors with 0.3.1
Kevin, I think your error is related to npm. Can you attach the full log file? On Mon, May 15, 2017 at 5:23 PM, Kevin Watersonwrote: > I am getting something similar.. > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 08:08 min > [INFO] Finished at: 2017-05-15T13:04:00+10:00 > [INFO] Final Memory: 220M/3873M > [INFO] > > [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] > > Looking back through the code I can see > [ERROR] at > /home/kevin/metron/docs/incubator-metron/metron- > interface/metron-config/node_modules/resolve/lib/async.js:24:24 > [ERROR] at FSReqWrap.oncomplete (fs.js:117:15) > [ERROR] > [ERROR] npm ERR! Linux 4.4.0-75-generic > [ERROR] npm ERR! argv > "/home/kevin/metron/docs/incubator-metron/metron- > interface/metron-config/node/node" > "/home/kevin/metron/docs/incubator-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! metron-management-ui@0.4.0 build: > `./node_modules/angular-cli/bin/ng build -prod` > [ERROR] npm ERR! Exit status 1 > [ERROR] npm ERR! > [ERROR] npm ERR! Failed at the metron-management-ui@0.4.0 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] > > > Kevin > > On Tue, May 16, 2017 at 4:32 AM, Dima Kovalyov > wrote: > > > Hello Metron devs, > > > > I am trying to merge Apache Metron branch Metron_0.3.1 into our Metron > > fork. I resolved few conflicts in regards to pom and travis xml files. > > When I build it, I receive following error: > > [INFO] Compiling 55 source files to > > /home/redacted/sst-metron/metron-platform/metron- > enrichment/target/classes > > /home/redacted/sst-metron/metron-platform/metron- > > enrichment/src/main/java/org/apache/metron/enrichment/ > > adapters/simplehbase/SimpleHBaseAdapter.java:90: > > warning: [unchecked] unchecked call to put(K,V) as a member of the raw > > type HashMap > > enriched.put(kv.getKey().type + "." + values.getKey(), > > values.getValue()); > > ^ > > where K,V are type-variables: > > K extends Object declared in class HashMap > > V extends Object declared in class HashMap > > ... > > [ERROR] Failed to execute goal > > org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile > > (default-compile) on project metron-enrichment: Compilation failure -> > > [Help 1] > > > > Attached full file for check. > > > > Both repos building fine separately. > > > > Can you please advise where I can find file that causes this? > > Thank you. > > > > - Dima > > >
Re: mvn building errors with 0.3.1
I am getting something similar.. [INFO] BUILD FAILURE [INFO] [INFO] Total time: 08:08 min [INFO] Finished at: 2017-05-15T13:04:00+10:00 [INFO] Final Memory: 220M/3873M [INFO] [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] Looking back through the code I can see [ERROR] at /home/kevin/metron/docs/incubator-metron/metron-interface/metron-config/node_modules/resolve/lib/async.js:24:24 [ERROR] at FSReqWrap.oncomplete (fs.js:117:15) [ERROR] [ERROR] npm ERR! Linux 4.4.0-75-generic [ERROR] npm ERR! argv "/home/kevin/metron/docs/incubator-metron/metron-interface/metron-config/node/node" "/home/kevin/metron/docs/incubator-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! metron-management-ui@0.4.0 build: `./node_modules/angular-cli/bin/ng build -prod` [ERROR] npm ERR! Exit status 1 [ERROR] npm ERR! [ERROR] npm ERR! Failed at the metron-management-ui@0.4.0 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] Kevin On Tue, May 16, 2017 at 4:32 AM, Dima Kovalyovwrote: > Hello Metron devs, > > I am trying to merge Apache Metron branch Metron_0.3.1 into our Metron > fork. I resolved few conflicts in regards to pom and travis xml files. > When I build it, I receive following error: > [INFO] Compiling 55 source files to > /home/redacted/sst-metron/metron-platform/metron-enrichment/target/classes > /home/redacted/sst-metron/metron-platform/metron- > enrichment/src/main/java/org/apache/metron/enrichment/ > adapters/simplehbase/SimpleHBaseAdapter.java:90: > warning: [unchecked] unchecked call to put(K,V) as a member of the raw > type HashMap > enriched.put(kv.getKey().type + "." + values.getKey(), > values.getValue()); > ^ > where K,V are type-variables: > K extends Object declared in class HashMap > V extends Object declared in class HashMap > ... > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile > (default-compile) on project metron-enrichment: Compilation failure -> > [Help 1] > > Attached full file for check. > > Both repos building fine separately. > > Can you please advise where I can find file that causes this? > Thank you. > > - Dima >