分区表 set hive.exec.dynamic.partition=true; set hive.exec.dynamic.partition.mode=nonstrict;create table test.test28_partition(id string, name string)PARTITIONED BY (inc_day string)STORED AS PARQUETlocation 'hdfs://xxx/user/hive/warehouse/test/test27_pa
Hive三种不同的数据导出的方式 (1) 导出到本地文件系统 insert overwrite local directory '/home/anjianbing/soft/export_data/app_order_city_d' row format delimited fields terminated by '\t' select * from app.app_order_city_d limit 10; 通过insert overwrite local directory将hive中
-- 设置hive的计算引擎为spark set hive.execution.engine=spark; -- 修复分区 set hive.msck.path.validation=ignore; msck repair table sub_ladm_app_click_day_cnt; -- 打印表头 set hive.cli.print.header=true; set hive.cli.print.row.to.vertical=true; ; -- 显示当前数据库 set hive