Re:Re: Requested array size exceeds VM limit

2017-07-12 Thread Lucky
Actually,my setting is : Xms =40G,Xmx =120G.
but it still got the wrong message.
Are there another parameters about H2 console?


Thanks.
Lucky


At 2017-07-12 16:53:56, "Humphrey"  wrote:
>You can modify the ignite.sh script and increase the Xms and values
>
>
>
>
>
>--
>View this message in context: 
>http://apache-ignite-users.70518.x6.nabble.com/Requested-array-size-exceeds-VM-limit-tp14708p14710.html
>Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Provide persistence settings inline for Cassandra KeyValuePersistenceSettings?

2017-07-12 Thread Roger Fischer (CW)
Hello,

all the examples for the Cassandra integration load the persistence settings 
from a resource. Here is one such example:





Is it possible to define the persistence settings inline, ie. in the same file 
as the cache configuration?

I tried the following:





  






But that resulted in the following error:

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML 
application context 
[springUrl=file:/home/ignite/ignite/test-ignite-cassandra/config-server-cassandra.xml,
 err=Line 48 in XML document from URL 
[file:/home/ignite/ignite/test-ignite-cassandra/config-server-cassandra.xml] is 
invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 48; 
columnNumber: 56; cvc-complex-type.2.4.a: Invalid content was found starting 
with element 'persistence'. One of 
'{"http://www.springframework.org/schema/beans":description, 
"http://www.springframework.org/schema/beans":meta, 
"http://www.springframework.org/schema/beans":constructor-arg, 
"http://www.springframework.org/schema/beans":property, 
"http://www.springframework.org/schema/beans":qualifier, 
"http://www.springframework.org/schema/beans":lookup-method, 
"http://www.springframework.org/schema/beans":replaced-method, 
WC[##other:"http://www.springframework.org/schema/beans"]}' is expected.]

I understand that in most cases it makes more sense to use a resource. But for 
some basic ad-hoc testing it would be convenient to define everything in the 
same file.

Roger




Fields order in binary object.

2017-07-12 Thread adzyuba
Hello. 
I have some problem with two same BinaryObject. If i reorder to set fields
in BinaryObject with same fields names and fields values, then i get two
different BinaryObject with different hash codes. So if i use BinaryObject
as a key for cache this make some trouble to extract value from cache by
this key.
There is the test example: 
https://github.com/bk20186/test.git   

Sincerely, Andrew Dzyuba.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Fields-order-in-binary-object-tp14723.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Cache refresh because of hibernate versioning mechanism.

2017-07-12 Thread cszczotka
Hi,
I see such solution. Passing to the store reference to cache (loadCache
method has second parameter varargs so I can pass cache here) and in write
method call replace on cache:

public void write(Cache.Entry
entry) throws CacheWriterException {
MyEntity myEntity = hibernateDao.saveOrUpdate(entry.getValue());
   cache.loadAll(Sets.newHashSet(myEntity.getId()), true, null);
}
Regards,
Czeslaw



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Cache-refresh-because-of-hibernate-versioning-mechanism-tp14394p14722.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Poor cross cache join SQL performance (v2.0.0)

2017-07-12 Thread afedotov
Hi,

As well as for regular DB, each group index relates only to one
entity/table, so there is no such thing like cross cache group index.

Kind regards,
Alex.

On Wed, Jul 12, 2017 at 3:22 PM, iostream [via Apache Ignite Users] <
ml+s70518n14719...@n6.nabble.com> wrote:

> Hi,
>
> Apologies for the delayed response.
>
> Implementing appropriate group indexes solved the problem for me.
>
> One question - can I create a group index across caches? Or group index
> can be created only within one cache?
>
> Thanks! :)
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ignite-users.70518.x6.nabble.com/Poor-cross-cache-join-SQL-
> performance-v2-0-0-tp14373p14719.html
> To start a new topic under Apache Ignite Users, email
> ml+s70518n1...@n6.nabble.com
> To unsubscribe from Apache Ignite Users, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Poor-cross-cache-join-SQL-performance-v2-0-0-tp14373p14721.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Getting Started with Apache® Ignite™ (Part 6): Service Grid

2017-07-12 Thread Dieds
"Getting Started with Apache® Ignite™ (Part 6)." The Apache Ignite Service
Grid is the focus of the latest installment in this blog series by Akmal B.
Chaudhri. http://bit.ly/2uijZ4F

 



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Getting-Started-with-Apache-Ignite-Part-6-Service-Grid-tp14720.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Cache refresh because of hibernate versioning mechanism.

2017-07-12 Thread cszczotka
Hi,
Refer to your advice about implementing CacheInterceptor and onAfterPut
method. It does not help me. It is the same issue - operating on entity copy
because:

in method onAfterPut(Cache.Entry entry)  Cache.Entry implementation it
is CacheLazyEntry and if I call entry.getValue I will get entity copy so
setting version on entity copy does not propagated this change to cache.


My question is still open: how to integrate ignite database store handled by
hibernate dao -s with versioning mechanism ?




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Cache-refresh-because-of-hibernate-versioning-mechanism-tp14394p14718.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Poor cross cache join SQL performance (v2.0.0)

2017-07-12 Thread iostream
Hi,

Apologies for the delayed response.

Implementing appropriate group indexes solved the problem for me.

One question - can I create a group index across caches? Or group index can
be created only within one cache?

Thanks! :)



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Poor-cross-cache-join-SQL-performance-v2-0-0-tp14373p14719.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: SpringBoot integration with Ignite

2017-07-12 Thread afedotov
Hi,

Please check
http://apache-ignite-users.70518.x6.nabble.com/SpringBoot-Integration-td11659.html
and
http://apache-ignite-users.70518.x6.nabble.com/Using-AbstractAnnotationConfigDispatcherServletInitializer-td14592.html#a14600


Kind regards,
Alex.

On Wed, Jul 12, 2017 at 12:53 PM, vishal jain [via Apache Ignite Users] <
ml+s70518n14715...@n6.nabble.com> wrote:

> Hi,
>
>
> How can we integrate apache ignite with SpringBoot application?
> I want to use ignite as the distribute cache for our springBoot
> application, any pointers/suggestions will help.
>
> Thanks,
> VJ
>
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ignite-users.70518.x6.nabble.com/
> SpringBoot-integration-with-Ignite-tp14715.html
> To start a new topic under Apache Ignite Users, email
> ml+s70518n1...@n6.nabble.com
> To unsubscribe from Apache Ignite Users, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/SpringBoot-integration-with-Ignite-tp14715p14717.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Queue read/write Store

2017-07-12 Thread luqmanahmad
Matt, 

Someone already raised this issue before and there was some discussion on
the @dev as well. See [1] and [2] for more information.

[1] 
http://apache-ignite-users.70518.x6.nabble.com/Stupide-question-about-Queue-td2557.html

  

[2] 
http://apache-ignite-developers.2346864.n4.nabble.com/Persistence-in-queues-and-sets-td6583.html

  


Luqman



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Queue-read-write-Store-tp14682p14716.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


SpringBoot integration with Ignite

2017-07-12 Thread VJ
Hi,


How can we integrate apache ignite with SpringBoot application?
I want to use ignite as the distribute cache for our springBoot
application, any pointers/suggestions will help.

Thanks,
VJ


Re: Network Segmentation

2017-07-12 Thread luqmanahmad
Hi Yitzhak,

Please see [1] for more information.

[1] 
http://apache-ignite-users.70518.x6.nabble.com/Two-Ignite-Clusters-formed-after-network-disturbance-td3377.html#a3605

  

Thanks,
Luqman



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Network-Segmentation-tp14712p14714.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Requested array size exceeds VM limit

2017-07-12 Thread Andrey Mashenkov
Hi,

Try to use LIMIT and OFFSET conditions.
But, these conditions requires data to be sorted.
Without sorting rows order can differed from query to query.

On Wed, Jul 12, 2017 at 11:53 AM, Humphrey  wrote:

> You can modify the ignite.sh script and increase the Xms and Xmx values
>
>
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Requested-array-size-exceeds-VM-limit-
> tp14708p14710.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Best regards,
Andrey V. Mashenkov


Network Segmentation

2017-07-12 Thread Yitzhak Molko
We are running Ignite 1.7 on 20+ servers and using as distributed cache
store.
Caches are partitioned without backup (cacheMode=PARTITIONED, backups=0).

>From time to time we are getting network segmentation, so servers are
getting stopped as per default segmentation policy.

In our case we would like to be able reconnect to cluster instead of
stopping server: if we have cache entries with same key on different
segments we can use any cache entry or even drop it.

Can changing properties like SegmentationResolveAttempts
or SegmentCheckFrequency can help?
Is it possible to implement custom segmentation policy that will allow
reconnect to cluster?
And if it is possible can you provide some documentation or direction how
to do this.

Thank you.

-- 

Yitzhak Molko


Re: Requested array size exceeds VM limit

2017-07-12 Thread Humphrey
You can modify the ignite.sh script and increase the Xms and Xmx values





--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Requested-array-size-exceeds-VM-limit-tp14708p14710.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re:How to start up H2 Console

2017-07-12 Thread Lucky
OK,I understand.
Now is still do not support remote connection, just local.
Do it will be supported in the future?


Thanks .
Lucky









At 2017-07-12 15:51:46, "Humphrey"  wrote:
>I didn't get that error when I tried it out on my computer. It started Ignite
>and opened the H2 web interface in my browser. It's suppose to open local on
>your computer so it's not possible to have remote connections.
>
>See also:
>http://apache-ignite-users.70518.x6.nabble.com/Starting-H2-Debug-Console-On-Remote-Server-td6063.html
>
>Humphrey
>
>
>
>
>--
>View this message in context: 
>http://apache-ignite-users.70518.x6.nabble.com/How-to-start-up-H2-Console-tp14617p14707.html
>Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Requested array size exceeds VM limit

2017-07-12 Thread Lucky
Hi:
I have a table with 2000 records, 6 fields.

When I use "select fid from userInfo " ,It got a error,like this:
Exception in thread "H2 Console thread" java.lang.OutOfMemoryError: Requested 
array size exceeds VM limit
  
 How to increase the heap?


 Thanks


Lucky



 

How to start up H2 Console

2017-07-12 Thread Humphrey
I didn't get that error when I tried it out on my computer. It started Ignite
and opened the H2 web interface in my browser. It's suppose to open local on
your computer so it's not possible to have remote connections.

See also:
http://apache-ignite-users.70518.x6.nabble.com/Starting-H2-Debug-Console-On-Remote-Server-td6063.html

Humphrey




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/How-to-start-up-H2-Console-tp14617p14707.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


RE: Heap Memory Limit Set

2017-07-12 Thread Gracelin Priya
Hi,

program which starts the gridgain as below ie have set -Xms3G -Xmx10GB. 

/usr/java/jdk1.8.0_121/bin/java -DIGNITE_QUIET=false -Xms3G -Xmx10G -classpath 
.:./*:/opt/GridGain/libs/*:/opt/GridGain/libs/ignite-spring/*:/opt/GridGain/libs/ignite-rest-http/*::/opt/GridGain/libs/ignite-indexing/*
 NodeStart

[18:44:42,727][INFO][main][GridDiscoveryManager] Topology snapshot [ver=1, 
servers=1, clients=0, CPUs=32, heap=8.9GB]

How is 8.9GB derived?.  Please help to understand.

Thanks,
Priya




-Original Message-
From: dkarachentsev [mailto:dkarachent...@gridgain.com] 
Sent: 10 July 2017 21:25
To: user@ignite.apache.org
Subject: Re: Heap Memory Limit Set

Hi,

This value is just a sum of available heaps on JVMs on which nodes are running. 
You may limit each node with -Xmx10g or -Xmx5g for example.

Thanks!
-Dmitry



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Heap-Memory-Limit-Set-tp14560p14597.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re:Re: Re:Re: How to start up H2 Console

2017-07-12 Thread Lucky
Thank you for your reply.


I did as you suggested in the mail.


but on accessing the url I get an error "Sorry, remote connections 
('webAllowOthers') are disabled on this server.". 


How do I pass "webAllowOthers" parameter to h2 database through ignite? 

Thanks 


Lucky








At 2017-07-12 07:34:24, "Humphrey"  wrote:
>Hi Lucky,
>
>You can start the console by first executing the following command:
>
>And then in the same console
>
>
>It will open automatically a browser for you.
>
>Cheers,
>
>Humphrey
>
>
>
>--
>View this message in context: 
>http://apache-ignite-users.70518.x6.nabble.com/How-to-start-up-H2-Console-tp14617p14642.html
>Sent from the Apache Ignite Users mailing list archive at Nabble.com.