You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by himanshu <hi...@gmail.com> on 2019/04/04 15:52:42 UTC

loading config from command line and update cache config from code

Hi,

I wanted to check if I can load initial config from a config file like

Ignition.start("file") then add more cache config from program?

I did not see any constructor for IgniteConfiguration which takes a file as
paramer.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: loading config from command line and update cache config from code

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

You can use Ignition.loadSpringBean() and then stuff this bean with extra
stuff :)

Regards,
-- 
Ilya Kasnacheev


чт, 4 апр. 2019 г. в 18:52, himanshu <hi...@gmail.com>:

> Hi,
>
> I wanted to check if I can load initial config from a config file like
>
> Ignition.start("file") then add more cache config from program?
>
> I did not see any constructor for IgniteConfiguration which takes a file as
> paramer.
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: loading config from command line and update cache config from code

Posted by Denis Magda <dm...@apache.org>.
Hi,

Yes, you can start the cluster with minimal configuration to ensure the
nodes can auto-discover each other and after that create caches, tables on
runtime. IgniteConfiguration accepts an absolute or relative path to your
configuration.

-
Denis


On Thu, Apr 4, 2019 at 8:52 AM himanshu <hi...@gmail.com> wrote:

> Hi,
>
> I wanted to check if I can load initial config from a config file like
>
> Ignition.start("file") then add more cache config from program?
>
> I did not see any constructor for IgniteConfiguration which takes a file as
> paramer.
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>