当前位置:   article > 正文

Hive 实验_在waterdrop怎么set transaction.type

在waterdrop怎么set transaction.type

// 创建数据库并导入数据

1. create database {database_name};

2. use {database_name};

3. create table docs(line string);

4. load data inpath '/training/{student_name}/inceptor_data/wordcount' into table docs;

//创建结果表

create table wc(word string, totalword int);

// wordcount统计

from (select explode(split(line, ' ')) as word from docs) w

insert into table wc

select word, count(1) as totalword

group by word

order by word;

// 查看分析结果

select * from wc;

// 创建外表

 create external table ext_table(rowkey string, num int, country int, rd string) row format delimited fields terminated by ',' location '/images/inceptor_data';

//创建ORC事务表

// 设置开启事务

1. set transaction.type=inceptor;

// 设置PLSQL编译器不检查语义

2. set plsql.compile.dml.check.semantic=false;

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/691844
推荐阅读
相关标签
  

闽ICP备14008679号