From dev-return-21814-apmail-ignite-dev-archive=ignite.apache.org@ignite.apache.org Fri May 19 20:31:33 2017 Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A097619C8B for ; Fri, 19 May 2017 20:31:33 +0000 (UTC) Received: (qmail 25414 invoked by uid 500); 19 May 2017 20:31:33 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 25370 invoked by uid 500); 19 May 2017 20:31:33 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Delivered-To: moderator for dev@ignite.apache.org Received: (qmail 96803 invoked by uid 99); 19 May 2017 14:12:05 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.737 X-Spam-Level: *** X-Spam-Status: No, score=3.737 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Date: Fri, 19 May 2017 06:58:36 -0700 (PDT) From: fatih To: dev@ignite.apache.org Message-ID: <1495202316273-17827.post@n4.nabble.com> Subject: How to store Binary Object in Cassandra Backup Store MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi=20 I am working with BinaryObjects and i wanted to use Cassandra as a backup store. However i could not manage. Could please explain how i can achieve this. =20 Persistence configuration i use is as below=20 The error I get is as below=20 2017-05-19 16:07:12,497 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: [14:07:12,493][SEVERE][flusher-0-#27%null%][CassandraCacheStore] Failed to process 1 of 1 elements, during BULK_WRITE operation with Cassandra 2017-05-19 16:07:12,497 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: class org.apache.ignite.IgniteException: Failed to execute Cassandr= a BULK_WRITE operation 2017-05-19 16:07:12,497 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.cache.store.cassandra.session.CassandraSessionImpl.execut= e(CassandraSessionImpl.java:262) 2017-05-19 16:07:12,497 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.cache.store.cassandra.CassandraCacheStore.writeAll(Cassan= draCacheStore.java:332) 2017-05-19 16:07:12,497 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.internal.processors.cache.store.GridCacheWriteBehindStore= .updateStore(GridCacheWriteBehindStore.java:685) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.internal.processors.cache.store.GridCacheWriteBehindStore= .applyBatch(GridCacheWriteBehindStore.java:618) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.internal.processors.cache.store.GridCacheWriteBehindStore= .access$1700(GridCacheWriteBehindStore.java:69) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.internal.processors.cache.store.GridCacheWriteBehindStore= $Flusher.flushCache(GridCacheWriteBehindStore.java:850) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.internal.processors.cache.store.GridCacheWriteBehindStore= $Flusher.body(GridCacheWriteBehindStore.java:754) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at java.lang.Thread.run(Thread.java:745) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: Caused by: java.lang.IllegalArgumentException: Couldn't deserialize instance of class 'org.apache.ignite.internal.binary.BinaryObjectImpl' usin= g PRIMITIVE strategy. Please use BLOB strategy for this case. 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.cache.store.cassandra.persistence.PersistenceController.b= indValues(PersistenceController.java:431) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.cache.store.cassandra.persistence.PersistenceController.b= indKeyValue(PersistenceController.java:203) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.cache.store.cassandra.CassandraCacheStore$4.bindStatement= (CassandraCacheStore.java:346) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.cache.store.cassandra.CassandraCacheStore$4.bindStatement= (CassandraCacheStore.java:332) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: at org.apache.ignite.cache.store.cassandra.session.CassandraSessionImpl.execut= e(CassandraSessionImpl.java:226) 2017-05-19 16:07:12,498 [dockerjava-netty-3-4] INFO ignite@localhost - STDERR: ... 8 more -- View this message in context: http://apache-ignite-developers.2346864.n4.na= bble.com/How-to-store-Binary-Object-in-Cassandra-Backup-Store-tp17827.html Sent from the Apache Ignite Developers mailing list archive at Nabble.com.