Namespace lookups

Hi,

Trying to get namespace lookups going, but I can’t figure out what I’m doing wrong.

Lookup looks like this:

{

   "__default": {

           "country": {

                   "type": "cachedNamespace",

                   "extractionNamespace": {

                           "type": "uri",

                           "uri": "file:///data/druid/lookups/username-country.json",

                           "namespaceParseSpec": {

                                   "format": "simpleJson"

                           },

                           "pollPeriod": "PT10M"

                   }

           }

   }

}

``

Extraction example looks like this:

“dimensions”: [{

 "type": "default",

 "dimension": "username",

 "outputName": "username"

},{

 "type": "extraction",

 "dimension": "username",

 "outputName": "country",

 "extractionFn": {

   "type": "lookup",

   "lookup": {

     "type": "namespace",

     "namespace": "country"

   },

   "replaceMissingValueWith": "Unknown"

 }

}

]

``

But no matter what I enter as namespace works, always giving the following error:

“Instantiation of [simple type, class io.druid.query.extraction.NamespacedExtractor] value failed: Namespace [country] not found (through reference chain: java.util.ArrayList[1])”

Namespace seems to be loaded correct though:

2016-09-07T13:18:59,559 INFO [NamespaceExtractionCacheManager-0] io.druid.server.lookup.namespace.URIExtractionNamespaceCacheFactory - Finished loading 123538 lines for namespace [a700b54c-2d41-4d44-aa11-9adc67f10e32]

regards,

Robin

Never mind this. Using extractionFn of type registeredLookup, it works as expected.

regards,

Robin

Ok good!