You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by GitBox <gi...@apache.org> on 2019/07/29 21:59:32 UTC

[GitHub] [metron] merrimanr commented on issue #1458: METRON-2177 Upgrade Profiler for HBase 2.0.2

merrimanr commented on issue #1458: METRON-2177 Upgrade Profiler for HBase 2.0.2
URL: https://github.com/apache/metron/pull/1458#issuecomment-516178822
 
 
   I ran through the testing instructions and hit some problems with the Batch Profiler.  First error I ran into was this:
   ```
   19/07/29 21:47:31 INFO BatchProfilerCLI: Loading profiles from '/usr/metron/0.7.2/config/zookeeper/profiler.json'
   Exception in thread "main" com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `org.apache.metron.common.configuration.profiler.ProfileResult` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('count')
    at [Source: (String)"{
     "profiles": [
       {
         "profile": "hello-world",
         "foreach": "'global'",
         "init":    { "count": "0" },
         "update":  { "count": "count + 1" },
         "result":  "count"
       }
     ],
     "timestampField": "timestamp"
   }
   "; line: 8, column: 18] (through reference chain: org.apache.metron.common.configuration.profiler.ProfilerConfig["profiles"]->java.util.ArrayList[0]->org.apache.metron.common.configuration.profiler.ProfileConfig["result"])
   
   ```
   The same `profiler.json` deserializes without issue in the integration tests.  I suspect it is caused by a jackson version problem.  When I update `profiler.json` to:
   ```
   {
     "profiles": [
       {
         "profile": "hello-world",
         "foreach": "'global'",
         "init":    { "count": "0" },
         "update":  { "count": "count + 1" },
         "result":  { "profile": "count" }
        }
     ],
     "timestampField": "timestamp"
   }
   ```
   I am able to get past that error but then I run into this error:
   ```
   19/07/29 21:50:42 INFO StateStoreCoordinatorRef: Registered StateStoreCoordinator endpoint
   Exception in thread "main" java.lang.IllegalAccessError: class org.apache.hadoop.hdfs.web.HftpFileSystem cannot access its superinterface org.apache.hadoop.hdfs.web.TokenAspect$TokenManagementDelegator
   	at java.lang.ClassLoader.defineClass1(Native Method)
   	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services