ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Fischer (CW)" <rfis...@Brocade.com>
Subject Problem with Visor and Cassandra Cache Store
Date Tue, 18 Jul 2017 17:34:53 GMT
Hello,

I am getting the following exceptions from the ignite server(s) when using the visor cache
command:

[10:03:36,710][SEVERE][mgmt-#415%null%][GridJobWorker] Failed to execute job due to unexpected
runtime exception [jobId=c2fd5a65d51-7f82d6ed-0d7f-4cc9-a312-229ba87c8edd, ses=GridJobSessionImpl
[ses=GridTaskSessionImpl [taskName=o.a.i.i.v.cache.VisorCacheConfigurationCollectorTask, dep=LocalDeployment
[super=GridDeployment [ts=1500393681859, depMode=SHARED, clsLdr=sun.misc.Launcher$AppClassLoader@764c12b6,
clsLdrId=2ecae665d51-19c450b6-acdb-44d0-9ff0-91c776f1b8f3, userVer=0, loc=true, sampleClsName=java.lang.String,
pendingUndeploy=false, undeployed=false, usage=0]], taskClsName=o.a.i.i.v.cache.VisorCacheConfigurationCollectorTask,
sesId=b2fd5a65d51-7f82d6ed-0d7f-4cc9-a312-229ba87c8edd, startTime=1500397416626, endTime=9223372036854775807,
taskNodeId=7f82d6ed-0d7f-4cc9-a312-229ba87c8edd, clsLdr=sun.misc.Launcher$AppClassLoader@764c12b6,
closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, internal=true,
subjId=7f82d6ed-0d7f-4cc9-a312-229ba87c8edd, mapFut=IgniteFuture [orig=GridFutureAdapter [ignoreInterrupts=false,
state=INIT, res=null, hash=663115175]], execName=null], jobId=c2fd5a65d51-7f82d6ed-0d7f-4cc9-a312-229ba87c8edd]]
java.lang.ClassCastException: org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory
cannot be cast to org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory
        at org.apache.ignite.internal.visor.cache.VisorCacheJdbcType.list(VisorCacheJdbcType.java:68)
        at org.apache.ignite.internal.visor.cache.VisorCacheConfiguration.<init>(VisorCacheConfiguration.java:186)
        at org.apache.ignite.internal.visor.cache.VisorCacheConfigurationCollectorJob.config(VisorCacheConfigurationCollectorJob.java:72)
        at org.apache.ignite.internal.visor.cache.VisorCacheConfigurationCollectorJob.run(VisorCacheConfigurationCollectorJob.java:61)
        at org.apache.ignite.internal.visor.cache.VisorCacheConfigurationCollectorJob.run(VisorCacheConfigurationCollectorJob.java:32)
        at org.apache.ignite.internal.visor.VisorJob.execute(VisorJob.java:69)
        at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:566)
        at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6621)
        at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:560)
        at org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:489)
        at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1114)
        at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1907)
        at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1257)
        at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:885)
        at org.apache.ignite.internal.managers.communication.GridIoManager.access$2100(GridIoManager.java:114)
        at org.apache.ignite.internal.managers.communication.GridIoManager$7.run(GridIoManager.java:802)
        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:748)
Caused by: java.lang.ClassCastException: org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory
cannot be cast to org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory
        at org.apache.ignite.internal.visor.cache.VisorCacheJdbcType.list(VisorCacheJdbcType.java:68)
        at org.apache.ignite.internal.visor.cache.VisorCacheConfiguration.<init>(VisorCacheConfiguration.java:186)
        at org.apache.ignite.internal.visor.cache.VisorCacheConfigurationCollectorJob.config(VisorCacheConfigurationCollectorJob.java:72)
        at org.apache.ignite.internal.visor.cache.VisorCacheConfigurationCollectorJob.run(VisorCacheConfigurationCollectorJob.java:61)
        at org.apache.ignite.internal.visor.cache.VisorCacheConfigurationCollectorJob.run(VisorCacheConfigurationCollectorJob.java:32)
        at org.apache.ignite.internal.visor.VisorJob.execute(VisorJob.java:69)
        at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:566)
        at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6621)
        at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:560)
        ... 11 more

The visor command is: cache -a -c=@c1 -id8=@n1

The exception happens only when a specific server node is selected. "cache -a -c=FcPortStatsCache"
(no -id option) works fine.

Here is the output created from "cache -a -c=@c1 -id8=@n3":

visor> cache -a -c=@c1 -id8=@n3
ID8=19C450B6, time of the snapshot: 07/18/17, 10:22:40
+=====================================================================================================================================+
|        Name(@)        |    Mode     | Nodes |       Entries (Heap / Off-heap)       |  
Hits    |  Misses   |   Reads   |  Writes   |
+=====================================================================================================================================+
| FcPortStatsCache(@c1) | PARTITIONED | 1     | min: 175354 (117961 / 57393)          | min:
0    | min: 0    | min: 0    | min: 0    |
|                       |             |       | avg: 175354.00 (117961.00 / 57393.00) | avg:
0.00 | avg: 0.00 | avg: 0.00 | avg: 0.00 |
|                       |             |       | max: 175354 (117961 / 57393)          | max:
0    | max: 0    | max: 0    | max: 0    |
+-------------------------------------------------------------------------------------------------------------------------------------+
[10:22:40,946][SEVERE][mgmt-#30%null%][GridTaskWorker] Failed to reduce job results due to
undeclared user exception ... <see above for full exception>
(wrn) <visor>: class org.apache.ignite.IgniteException: org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory
cannot be cast to org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory
(wrn) <visor>: Type 'help cache' to see how to use this command.

Cache 'FcPortStatsCache(@c1)':
+-----------------------------------------------------------+
| Name(@)                     | FcPortStatsCache(@c1)       |
| Nodes                       | 1                           |
| Total size Min/Avg/Max      | 175354 / 175354.00 / 175354 |
|   Heap size Min/Avg/Max     | 117961 / 117961.00 / 117961 |
|   Off-heap size Min/Avg/Max | 57393 / 57393.00 / 57393    |
+-----------------------------------------------------------+

Nodes for: FcPortStatsCache(@c1)
+================================================================================================================+
|       Node ID8(@), IP        | CPUs | Heap Used | CPU Load |   Up Time    |         Size
        | Hi/Mi/Rd/Wr |
+================================================================================================================+
| 19C450B6(@n3), 192.168.1.211 | 2    | 10.31 %   | 0.50 %   | 01:21:20:468 | Total: 175354
       | Hi: 0       |
|                              |      |           |          |              |   Heap: 117961
      | Mi: 0       |
|                              |      |           |          |              |   Off-Heap:
57393    | Rd: 0       |
|                              |      |           |          |              |   Off-Heap Memory:
0 | Wr: 0       |
+----------------------------------------------------------------------------------------------------------------+
'Hi' - Number of cache hits.
'Mi' - Number of cache misses.
'Rd' - number of cache reads.
'Wr' - Number of cache writes.

Aggregated queries metrics:
  Minimum execution time: 00:00:00:000
  Maximum execution time: 00:00:00:000
  Average execution time: 00:00:00:000
  Total number of executions: 0
  Total number of failures:   0
visor>

Ignite version: ver. 2.0.0#20170430-sha1:d4eef3c6

Thanks...

Roger


Mime
View raw message