Re: problem of using object as key in cache configurations

2016-04-13 Thread vkulichenko
We already have such examples. For example, CacheClientBinaryPutGetExample. But I agree with Andrey that this message is very confusing. I will fix it shortly. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/problem-of-using-object-as-key-in-cache-configura

Re: Ignite Schema Import Utility - Mismatch when loading data between Date and Timestamp

2016-04-13 Thread jan.swaelens
Thank you, planning a test session next week! -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Schema-Import-Utility-Mismatch-when-loading-data-between-Date-and-Timestamp-tp3790p4152.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: problem of using object as key in cache configurations

2016-04-13 Thread kevin.zheng
I think ignite should add example codes or document to tell the beginners. I did search the forum but no results. but the error log message did give me hint on where the problem might be occurred (in my case, the object serialization part). -- View this message in context: http://apache-ignite-

Re: problem of using object as key in cache configurations

2016-04-13 Thread Andrey Kornev
Hello,A few teams at our company have independently run into this issue and ended up each wasting time figuring out how to fix it. And this is not the first time I see people asking this very same question here. I wonder if it is possible to improve diagnostics in Ignite code and log a more help

Re: Ignite Schema Import Utility - Mismatch when loading data between Date and Timestamp

2016-04-13 Thread Vasiliy Sisko
Hello. Issue with loading of Date data https://issues.apache.org/jira/browse/IGNITE-2936 is closed. It will be available at master branch or in next nightly build. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Schema-Import-Utility-Mismatch-when-loadin

Re: org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor

2016-04-13 Thread Vasiliy Sisko
Hello. Issue with error in index generation https://issues.apache.org/jira/browse/IGNITE-2856 is closed. It will be available at master branch or in next nightly build. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/org-apache-ignite-IgniteCheckedException-Fai

Re: re: querying, sql performance of apache ignite

2016-04-13 Thread vkulichenko
Read-through works for key-based access (methods like get, remove, invoke, etc.), but not for SQL queries. That's because Ignite doesn't know what data it will need for the query prior to running it. But you can preload it manually. -Val -- View this message in context: http://apache-ignite-us

Re: problem of using object as key in cache configurations

2016-04-13 Thread kevin.zheng
Finally, I found the solution: I need to use "cache.withKeepBinary()" to call the query method when the cache Key is an object type. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/problem-of-using-object-as-key-in-cache-configurations-tp4116p4146.html Sent fro

re: querying, sql performance of apache ignite

2016-04-13 Thread Zhengqingzheng
Hi Val, If " SQL queries only data that is already in memory ", what is the purpose of setReadThrough(true) in the cache configuration settings? I thought the cache would load data automatically, if no exist in the cache. Regards, Kevin -邮件原件- 发件人: vkulichenko [mailto:valentin.kuliche...

Re: multiple value key

2016-04-13 Thread vkulichenko
Hi, If you're querying value by key, it's better to use get() method instead of query. The key can be either a primitive, or any Java object. In the latter case don't forget to properly implement equals() and hashCode() methods. With queries you can do any other more complicated requests. Ignite

Re: querying, sql performance of apache ignite

2016-04-13 Thread vkulichenko
Hi, 1. This is correct, current implementation of SQL queries only data that is already in memory. This is enough for majority of use cases, because usually in-memory systems deal with operational data sets (i.e. subsets of "hot", most frequently accessed data) and can safely ignore the rest of th

Re: executing jar application with ignite server

2016-04-13 Thread vkulichenko
Hi, You can use Compute Grid [1] to execute custom code on the server nodes. Is that what you're looking for? [1] https://apacheignite.readme.io/docs/compute-grid -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/executing-jar-application-with-ignite-server

Re: Ignite: ERROR: Java classpath is empty

2016-04-13 Thread vkulichenko
This thread duplicates http://stackoverflow.com/questions/36594113/ignite-error-java-classpath-is-empty -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-ERROR-Java-classpath-is-empty-tp4118p4140.html Sent from the Apache Ignite Users mailing list archive at

Re: Unexpected heap usage by GridDhtPartitionTopologyImpl

2016-04-13 Thread vkulichenko
Hi, You can find the list of commands to build the project here: https://github.com/apache/ignite/blob/master/DEVNOTES.txt Let us know if something doesn't work for you. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpected-heap-usage-by-GridDhtParti

Re: What does mean caching database exactly ?

2016-04-13 Thread vkulichenko
Data loading happens on the server (in case you're using CacheStore for this). But someone has to initiate the process by calling loadCache method. It can be done by any of the apps, I believe it's better to do it by one that starts first. -Val -- View this message in context: http://apache-ig

multiple value key

2016-04-13 Thread tomk
Hello, Is it possible to use multiple value key ? For example, Timestamp, Integer, Integer ? I know that loading data maybe done using key - get method for example. But how to implement load with many value key ? Now, I simply write query: ... WHERE key = 42. However, for multiple key: WHERE key= 4

Re: how to check whether server and client connected?

2016-04-13 Thread Vladislav Pyatkov
Hello Ravi, Why are you not using Ignite client () node for access to cluster? Client node special created for using as gateway: doesn't sores data and doesn't compute job by default. On Wed, Apr 13, 2016 at 6:01 PM, Ravi kumar Puri wrote: > How do i connect to client with my server . Tell me s

Re: How to load 2 tables in a cache

2016-04-13 Thread tusharnakra
OK, UPDATE: This method is working, but how do I add setArgs (I mean, I want to pass the argument for orgname as "Ignite" i.e. to only print person names in Ignite organization. How to do that??? It's giving error if I simply do as given on the ignite website: private static void sqlFieldsQueryW

querying, sql performance of apache ignite

2016-04-13 Thread tomk
Hi, I consider some issues about cache in apache-ignite. 1. Firstly, from what you said me, we can query apache-ignite using SQL. However, then results will be only from cache RAM. So, what about situation when table from database doesn't fit into RAM. Then SELECT * on ignite returns only the

Re: Ignite Data Grid with write through mode to HDFS with layer of IGFS

2016-04-13 Thread Vladimir Ozerov
Vij, No, it doesn't. IGFS serves the very different purpose - it is Hadoop-compatible file system. It means that, for example, you can load data to IGFS and then query it using Hive. But native Ignite SQL is not applicable here. Vladimir. On Wed, Apr 13, 2016 at 3:55 PM, vijayendra bhati wrote:

Re: How to load 2 tables in a cache

2016-04-13 Thread tusharnakra
Could this error be because I haven't done setIndexedType?: cfg1.setIndexedTypes(OrganizationKey.class, Organization.class); OR because I have same column name "orgid" in both the tables?? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-load-2-tables-in-a

Re: how to check whether server and client connected?

2016-04-13 Thread Ravi kumar Puri
How do i connect to client with my server . Tell me something related to port or host adrzs On 13-Apr-2016 17:46, "Alexei Scherbakov" wrote: > Hi, > > Every Ignite node works either in server or client mode. > Server nodes actually contain data and perform grid tasks, while client > nodes provide

Re: link cache to object class?

2016-04-13 Thread Ravi kumar Puri
So i need to define jst d cache name in configuratn n nothng else as their attributes .how can i wil be able to relate to class .. even i dnr need any bean or class path/package in bean form to get name in ignite.xml configuration On 13-Apr-2016 17:36, "Denis Magda" wrote: > Give a cache a name t

Re: Host Arrays in C++ API

2016-04-13 Thread Igor Sapego
Sergi, Can you please take a look? Here is the query: SELECT sid_per_id, sid_mah_id, sid_itm_id, sid_prm_id, sid_cha_code, sid_service, sid_itm_dist FROM SHOP_ITEM_BITMAP_CACHE.ShopItemBitmap as bitmap JOIN PROD_HIER_CACHE.ProdHier as prod ON prod.GHD_LEV_6 = bitmap.SID_ITM_ID AND prod.GHD_HI

executing jar application with ignite server

2016-04-13 Thread tomk
Hello, Maybe, I don't understand something, but how to execute program on server node ? I mean something like spark-submit. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/executing-jar-application-with-ignite-server-tp4129.html Sent from the Apache Ignite User

Re: How to load 2 tables in a cache

2016-04-13 Thread tusharnakra
CacheConfig class: /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License,

Re: Ignite Data Grid with write through mode to HDFS with layer of IGFS

2016-04-13 Thread vijayendra bhati
Thanks Vladimir, I have not gone through complete documentation but if you could let me know does IGFS provide SQL support like Ignite cache does ? Regards,Vij On Wednesday, April 13, 2016 5:54 PM, Vladimir Ozerov wrote: Hi Vijayendra, IGFS is designed to be a distributed file system w

Re: spark and ignite - possibilities

2016-04-13 Thread tomk
IGFS can works with thriftserver without HDFS? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/spark-and-ignite-possibilities-tp4055p4126.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Ignite Data Grid with write through mode to HDFS with layer of IGFS

2016-04-13 Thread Vladimir Ozerov
Hi Vijayendra, IGFS is designed to be a distributed file system which could cache data from Hadoop file systems. It cannot be used as cache store by design. Ignite doesn't have store implementation for HDFS, so you should implement your own if needed. Particularly, you should implement org.apache.

Re: how to check whether server and client connected?

2016-04-13 Thread Alexei Scherbakov
Hi, Every Ignite node works either in server or client mode. Server nodes actually contain data and perform grid tasks, while client nodes provide API for working with server nodes remotely. Refer to https://apacheignite.readme.io/docs/clients-vs-servers for details. Note: where is a notion of "n

Re: link cache to object class?

2016-04-13 Thread Denis Magda
Give a cache a name that is related to an objects simple class name. As an example, you have a class “Person”. Create the cache with the same name and get a reference to it using ignite.cache(“Person”) — Denis > On Apr 13, 2016, at 1:35 PM, Ravi Puri wrote: > > how can i link the cache creat

Ignite Data Grid with write through mode to HDFS with layer of IGFS

2016-04-13 Thread vijayendra bhati
Hi, Can some body please provide me any pointers regarding how I can use Ignite Data Grid/ In Memory caching with write through/write behind mode and writing to HDFS ? I know Ignite provides IGFS but its different from what I am looking for. The other way could be I can use IGFS as my In Memory s

Re: Unexpected heap usage by GridDhtPartitionTopologyImpl

2016-04-13 Thread Tolga Kavukcu
Hi, Currently we are using 1.5.0.final version, since we have an urgency with our timings , we decided to change the source of 1.5.0.final. But i cant find a developer documentation, can you please share the link. A short brief also can be helpful. Thanks. On Fri, Apr 8, 2016 at 2:56 PM, Tolga

Re: spark and ignite - possibilities

2016-04-13 Thread Vladimir Ozerov
Hi Tomk, IGFS is essentially a caching layer which could be used on top of any Hadoop file system. If ThriftServer performs heave data processing, then it is definitely make sense to try IGFS. BTW, please properly subscribe to the user list (this way we will not have to manually approve your emai

link cache to object class?

2016-04-13 Thread Ravi Puri
how can i link the cache created in configuration to the object class so that i can decide which cache is for which class? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/link-cache-to-object-class-tp4119.html Sent from the Apache Ignite Users mailing list archiv

how to check whether server and client connected?

2016-04-13 Thread Ravi Puri
where to configure the client and server to interact. Ignition.setClientMode(true); this has been set but how to access local and remote nodes and how to start caching the data remotely available? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/how-to-check-w

problem of using object as key in cache configurations

2016-04-13 Thread kevin.zheng
Dear all,I have a table which has no primary index (need to use two columns as composite index).at the beginning, I use only one column as key to load all the data into the cache. However, lots of records were ignored ( because they have the same key).Then I create an java object to store two colum

Re: What does mean caching database exactly ?

2016-04-13 Thread tomk
Yes, firstly I am going to loadCache contain of database. Then, I am going to write newly data (into cache and db - write throught). Loader app will be only read data from cache (not from db). Thanks to read-through it will see new data. Tell me please, what exactly I should say in .xml configure

Re: visor keep trigger alert when condition no longer satisfied?

2016-04-13 Thread tracel
thanks Vasiliy!! -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/visor-keep-trigger-alert-when-condition-no-longer-satisfied-tp3772p4114.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.