从HDFS上创建表
JSON格式:
create external table sonar_https(
host string,
ip string,
path string,
port int,
vhost string,
data string)
ROW FORMAT SERDE ‘org.apache.hive.hcatalog.data.JsonSerDe’
STORED AS TEXTFILE
location ‘/datasets/sonar/http’;
博客展示了从HDFS上创建表的操作,给出了JSON格式的建表语句,包括表结构定义、行格式序列化、存储格式及存储位置等信息。
从HDFS上创建表
JSON格式:
create external table sonar_https(
host string,
ip string,
path string,
port int,
vhost string,
data string)
ROW FORMAT SERDE ‘org.apache.hive.hcatalog.data.JsonSerDe’
STORED AS TEXTFILE
location ‘/datasets/sonar/http’;
1630
398

被折叠的 条评论
为什么被折叠?