You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Matthew Johnson <ma...@algomi.com> on 2016/02/08 11:25:13 UTC

How to see Cassandra List / Set / Map values from Spark Hive Thrift JDBC?

Hi all,



I have asked this question here on StackOverflow:



http://stackoverflow.com/questions/35222365/spark-sql-hivethriftserver2-get-liststring-from-cassandra-in-squirrelsql



But hoping I get more luck from this group. When I write a Java SparkSQL
application to query a CassandraSQLContext, and print out a List column, it
prints out the values eg:



WrappedArray(mj485, pd153, ws019)



But when I query this same column from SquirrelSQL connecting to the Spark
HiveThriftServer2 JDBC, I get:



<UnknownType (2,003)>



Does anyone have any suggestions as to how I can get HiveThriftServer to
return the values, similar to how Java code does it?



Many thanks,

Matthew





PS I am running Spark 1.5.1, Cassandra 2.1.10