anandsubbu commented on issue #1506: METRON-2188 Upgrade to HBase 2.0.2
URL: https://github.com/apache/metron/pull/1506#issuecomment-530362895
 
 
   Hi @nickwallen, I ran this up on full dev. I am not able to execute the 
**Legacy HBase Adapter** step since there is a config issue apparently.
   
   Setting the enrichment config to the following 
   ```
   [Stellar]>>> yaf := SHELL_EDIT()
   {
     "enrichment" : {
       "fieldMap" : {
         "hbaseEnrichment" : [ "ip_dst_addr" ]
       },
       "fieldToTypeMap" : {
          "ip_dst_addr" : [ "user" ]
       },
       "config" : {
         "typeToColumnFamily" : {
           "user" : "t"
         }
       }
     },
     "threatIntel" : { },
     "configuration" : { }
   }
   [Stellar]>>> CONFIG_PUT("ENRICHMENT", yaf, "yaf")
   ```
   Gives the following result:
   ```
   [Stellar]>>> CONFIG_GET("ENRICHMENT", yaf)
   [!] Unable to parse: CONFIG_GET("ENRICHMENT", yaf) due to: 
java.lang.IllegalArgumentException: Invalid path string 
"/metron/topology/enrichments/{
     "enrichment" : {
       "fieldMap" : { },
       "fieldToTypeMap" : { },
       "config" : { }
     },
     "threatIntel" : {
       "fieldMap" : { },
       "fieldToTypeMap" : { },
       "config" : { },
       "triageConfig" : {
         "riskLevelRules" : [ ],
         "aggregator" : "MAX",
         "aggregationConfig" : { }
       }
     },
     "configuration" : { }
   }" caused by invalid charater @30 with relevant variables yaf={
     "enrichment" : {
       "fieldMap" : { },
       "fieldToTypeMap" : { },
       "config" : { }
     },
     "threatIntel" : {
       "fieldMap" : { },
       "fieldToTypeMap" : { },
       "config" : { },
       "triageConfig" : {
         "riskLevelRules" : [ ],
         "aggregator" : "MAX",
         "aggregationConfig" : { }
       }
     },
     "configuration" : { }
   }
   org.apache.metron.stellar.dsl.ParseException: Unable to parse: 
CONFIG_GET("ENRICHMENT", yaf) due to: java.lang.IllegalArgumentException: 
Invalid path string "/metron/topology/enrichments/{
   <snip>
   ```
   
   Any idea what is the issue with the config?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to