Thank you Justin,

We build successfully using your guidance. We added empty method to
UserAdapter:
> import java.util.Map;
> ...
> @Override
> public void updateAdapter(Map<String, Object> config) {
> }
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<String,Object>) 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 <dima.koval...@sstech.us>
> 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
>>

Reply via email to