3
我一直被困在這個問題上好幾天。所以任何幫助將不勝感激。將Cassandra表複製到Hive
我正在嘗試製作cassandra表的副本以配置單元(以便我可以將它放入配置單元Metastore中,然後從Tableau訪問它)。 Hive - > Tableau部分工作,但不是Cassandra到Hive部分。數據未被複制到Hive Metastore。
下面是我所採取的步驟:https://github.com/tuplejump/cash/tree/master/cassandra-handler
我產生蜂房cassandra-:
我跟着從這個項目的自述文件的說明。 .jar,將它複製到cassandra-all- .jar,cassandra-thrift - *。jar到配置單元的lib文件夾。
然後我開始蜂房,試過如下:
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
我不知道爲什麼蜂巢看不到CqlStorageHandler ...
謝謝!