CREATE TABLE tableName(
colName colType,
...
colNameX colType
)WITH(
type ='cassandra',
address ='ip:port[,ip:port]',
userName ='userName',
password ='pwd',
database ='databaseName',
tableName ='tableName',
parallelism ='parllNum'
);
cassandra-3.6.x
CREATE TABLE MyResult(
channel VARCHAR,
pv VARCHAR
)WITH(
type ='cassandra',
address ='172.21.32.1:9042,172.21.32.1:9042',
userName ='dtstack',
password ='abc123',
database ='test',
tableName ='pv',
parallelism ='1'
)
