Re: cursor.getAll() throws NoSuchMethodError excepion when SqlQuery is executed

2016-07-23 Thread begineer
With the help of Ignite community member, it is resolved. I was using two
different versions of ignite components in different modules of application.

Thanks !



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/cursor-getAll-throws-NoSuchMethodError-excepion-when-SqlQuery-is-executed-tp6489p6492.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: How to use the logger in the BackupFilter?

2016-07-23 Thread Jason
Thanks, Val.

> 3. I recommend to group nodes using attributes
> (IgniteConfiguration.setUserAttributes() property) and use them in the
> backup filter. Basically, the filter should return false if both provided
> nodes are in the same group. 

I)  I use .Net version of ignite, does it support the user attributes in the
IgniteConfiguration now?
II) In the BackupFilter, the parameter is (PrimaryNode, BackupNodeCandidate)
pair, so can only assign backup node to different group with primary node,
but cannot assign all the backup nodes to different groups between each
other, right?

E.g. say backups = 2 and node lists returned from Rendezvous hash = (A1, B2,
C2, D3, E1, ...), letter is machine name and digit is group. According to
the current BackupFilter.apply interface, (A1, B2, C2) is selected. But when
primary node A1 is down, (B2, D3, E1) will be selected. Then will C2 be
released and D3, E1 be copied with the data? Is this a problem?

If get the node list (A1, B2, D3) not (A1, B2, C2), can reduce the impact of
primary node's failure. In order to do this,  do I need to change the
BackupFilter.apply interface to add another parameter for the already
selected nodes or change the RendezvousAffinityFunction.assignPartition
directly? or any other better solution? 

Thanks,
-Jason



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/How-to-use-the-logger-in-the-BackupFilter-tp6442p6491.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Column not found exception while running SqlQuery i Ignite.

2016-07-23 Thread Surinder Mehra
Hi,
Thanks... I executed the same code in another machine and it worked. I
could see columns and indexes created in H2 console also. I have to now
figure out why it is not working in this particular machine.

On Sat, Jul 23, 2016 at 3:20 AM, vkulichenko 
wrote:

> Hi,
>
> The code you showed here looks fine to me and in my understanding should
> work. Can you prepare a full example and push it GitHub, so that I can run
> it and reproduce the exception?
>
> -Val
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Column-not-found-exception-while-running-SqlQuery-i-Ignite-tp6464p6486.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>


cursor.getAll() throws NoSuchMethodError excepion when SqlQuery is executed

2016-07-23 Thread begineer

I am getting below exception when i call getAll() on cursor returned from
SqlQuery. My POJO class fields are annotated with @QuerySqlField(index=true)
except the ones which are collections(Set and Lits of other cutom Objet. I
have enabled indexing in cache using below configuration
 

java.lang.Long
pckage.MyPojo



I am not getting which method it is looking for?

java.lang.NoSuchMethodError:
org.apache.ignite.internal.processors.cache.GridCacheAffinityManager.assignment(Lorg/apache/ignite/internal/processors/affinity/AffinityTopologyVersion;)Lorg/apache/ignite/internal/processors/affinity/GridAffinityAssignment;
at
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.stableDataNodes(GridReduceQueryExecutor.java:392)
at
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.query(GridReduceQueryExecutor.java:498)
at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$2.iterator(IgniteH2Indexing.java:971)
at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:61)
at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$3.iterator(IgniteH2Indexing.java:1005)
at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:61)
at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.getAll(QueryCursorImpl.java:73)
..
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.ignite.internal.processors.service.GridServiceProxy$ServiceProxyCallable.call(GridServiceProxy.java:387)
at
org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2V2.execute(GridClosureProcessor.java:2004)
at
org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509)
at
org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6442)
at
org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:503)
at
org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:456)
at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
at
org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1167)
at
org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1772)
at
org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1058)
at
org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:836)
at
org.apache.ignite.internal.managers.communication.GridIoManager.access$1700(GridIoManager.java:104)
at
org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:799)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2016-07-23 16:22:04,680 [pub-#2%null%] ERROR  
org.apache.ignite.internal.processors.job.GridJobWorker  -- Failed to
execute job [jobId=41fde571651-bb402db9-402a-4fb1-9ba8-aa0d7c307b32,
ses=GridJobSessionImpl [ses=GridTaskSessionImpl
[taskName=o.a.i.i.processors.service.GridServiceProxy$ServiceProxyCallable,
dep=LocalDeployment [super=GridDeployment [ts=1469270628001, depMode=SHARED,
clsLdr=java.net.URLClassLoader@2f983be1,
clsLdrId=43c1a571651-bb402db9-402a-4fb1-9ba8-aa0d7c307b32, userVer=0,
loc=true, sampleClsName=java.lang.String, pendingUndeploy=false,
undeployed=false, usage=0]],
taskClsName=o.a.i.i.processors.service.GridServiceProxy$ServiceProxyCallable,
sesId=31fde571651-d3d8faee-5240-4cdd-9cae-e1b855a0be4d,
startTime=1469271049483, endTime=9223372036854775807,
taskNodeId=d3d8faee-5240-4cdd-9cae-e1b855a0be4d,
clsLdr=java.net.URLClassLoader@2f983be1, closed=false, cpSpi=null,
failSpi=null, loadSpi=null, usage=1, fullSup=false,
subjId=d3d8faee-5240-4cdd-9cae-e1b855a0be4d, mapFut=IgniteFuture
[orig=GridFutureAdapter [resFlag=0, res=null, startTime=1469271049487,
endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]],
jobId=41fde571651-bb402db9-402a-4fb1-9ba8-aa0d7c307b32]]
org.apache.ignite.IgniteException: null
at
org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2V2.execute(GridClosureProcessor.java:2007)
~[ignite-core-1.5.22.jar:1.5.22]
at
org.apache.ignite.internal.processors.job.GridJobWorker$2.call(G