简体   繁体   English

如何从Hive 0.9.0访问cassandra 2.0.3

[英]How to access cassandra 2.0.3 from hive 0.9.0

I have installed cassandra 2.0.3 and hive 0.9.0. 我已经安装了cassandra 2.0.3和hive 0.9.0。

I have followed the below link for hive support for cassandra. 我已经按照下面的链接对cassandra进行了配置。 https://github.com/milliondreams/hive https://github.com/milliondreams/hive

But it says "Cassandra Hive handler working with Cassandra 1.2.6 and hive 0.9" and my cassandra version is 2.0.3 但是它说“ Cassandra Hive处理程序与Cassandra 1.2.6和hive 0.9一起工作”,而我的cassandra版本是2.0.3

Could any one guide me on how to access cassandra 2.0.3 from hive 0.9.0 in detail as I am new to cassandra and hive. 在我不熟悉cassandra和hive的情况下,谁能指导我详细介绍如何从hive 0.9.0访问cassandra 2.0.3。

-- Harry -哈里

由于使用CQL3,因此该Hive处理程序也应适用于Cassandra 2.0。

I have tryed it with shark, not Hive. 我尝试过用鲨鱼而不是蜂巢来尝试。 And then found out that it dose not work for cassandra 2.0x, because spark use hadoop2 and cassandra 1.26 use hadoop. 然后发现它不适用于cassandra 2.0x,因为spark使用hadoop2和cassandra 1.26使用hadoop。 It could map the table between shark and cassandra, but can not read data when through a spark process(require cassandra all 2.0x). 它可以在shark和cassandra之间映射表,但是在执行spark过程时无法读取数据(要求cassandra全部为2.0x)。

the error is java.lang.InstantiationError: org.apache.hadoop.mapreduce.JobContext. 错误是java.lang.InstantiationError:org.apache.hadoop.mapreduce.JobContext。

I have created a project from my work, for cassandra 2.0.4, hive 0.11 and hadoop 2.0 我已经根据自己的工作为cassandra 2.0.4,hive 0.11和hadoop 2.0创建了一个项目

try it 试试吧

https://github.com/2013Commons/hive-cassandra https://github.com/2013Commons/hive-cassandra

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM