使用cassandra存储处理程序创建外部配置单元表时出错

时间:2013-05-28 08:41:12

标签: hadoop cassandra hive bigdata hiveql

CREATE EXTERNAL TABLE IF NOT EXISTS
message (key string, loc string, machineid string, message string, msgdate string, quantity int, time string)
STORED BY 'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'WITH SERDEPROPERTIES
 ("cassandra.columns.mapping" = ":key,smslog,:location,:machineid,:message,:msgdate,:quantity,:time", "cassandra.cf.name" = "smslog", 
"cassandra.host" = "127.0.0.1" , "cassandra.port" = "9160",
"cassandra.partitioner" = "org.apache.cassandra.dht.
RandomPartitioner" )
TBLPROPERTIES ("cassandra.ks.name" = "SMSLogs");
  

异常org.apache.hadoop.hive.ql.metadata.HiveException失败:加载存储时遇到错误handler.org.apache.hadoop.hive.cassandra.CassandraStorageHandler   FAILED:执行错误,从org.apache.hadoop.hive.ql.exec.DDLTask返回代码1

0 个答案:

没有答案