Alternatively you can just create the storage plugin json file, delete the old 
one and post the new one using the REST API.

See
https://drill.apache.org/docs/rest-api/#storage 
<https://drill.apache.org/docs/rest-api/#storage>



> On May 13, 2016, at 10:05 AM, Vince Gonzalez <vince.gonza...@gmail.com> wrote:
> 
> I have used a pipeline involving jq and curl to modify storage plugins via
> the rest interface.  The one below adds a workspace to the dfs plugin:
> 
> curl -s localhost:8047/storage.json | jq '.[] | select(.name == "dfs")
> | .config.workspaces |= . + { "nypdmvc": { "location":
> "/Users/vince/data/nyc/nypdmvc", "writable": true,
> "defaultInputFormat": null}  }' | curl -s -X POST -H "Content-Type:
> application/json" -d @- http://localhost:8047/storage/dfs.json 
> <http://localhost:8047/storage/dfs.json>
> 
> Note that this won't work as is if you have authentication enabled.
> 
> On Friday, May 13, 2016, Odin Guillermo Caudillo Gallegos <
> odin.guille...@gmail.com <mailto:odin.guille...@gmail.com>> wrote:
> 
>> I have the restriction to not configure it via web console, so is there a
>> way to configure them on the terminal?
>> Cause in embed mode, i only create the files on the /tmp/ directory via
>> terminal, also on the drill-override.conf file i use another path for the
>> plugins (with sys.store.provider.local.path)
>> 
>> Thanks.
>> 
>> 2016-05-13 11:33 GMT-05:00 Andries Engelbrecht <aengelbre...@maprtech.com 
>> <mailto:aengelbre...@maprtech.com>
>> <javascript:;>>:
>> 
>>> You should start drill in distributed mode first and then configure the
>>> storage plugins.
>>> If you configure the storage plugins in embedded mode the information is
>>> stored in the tmp space instead of registered with ZK for the cluster to
>>> use.
>>> 
>>> --Andries
>>> 
>>>> On May 13, 2016, at 9:08 AM, Odin Guillermo Caudillo Gallegos <
>>> odin.guille...@gmail.com <javascript:;>> wrote:
>>>> 
>>>> The plugins are working fine in the embbed mode, but when i start the
>>>> drillbit on each server and connect via drill-conf i don't see them.
>>>> Do i need to configure another parameter apart from the zookeeper
>> servers
>>>> in the drill-override.conf file?
>>>> 
>>>> 2016-05-13 11:01 GMT-05:00 Andries Engelbrecht <
>>> aengelbre...@maprtech.com <javascript:;>>:
>>>> 
>>>>> If Drill was correctly installed in distributed mode the storage
>> plugin
>>>>> and workspaces will be used by the Drill cluster.
>>>>> 
>>>>> Make sure the plugin and workspace was correctly configured and
>>> accepted.
>>>>> 
>>>>> Are you using the WebUI or REST to configure the storage plugins?
>>>>> 
>>>>> --Andries
>>>>> 
>>>>>> On May 13, 2016, at 8:48 AM, Odin Guillermo Caudillo Gallegos <
>>>>> odin.guille...@gmail.com <javascript:;>> wrote:
>>>>>> 
>>>>>> Is there a way to configure workspaces on a distributed installation?
>>>>>> Cause i only see the default plugin configuration but not the one
>> that
>>> i
>>>>>> created.
>>>>>> 
>>>>>> Thanks
>>>>> 
>>>>> 
>>> 
>>> 
>> 
> 
> 
> --

Reply via email to