I've been stuck on this problem for days. So any help would be greatly appreciated.
I'm trying to make a copy of cassandra table to hive (so that I can put it into hive metastore and then access it from Tableau). The Hive -> Tableau part works, but not the Cassandra to Hive part. Data isn't being copied to Hive metastore.
Here are the steps i've taken:
I followed the instructions from the README of this project: https://github.com/tuplejump/cash/tree/master/cassandra-handler
I generated hive-cassandra-..jar, copied it and cassandra-all-.jar, cassandra-thrift-*.jar to hive lib folder.
Then I started hive and tried the following:
hive> add jar /usr/lib/hive/apache-hive-1.1.0/lib/hive-cassandra-1.2.6.jar;
Added [/usr/lib/hive/apache-hive-1.1.0/lib/hive-cassandra-1.2.6.jar] to class path
Added resources: [/usr/lib/hive/apache-hive-1.1.0/lib/hive-cassandra-1.2.6.jar]
hive> list jars;
/usr/lib/hive/apache-hive-1.1.0/lib/hive-cassandra-1.2.6.jar
hive> create temporary function tmp as 'org.apache.hadoop.hive.cassandra.cql3.CqlStorageHandler'
> ;
FAILED: Class org.apache.hadoop.hive.cassandra.cql3.CqlStorageHandler not found
I don't know why hive can't see CqlStorageHandler ...
Thanks!