You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Paul Rogers (JIRA)" <ji...@apache.org> on 2017/06/28 23:36:00 UTC

[jira] [Created] (DRILL-5618) Allow non-core storage plugins to define an initial configuration

Paul Rogers created DRILL-5618:
----------------------------------

             Summary: Allow non-core storage plugins to define an initial configuration
                 Key: DRILL-5618
                 URL: https://issues.apache.org/jira/browse/DRILL-5618
             Project: Apache Drill
          Issue Type: Improvement
          Components: Storage - Other
    Affects Versions: 1.8.0
            Reporter: Paul Rogers
            Priority: Minor


Consider the storage plugin defined in DRILL-5432 for reading pcap files. The plugin would like to define an out-of-the-box plugin configuration.

Drill's current mechanism for providing initial plugin definitions is the {{bootstrap-storage-plugin.json}} file. However, only one such file can exist in the class path.

To add an initial configuration for a custom extension, the extension writer must modify the Drill core file. The {{bootstrap-storage-plugin.json}} file uses Jackson serialization. Because the format plugin is external to the core, serialization cannot find the required classes and Drill suffers from a {{JsonMappingException}}.

A solution is to allow each plugin to define a {{bootstrap-storage-plugin.json}} file, and for the bootstrap mechanism to load the file associated with each plugin, whether that plugin is part of the Drill core, a "contrib" plugin, or a user-defined plugin.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)