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