Hello!

I think you can use sqlline.sh directly in the shell for distributed
queries either way: with Java and with XML.

Regards,
-- 
Ilya Kasnacheev


пн, 8 июл. 2019 г. в 04:27, shicheng31...@gmail.com <shicheng31...@gmail.com
>:

> You mean that I need to configure Ignite with Java code (call
> Ignition.start()) so that I can  use sqlline.sh directly in the shell for
> distributed queries?
>
> ------------------------------
> shicheng31...@gmail.com
>
>
> *From:* Ilya Kasnacheev <ilya.kasnach...@gmail.com>
> *Date:* 2019-07-05 19:51
> *To:* user <user@ignite.apache.org>
> *Subject:* Re: Re: Distributed Cluster Deployment
> Hello!
>
> The easiest way to configure Ignite without external configuration is just
> issuing Ignition.start() in your Java code.
>
> It uses Multicast IP finder by default, so if you start several nodes in a
> single subnet they should join as a single distributed cluster.
>
> Then you can use sqlline to connect to any node.
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> пт, 5 июл. 2019 г. в 03:44, shicheng31...@gmail.com <
> shicheng31...@gmail.com>:
>
>> Maybe I didn't describe it clearly. How to configure Ignite, you can
>> achieve distributed without external configuration, and then directly use
>> the sqline command to connect, for distributed query operations. Should it
>> be through the configuration file below the installation file? I see that
>> the configuration file that comes with it seems to be the format that
>> Spring requires. Is there any relation  between the two?
>>
>> ------------------------------
>> shicheng31...@gmail.com
>>
>>
>> *From:* Vladimir Pligin <vova199...@yandex.ru>
>> *Date:* 2019-07-04 20:27
>> *To:* user <user@ignite.apache.org>
>> *Subject:* Re: Distributed Cluster Deployment
>> Hi,
>>
>> Spring here is just a convenient way of configuration building.
>> Ignite is not tightly bound to it. You're able to construct everything
>> programmatically.
>> For example here https://apacheignite.readme.io/docs/tcpip-discovery you
>> can
>> switch example from "XML" to "Java".
>> And Spring xml configuration
>> <bean class="org.apache.ignite.configuration.IgniteConfiguration">
>>   ...
>>   <property name="discoverySpi">
>>     <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>>       <property name="ipFinder">
>>         <bean
>>
>> class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
>>           <property name="multicastGroup" value="228.10.10.157"/>
>>         </bean>
>>       </property>
>>     </bean>
>>   </property>
>> </bean>
>>
>> turns into
>>
>> TcpDiscoverySpi spi = new TcpDiscoverySpi();
>> TcpDiscoveryMulticastIpFinder ipFinder = new
>> TcpDiscoveryMulticastIpFinder();
>> ipFinder.setMulticastGroup("228.10.10.157");
>> spi.setIpFinder(ipFinder);
>> IgniteConfiguration cfg = new IgniteConfiguration();
>> cfg.setDiscoverySpi(spi);
>> Ignition.start(cfg);
>>
>> Does it make sense?
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
>>

Reply via email to