create table maats.account_channel ROW FORMAT DELIMITED FIELDS TERMINATED BY ‘^‘ STORED AS TEXTFILE as select distinct a.account,b.channel from maats.register a join maats.install b on a.device = b.device;
INSERT OVERWRITE table maats.account_channel select distinct a.account,b.channel from maats.register a join maats.install b on a.device = b.device;
hvie 1.1
第一次在create table 时没有加 STORED AS TEXTFILE 结果 INSERT OVERWRITE table 命令就只能执行一次,后面就报错,lz 就很奇怪,因为之前是可以的,记得hive默认是textFile格式的文件,
beeline中可以,但是 hive -e 不可以,
时间: 2024-10-13 07:03:29