http://www.perlmonks.org?node_id=1024267

Rushi has asked for the wisdom of the Perl Monks concerning the following question:

My question is i have one cassandra where we have declare key validation class as "LongType". So whenever i am trying to retrieve the data from cassandra , it is giving me below mentioned error.

Error is : $VAR1 = bless( { 'code' => 0, 'message' => 'TSocket: Could not read 4 bytes from lo +calhost:9160' }, 'Net::GenThrift::Thrift::TException' );
we have declare Key_validationclass as : LongType. So could you please tell me how to resolve this error? My whole automation is stuck for this.

  • Comment on Cassandra Issues with perl while reading cassandra with key validation is longType
  • Download Code

Replies are listed 'Best First'.
Re: Cassandra Issues with perl while reading cassandra with key validation is longType
by Jenda (Abbot) on Mar 21, 2013 at 17:49 UTC

    You have one what? I guess the "database management system developed by Facebook", right? You should be clear about that, this is not something "well known".

    The review of the current, almost three years old, version of Net::Cassandra::Easy says "This might be a good module if it were updated, but this version is too old to be useful. It appears this module will not work with any version of Cassandra above 5.x." It's a little strange since the current version of Cassandra is 1.2.3, but I guess John meant 0.5.0. Especially since the docs of the module say "Net::Cassandra::Easy WILL NOT WORK WITH 0.6.x RELEASES OF Cassandra.".

    Looks like there is no supported Perl interface to this database.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

Re: Cassandra Issues with perl while reading cassandra with key validation is longType
by Anonymous Monk on Mar 19, 2013 at 11:57 UTC

    So could you please tell me how to resolve this error?

    No

    My whole automation is stuck for this.

    Have you heard of block eval? It will keep your program from dieing

      I written program in eval only but still facing the same problem