Question & Answer
Question
I am creating a custom exporter for Watson Content Analytics v3.5. When I run the exporter, I always get an OOM exception. I do not know where to increase the max heap setting.
Answer
1) The configuration settings for the Exporter are in $ES_NODE_ROOT$/master_confg/<collection_id>_config.ini. In this screenshot, the collection ID is col_sample.

Note: The Importer has a Global configuration, but exporters are on an individual collection basis
2) Search for the Exporter session in the config file. In this case, the session ID is session6. Change the value of max_heap to the desired size. Note that max_heap should not exceed hard_max_heap.

Note that these instructions apply to the configuration of you custom Exporter plugin. In the Abstract it says "custom Exporter, but this is inaccurate: the Collection already has a pre-configured Exporter; you only associate the custom plugin with it (here is the text from the URL link below).
"To integrate the custom plug-in for exporting documents, configure export options for a collection in the administration console and specify the class path of the JAR files, the class name, and the properties that you want to pass to the plug-in. If no filter class is specified, all documents are exported"
After entering these settings, they can be found in the plugin.properties for the Collection's Exporter.

Here is the file without configuration, for your reference.

Related Information
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg22004762