metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ottobackwards <...@git.apache.org>
Subject [GitHub] incubator-metron issue #432: METRON-682: Unify and Improve the Flat File Loa...
Date Fri, 03 Feb 2017 22:09:45 GMT
Github user ottobackwards commented on the issue:

    https://github.com/apache/incubator-metron/pull/432
  
    [vagrant@node1 tmp]$ /usr/metron/0.3.0/bin/flatfile_loader.sh -i http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
-t enrichment -c t -e ./extractor.json -p 5 -b 128
    Exception in thread "main" org.codehaus.jackson.map.JsonMappingException: Can not instantiate
value of type [map type; class java.util.LinkedHashMap, [simple type, class java.lang.String]
-> [simple type, class java.lang.Object]] from JSON String; no single-String constructor/factory
method (through reference chain: org.apache.metron.dataloads.extractor.ExtractorHandler["config"])
    	at org.codehaus.jackson.map.deser.std.StdValueInstantiator._createFromStringFallbacks(StdValueInstantiator.java:379)
    	at org.codehaus.jackson.map.deser.std.StdValueInstantiator.createFromString(StdValueInstantiator.java:268)
    	at org.codehaus.jackson.map.deser.std.MapDeserializer.deserialize(MapDeserializer.java:244)
    	at org.codehaus.jackson.map.deser.std.MapDeserializer.deserialize(MapDeserializer.java:33)
    	at org.codehaus.jackson.map.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:299)
    	at org.codehaus.jackson.map.deser.SettableBeanProperty$MethodProperty.deserializeAndSet(SettableBeanProperty.java:414)
    	at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:697)
    	at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
    	at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732)
    	at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1909)
    	at org.apache.metron.dataloads.extractor.ExtractorHandler.load(ExtractorHandler.java:70)
    	at org.apache.metron.dataloads.extractor.ExtractorHandler.load(ExtractorHandler.java:75)
    	at org.apache.metron.dataloads.extractor.ExtractorHandler.load(ExtractorHandler.java:78)
    	at org.apache.metron.dataloads.nonbulk.flatfile.SimpleEnrichmentFlatFileLoader.main(SimpleEnrichmentFlatFileLoader.java:49)
    	at org.apache.metron.dataloads.nonbulk.flatfile.SimpleEnrichmentFlatFileLoader.main(SimpleEnrichmentFlatFileLoader.java:40)
    	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.apache.hadoop.util.RunJar.run(RunJar.java:233)
    	at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
    [vagrant@node1 tmp]$ 
    
    with extractor.json of:
    
    
    ```
    {
      "config" :
        "columns" : {
          "domain" : 1,
          "rank" : 0
          }
        ,"indicator_column" : "domain"
        ,"type" : "alexa"
        ,"separator" : ","
        },
      "extractor" : "CSV"
    }               
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message