Contents

1 Hive
2 谿瑚襭
3 覃覈


1 Hive #

2 谿瑚襭 #

3 覃覈 #

CREATE EXTERNAL TABLE cassandra_table (key string, colname string, value string)
 STORED BY 'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'
 WITH SERDEPROPERTIES("cassandra.columns.mapping" = ":key,:column,:value" ,
 "cassandra.cf.name" = "User" ,
 "cassandra.host" = "192.168.136.103" , "cassandra.port" = "9160",
 "cassandra.partitioner" = "org.apache.cassandra.dht.RandomPartitioner" )
 TBLPROPERTIES ("cassandra.ks.name" = "MyKeyspace");