Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hadoop 连接卡桑德拉和蜂巢_Hadoop_Cassandra_Hive - Fatal编程技术网

Hadoop 连接卡桑德拉和蜂巢

Hadoop 连接卡桑德拉和蜂巢,hadoop,cassandra,hive,Hadoop,Cassandra,Hive,目前我正在使用Cassandra 2.1.5、Hive 1.2.1和Hadoop 2.7.1。我尝试使用本教程将Cassandra连接到Hive: 但我似乎陷入了创建外部表的困境: 创建由'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'存储的外部表test.pokes(foo int,bar string),并使用serdeProperty(“cassandra.host”=“127.0.0.1”,“cassandra.por

目前我正在使用Cassandra 2.1.5、Hive 1.2.1和Hadoop 2.7.1。我尝试使用本教程将Cassandra连接到Hive:

但我似乎陷入了创建外部表的困境:

创建由'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'存储的外部表test.pokes(foo int,bar string),并使用serdeProperty(“cassandra.host”=“127.0.0.1”,“cassandra.port”=“9160”,“cql.primarykey”=“foo”,“comment”=“check”,“read\u repair\u chance”=“0.2”,“dclocal\u read\u repair\u chance”=“0.14”,“gc\u grace\u seconds”=“989898”、“bloom_filter_fp_chance”=“0.2”、“compression”=“{'class':'LeveledCompactionStrategy'”、“在写入时复制”=“false”、“缓存”=“all”)

错误如下:

失败:执行错误,从org.apache.hadoop.hive.ql.exec.DDLTask.org.apache.hadoop.hive.serde2.lazy.lazympleserde.initSerdeParams(Lorg/apache/hadoop/conf/Configuration;Ljava/util/Properties;Ljava/lang/String;)Lorg/apache/hadoop/hive/serde2/lazympleserdeparameters


有人知道如何修复此问题吗?

修复此hive cassandra存储处理程序问题可能会很乏味

您在shell上发现的错误日志可能并不总是有用的

请参阅配置单元日志文件,该文件主要位于
/tmp//hive.log
,以获取有关故障的实际详细错误消息

主要原因可能是错误的cassandra主机名/端口、密钥空间、密钥配置等


希望这能有所帮助。

2013年博客上关于Hive和Cassandra的信息已经过时。例如,“org.apache.hadoop.Hive.Cassandra.Cassandra.CassandraStorageHandler”不久前被“org.apache.hadoop.Hive.Cassandra.cql3.CqlStorageHandler”取代。我认为您需要使用DSE。

您发现问题了吗?