Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BDDED1007C for ; Wed, 16 Oct 2013 12:22:06 +0000 (UTC) Received: (qmail 48339 invoked by uid 500); 16 Oct 2013 12:22:01 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 48267 invoked by uid 500); 16 Oct 2013 12:21:58 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 48259 invoked by uid 99); 16 Oct 2013 12:21:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 12:21:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bnsk1990rulz@gmail.com designates 209.85.219.42 as permitted sender) Received: from [209.85.219.42] (HELO mail-oa0-f42.google.com) (209.85.219.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 12:21:50 +0000 Received: by mail-oa0-f42.google.com with SMTP id k14so421856oag.15 for ; Wed, 16 Oct 2013 05:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=U78+MQRg3PNzvYGaMz93ldLjE31acpIVU0u9ggltNfg=; b=m9kinMv+F1OOJVvFY4wd2Yqr8oYVnihVE5kirwYvwLHLdefnCAboKtQmbVD9ZOww2V HjE4CB8Jo6/Ofnd9vfd5ioEbpBIRwSjiRSA4ooZYFRxmTNwfClMS6PeLjIIew2xmaPL4 rxG3qx/7QQWX9ri7saemd9RAgIZNk06cJVxApCpPYdkZaTxOE6aQReWZeC387ip8x6vS ETZMkMLa1YVZYiB7kN9HQ+iP38E2574LSeU1qgXIY4Cd6NohrbQuP7waWjKVUXdFX+Vw 3unT7LVaOBzznblFzrZ08gJz79hOhrMe9ebHEglRZMX/z8tBH8+1f0wY9p7bmcKirszk K5gw== MIME-Version: 1.0 X-Received: by 10.182.1.196 with SMTP id 4mr140536obo.69.1381926088797; Wed, 16 Oct 2013 05:21:28 -0700 (PDT) Received: by 10.76.102.114 with HTTP; Wed, 16 Oct 2013 05:21:28 -0700 (PDT) Date: Wed, 16 Oct 2013 02:51:28 -0930 Message-ID: Subject: Data stored using libQtCassandra not being displayed in the database... From: Krishna Chaitanya To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a11347a46a0f51604e8dabd6c X-Virus-Checked: Checked by ClamAV on apache.org --001a11347a46a0f51604e8dabd6c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I am currently doing a project in which I am supposed to store netflow packets from a netflow collector into shared memory, read the packets from there and store into cassandra. When I'm reading the data and printing it, the output is something like this:- Collecting new packet---numpkts:59 read_index:36024 unread_bucket:1 The packet is:=03.=EF=BF=BD=EF=BF=BDR_T=EF=BF=BDn=EF=BF=BDa=D1=97=EF=BF=BD HQ=01=EF=BF=BD=EF=BF=BD=02=EF=BF=BD.=EF=BF=BDX.=EF=BF=BD=E2=93=A3=01=EF=BF= =BD=18=06=1F d2a=01=EF=BF=BD=EF=BF=BD=02=EF=BF=BD.=EF=BF=BD=EF=BF=BD.=EF=BF=BD=EF=BF=BD= =01=EF=BF=BD=EF=BF=BD=EF=BF=BD=10=06 d2 d3=EF=BF=BD=01=EF=BF=BD=EF=BF=BD=03=01=14.=EF=BF=BD=17.=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=11 Value is:" " When I try to append this to a QByteArray(in libQtCassandra) and store it into the database and try to read the value, all I get is 'Value is: " "'(the last line in the above output). I just want to store the whole packet as a single string for performance reasons. I'm having problems storing any other datatypes other than char*. If I try to retrieve any other datatypes it shows only " ". So, I have to cast every data type to a char*. But, here the packets are stored in a character array and still its not displaying the required data but just "". Can someone help me? Thanks in advance. --=20 Regards, BNSK*. * --001a11347a46a0f51604e8dabd6c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 I am currently doing a project in which I am supposed= to store netflow packets from a netflow collector into shared memory, read= the packets from there and store into cassandra. When I'm reading the = data and printing it, the output is something like this:-
Collecting new packet---numpkts:59=C2=A0=C2=A0=C2=A0 read_index:36024=C2=A0= =C2=A0=C2=A0 unread_bucket:1

The packet is:=03.=EF=BF=BD=EF=BF=BDR_T= =EF=BF=BDn=EF=BF=BDa=D1=97=EF=BF=BD
HQ=01=EF=BF=BD=EF=BF=BD=02=EF=BF=BD.= =EF=BF=BDX.=EF=BF=BD=E2=93=A3=01=EF=BF=BD=18=06=1F
d2a=01=EF=BF=BD=EF=BF= =BD=02=EF=BF=BD.=EF=BF=BD=EF=BF=BD.=EF=BF=BD=EF=BF=BD=01=EF=BF=BD=EF=BF=BD= =EF=BF=BD=10=06
d2
d3=EF=BF=BD=01=EF=BF=BD=EF=BF=BD=03=01=14.=EF=BF= =BD=17.=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=11
Value is:&quo= t; "

When I try to append this to a QByteArray(in libQtCass= andra) and store it into the database and try to read the value, all I get = is 'Value is: " "'(the last line in the above output). I = just want to store the whole packet as a single string for performance reas= ons. I'm having problems storing any other datatypes other than char*. = If I try to retrieve any other datatypes it shows only " ".
So, I have to cast every data type to a char*. But, here the packets = are stored in a character array and still its not displaying the required d= ata but just "". Can someone help me? Thanks in advance.

--
Regards,
BNSK= .
--001a11347a46a0f51604e8dabd6c--