Simple connect to gridgain via java for taken data

2016-09-06 Thread warorc
Hello, everyone. I need simple task. Somewhere our developers which use gridgain. I try to test that data correct inserted to this gridgain stacks. So I just want to connect to this node, which I don't know anything and get data from that. I tried to do it by jdbc:driver, but seen that such

Re: CacheJdbcPojoStore with MariaDB

2016-09-06 Thread Alexey Kuznetsov
Hi, @seyeony! There was a bug with MySQL dialect and large datasets fixed recently in master. By default MySQL JDBC driver load all rows of result set to memory and that may result in OOME and node left the grid. Or try to give more memory to node (if it possible). Could you try with latest

Re: Simple connect to gridgain via java for taken data

2016-09-06 Thread Vladislav Pyatkov
Hi, Are you sure to use same Ignite version on server and client, where are you using Ignite JDBC connection? The message: *Remote node has cache affinity assignment mode different from local* look like you apply different configuration on client and on server. Also, you can access to date using

Re: Cannot recreate cache after cache.destroy()

2016-09-06 Thread aosmakoff
Val, the suggested workaround did work. This tells me though that somewhere in your copy constructor for CacheConfiguration you are using a *shallow* copy of the statefull content. Thanks for your help, Alex -- View this message in context:

Re: question about TcpServer inside ServerImpl.java

2016-09-06 Thread vkulichenko
Kevin, There is no need to listen to several ports. The range exists to make the start process more reliable - the node will choose one of the available ports if the first one can't be opened. Also this is useful when there are several nodes running within one physical box. -Val -- View this

Re: Is SqlQuery efficient than SqlFieldsQuery?

2016-09-06 Thread vkulichenko
Hi Patrick, Please properly subscribe to the mailing list so that the community can receive email notifications for your messages. To subscribe, send empty email to user-subscr...@ignite.apache.org and follow simple instructions in the reply. wbyeh wrote > I have used a SqlQuery to instead of a

Re: Note that large topology

2016-09-06 Thread vkulichenko
Hi, Please provide your configuration and give more details about what are you doing. Which nodes are started first and on which addresses, how do you restart them, etc. -Val -- View this message in context:

Re: why allocated containers much more than INGNITE_NODE_COUNT?

2016-09-06 Thread vkulichenko
Nikolai, Is this a bug? Should we create a ticket? -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/why-allocated-containers-much-more-than-INGNITE-NODE-COUNT-tp7226p7562.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Spark stage was hang via ignite

2016-09-06 Thread vkulichenko
Hi, I can't tell anything without the full logs. Please upload them somewhere if you still need our help. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Spark-stage-was-hang-via-ignite-tp7485p7563.html Sent from the Apache Ignite Users mailing list

Re: understanding Locks usage

2016-09-06 Thread vkulichenko
Sam, The exception is thrown because you used a different instance to unlock. You should always lock and unlock with the same instance in the same thread. The lock you get from cache is the standard Java Lock and it has the same semantics. The only difference is that it works in a distributed

Re: GET with LIKE operator for keys

2016-09-06 Thread vkulichenko
Sam, Can you provide a code example that I can run to see what the issue is? Now it's not clear to me. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/GET-with-LIKE-operator-for-keys-tp7381p7565.html Sent from the Apache Ignite Users mailing list archive

Re: Ignite odbc driver

2016-09-06 Thread vkulichenko
Hi Murthy, Yes, it will be available in 1.8. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-odbc-driver-tp7502p7566.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: is there a interface let client know the change of assignment(like topology version)?

2016-09-06 Thread vkulichenko
Hi, A client can subscribe for remote events, see the documentation page provided by Vladislav. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/is-there-a-interface-let-client-know-the-change-of-assignment-like-topology-version-tp7444p7567.html Sent from

Re: Ignite odbc driver

2016-09-06 Thread Murthy Kakarlamudi
Thanks for the confirmation. On Sep 6, 2016 10:34 PM, "vkulichenko" wrote: > Hi Murthy, > > Yes, it will be available in 1.8. > > -Val > > > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/Ignite-odbc-driver-tp7502p7566.html

Re: Failed to wait for initial partition map exchange

2016-09-06 Thread vkulichenko
Hi, This exception can happen for different reasons. Please attach full logs from all nodes. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Failed-to-wait-for-initial-partition-map-exchange-tp7454p7569.html Sent from the Apache Ignite Users mailing list

Re: Reassign partitions

2016-09-06 Thread vkulichenko
AffinityFunction has to return the same result for the same topology anyway, this is the crucial contract. Having said that, I still don't understand how calling it at a random moment of time will help. Do you have a test project that you can share with us? This would make things more clear.

Re: Simple connect to gridgain via java for taken data

2016-09-06 Thread Vladislav Pyatkov
In general, Ignite supports compatibility for minor versions, but do not for new major release. You can use REST API for the purpose [1]. If you want to configure REST, all you need to do, add dependency to ignite-rest-http on server side. [1]: https://apacheignite.readme.io/docs/rest-api On

Re: Automatic Persistence - POJOs and XMLs for couchbase

2016-09-06 Thread Andrey Novikov
Hi, Abhishek Jain. I successfully connect to couchbase using Simba couchbase JDBC driver. For do this you need: * create folder for driver jars in $IGNITE_HOME/libs (for example: couchbase-driver) * copy all jars from Driver folder in Simba_Couchbase_JDBC.zip * copy

question about TcpServer inside ServerImpl.java

2016-09-06 Thread Zhengqingzheng
Hi there, I am reading the socket communication part of the ignite source code. And I have a question regards to the socket server. Inside the ServerImpl.java, there is a private class called TcpServer which will start a socket on selected port. If portRange is used, which means Tcp Socket

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

2016-09-06 Thread Sergi Vladykin
Hi! The name `TODAY` is problematic because there is a function with the same name. Sergi 2016-09-06 12:40 GMT+03:00 chevy : > Hi, > > I am getting "Caused by: org.h2.jdbc.JdbcSQLException: Syntax error in SQL > statement "CREATE TABLE ""salesCache"".SALESMODEL

Re: [EXTERNAL] Re: class org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor

2016-09-06 Thread Chetan . V . Yadav
Hi, I changed the variable to “todayData" from “today” in SalesModel but still getting same error. /** TdyFeedModel: todayData (not-indexed). */ @QuerySqlField public TdyFeedModel todayData; -- Regards, Chetan. From: Sergi Vladykin

Re: question about TcpServer inside ServerImpl.java

2016-09-06 Thread Vladislav Pyatkov
Hi, This code finds first port from range, which do not busy. This may be helpful, if you use some instance of server with same configuration in one physical machine, in that case you will not know, which a port from range have not busy yet. On Tue, Sep 6, 2016 at 3:01 PM, Zhengqingzheng

Re: Spring application context resource is not injected exception while starting ignite in jdbc driver mode

2016-09-06 Thread amitpa
@agura If you setup Java Spring Automatic persistence And try to connect a Java node with C# this occurs repeatedly. Is there any work around for this? Just as note The same config works with C++ and Java but not with Java and C#? -- View this message in context:

Re: [EXTERNAL] Re: class org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor

2016-09-06 Thread chevy
Your point is true. But I did a maven clean build and also checked error and its same error. Not sure why this is happening. Is there any other place that maven saves class files? I am running using eclipse. -- Regards, Chetan. From: "Sergi Vladykin [via Apache Ignite Users]"

Re: [EXTERNAL] Re: class org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor

2016-09-06 Thread Sergi Vladykin
Please send the full stack trace of the error you are getting now, may be it is not really the same. Sergi 2016-09-06 20:56 GMT+03:00 chevy : > Your point is true. But I did a maven clean build and also checked error > and its same error. Not sure why this is

Re: [EXTERNAL] Re: class org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor

2016-09-06 Thread Sergi Vladykin
I guess it is either not the same error or you run the old code or something like this. Please make sure that there is no mistake: restart clean cluster, rebuild the code and run it again. Sergi 2016-09-06 16:19 GMT+03:00 Chetan.V.Yadav : > Hi, > > I changed the

Re: [EXTERNAL] Re: class org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor

2016-09-06 Thread chevy
[00:13:05,916][SEVERE][main][IgniteKernal] Got exception while starting (will rollback startup routine). class org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor [name=SalesModel, fields={id=class java.lang.String, storeId=class java.lang.Integer,

Re: [EXTERNAL] Re: class org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor

2016-09-06 Thread Sergi Vladykin
Yes, it still complains about TODAY field which must not exist anymore. You need to make sure that Ignite picks up the latest code. I'm not sure how to achieve that in your environment, never experienced problems like this, but there are some ideas: run jps and check that no Ignite nodes are

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

2016-09-06 Thread chevy
Hi, I am getting "Caused by: org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "CREATE TABLE ""salesCache"".SALESMODEL (_KEY INT NOT NULL,_VAL OTHER,ID VARCHAR,STOREID INT,DATE VARCHAR,GOAL DOUBLE,FORECAST DOUBLE,HOURLYSALES OTHER,SALESDATE VARCHAR,TODAY[*] OTHER,TYSALES DOUBLE,LYSALES

Re: Simple connect to gridgain via java for taken data

2016-09-06 Thread warorc
Hi, thank you for your answer! The problem that I don't know which version use developers. And when they will change version to new one, I still don't be known what version they use. I can't afford update version every time when developers change their. So I asked about alternative simple way

Re: CacheJdbcPojoStore with MariaDB

2016-09-06 Thread seyeony
Hi Alexey, Thank you for your advices. I tried to test with the latest night build as you guided. Also I replaced the BasicJdbcDialect with MySQLDialect. It looked much better. However when I tested with large datasets, I got the message as follows. I guess I need more memory. By the way, what

Re: jcache EntryProcessor with BinaryInvalidTypeException and ClassNotFoundException

2016-09-06 Thread vkulichenko
Hi, You can't use peer class loading for model classes. You should enable withKeepBinary flag [1] when executing invoke and use BinaryObject instances in the entry processor instead of your classes. [1] https://apacheignite.readme.io/docs/binary-marshaller#binaryobject-cache-api -Val -- View

IgniteClientDisconnectedException

2016-09-06 Thread Level D
Hi all, I load data via DataStreamer. After a while, ignite disconnects. Attachment is errorlog. My configuration is Are there any properties need to be improved? Does ignite have a property to disable kicking off slow client? Regards, Zhou. 36B71B50@9249E77B.F886CF57.png Description: