IgniteCheckedException: Indexing is disabled.

classic Classic list List threaded Threaded
6 messages Options
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|

IgniteCheckedException: Indexing is disabled.

asked by chaminda hettigoda

I got the class org.apache.ignite.IgniteCheckedException: Indexing is disabled. while doing the search I have already make  <property name="queryIndexEnabled" value="true"/>

Please help me to resolve this issue

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|

Re: IgniteCheckedException: Indexing is disabled.

commented by chaminda hettigoda

Mar 23, 2015 11:03:39 PM org.apache.ignite.logger.java.JavaLogger error SEVERE: <test> Failed to run query [qry=GridCacheQueryInfo [loc=true, prjPred=Always true predicate., trans=null, rdc=null, qry=GridCacheQueryAdapter [prjPred=null, type=SQL, clsName=ActiveNode, clause=nodeID= ?, filter=null, incMeta=false, metrics=GridCacheQueryMetricsAdapter [minTime=0, maxTime=0, avgTime=0.0, execs=0, fails=0, executed=false], pageSize=1024, timeout=0, keepAll=true, incBackups=false, dedup=false, prj=null, keepPortable=false, subjId=bd892035-7f90-4e31-ad2c-ea2accea4a30, taskHash=0], locFut=GridCacheQueryFutureAdapter [cnt=0, iter=null, timeoutId=8b232b74c41-261930b5-9315-4978-a15c-2cc5e951b7b4, startTime=1427132019114, endTime=0], sndId=bd892035-7f90-4e31-ad2c-ea2accea4a30, reqId=6, incMeta=false, all=true], node=bd892035-7f90-4e31-ad2c-ea2accea4a30] class org.apache.ignite.IgniteCheckedException: Indexing is disabled. at org.apache.ignite.internal.processors.query.GridQueryProcessor.checkEnabled(GridQueryProcessor.java:408) at org.apache.ignite.internal.processors.query.GridQueryProcessor.query(GridQueryProcessor.java:424) at org.apache.ignite.internal.processors.cache.query.GridCacheQueryManager.executeQuery(GridCacheQueryManager.java:501)

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|

Re: IgniteCheckedException: Indexing is disabled.

commented by chaminda hettigoda

SqlQuery sql = new SqlQuery("from ActiveNode"); try { QueryCursor<Cache.Entry<Object, CacheObject>> cursor = cache.query(sql); for (Cache.Entry<Object, CacheObject> e : cursor) { cacheObjects.add(e.getValue()); } } catch (Exception e) { logger.error(e.getMessage(), e); }

public class ActiveNode extends CacheObject implements Serializable{ //ID of the Node //@GridCacheQuerySqlField(index = true) @QuerySqlField private String nodeID = "";

//When this Node did the last DB updates.
// @GridCacheQuerySqlField(index = true) @QuerySqlField Date lastUsedTime = null;

<property name="cacheConfiguration"> <list>  <bean parent="cache-template"> <property name="name" value="test"/> <property name="cacheMode" value="LOCAL"/> <property name="atomicityMode" value="TRANSACTIONAL"/> <property name="backups" value="0"/> <property name="writeSynchronizationMode" value="PRIMARY_SYNC"/> <property name="queryIndexEnabled" value="true"/> </bean>

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|

Re: IgniteCheckedException: Indexing is disabled.

commented by dmitriy setrakyan

How many cache cluster nodes are you starting? If more than one, then please make sure that you specify the same configuration on all of them.

If you continue to have this issue, please paste your code and configuration into GitHubGist and provide links here.

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|

Re: IgniteCheckedException: Indexing is disabled.

commented by chaminda hettigoda

Please find the code and config file at https://gist.github.com/chamhetti/1a24565fe952fb58b588

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|

Re: IgniteCheckedException: Indexing is disabled.

commented by chaminda hettigoda

I found the issue. Issue was in dependencies of my project. I have not added to the project <dependency> <groupId>org.apache.ignite</groupId> <artifactId>ignite-indexing</artifactId> </dependency>

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss