ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Mekhanikov <dmekhani...@gmail.com>
Subject Re: How to configure a cluster as a persistent, replicated SQL database
Date Thu, 01 Mar 2018 09:19:50 GMT
Jose,

Currently you have to specify a cache name in the connection URL, that will
be used to run SQL queries on.
I'm not sure where it's a bug or a feature, but here is the ticket for
fixing this: https://issues.apache.org/jira/browse/IGNITE-6481
For now you have to specify a cache name, that you want to run your queries
on. Like this:
*jdbc:ignite:cfg://cache=<cache_name>@<config_url>*

It can be any cache, started in advance. You can put configuration of this
cache to your XML configuration and use its name in the connection string.

Denis

ср, 28 февр. 2018 г. в 20:26, joseheitor <jose@heitorprojects.com>:

> Hey Denis,
>
> I think that we are making progress...
>
> I am now connecting to the database successfully, but when I submit a
> query,
> I get the following error:
>
> <
> http://apache-ignite-users.70518.x6.nabble.com/file/t1652/Screenshot_20180228_190729.png
> >
>
> My config contains the following:
>
> /...
>     <bean class="org.apache.ignite.configuration.IgniteConfiguration">
>
>
>     <property name="clientMode" value="true"/>
>
>     <property name="discoverySpi">
>         <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>         <property name="ipFinder">
>             <bean
>
> class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
>             <property name="addresses">
>                 <list>
>                 <value>192.168.1.220:47500..47600</value>
>                 <value>192.168.1.230:47500..47600</value>
>                 <value>192.168.1.221:47500..47600</value>
>                 <value>192.168.1.231:47500..47600</value>
>                 </list>
>             </property>
>             </bean>
>         </property>
>         </bean>
>     </property>
>     </bean>
> ...
> /
> What am I doing wrong...?
>
> Jose
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Mime
View raw message