当前位置: 首页 > news >正文

建设制作外贸网站的公司简介把名字设计成logo

建设制作外贸网站的公司简介,把名字设计成logo,wordpress识别手机跳转网站,在线制作微信头像目录 分桶#xff08;Bucket#xff09; 设定属性 定义分桶 案例 建表语句 表数据 上传到数据 创建分桶语句 加载数据 分桶抽样#xff08;Sampling#xff09; 随机抽样---整行数据 随机抽样---指定列 随机抽样---百分比 随机抽样---抽取行数 Hive视图#…目录 分桶Bucket 设定属性 定义分桶 案例 建表语句 表数据 上传到数据 创建分桶语句 加载数据 分桶抽样Sampling 随机抽样---整行数据 随机抽样---指定列 随机抽样---百分比 随机抽样---抽取行数 Hive视图View 视图概述 应用场景 创建视图 查看视图定义 删除视图 更改视图属性 更改视图定义 Hive侧视图Lateral View 分桶Bucket 分桶对应于HDFS中的文件 更高的查询处理效率使抽样sampling更高效 一般根据桶列的哈希函数将数据进行分桶 设定属性 SET hive.enforce.bucketing true; 定义分桶 clustered by(employee) into 2 buckets 分桶只有动态分桶 必须使用INSERT方式加载数据 案例 建表语句 create table employee_id (name string,employee_id int,work_place arraystring,gender_age structgender:string,age:int,skills_score mapstring,int,depart_title mapstring,arraystring )row format delimitedfields terminated by |collection items terminated by ,map keys terminated by :lines terminated by \n; 表数据 Michael|100|Montreal,Toronto|Male,30|DB:80|Product:DeveloperLead Will|101|Montreal|Male,35|Perl:85|Product:Lead,Test:Lead Steven|102|New York|Female,27|Python:80|Test:Lead,COE:Architect Lucy|103|Vancouver|Female,57|Sales:89,HR:94|Sales:Lead Mike|104|Montreal|Male,35|Perl:85|Product:Lead,Test:Lead Shelley|105|New York|Female,27|Python:80|Test:Lead,COE:Architect Luly|106|Vancouver|Female,57|Sales:89,HR:94|Sales:Lead Lily|107|Montreal|Male,35|Perl:85|Product:Lead,Test:Lead Shell|108|New York|Female,27|Python:80|Test:Lead,COE:Architect Mich|109|Vancouver|Female,57|Sales:89,HR:94|Sales:Lead Dayong|110|Montreal|Male,35|Perl:85|Product:Lead,Test:Lead Sara|111|New York|Female,27|Python:80|Test:Lead,COE:Architect Roman|112|Vancouver|Female,57|Sales:89,HR:94|Sales:Lead Christine|113|Montreal|Male,35|Perl:85|Product:Lead,Test:Lead Eman|114|New York|Female,27|Python:80|Test:Lead,COE:Architect Alex|115|Vancouver|Female,57|Sales:89,HR:94|Sales:Lead Alan|116|Montreal|Male,35|Perl:85|Product:Lead,Test:Lead Andy|117|New York|Female,27|Python:80|Test:Lead,COE:Architect Ryan|118|Vancouver|Female,57|Sales:89,HR:94|Sales:Lead Rome|119|Montreal|Male,35|Perl:85|Product:Lead,Test:Lead Lym|120|New York|Female,27|Python:80|Test:Lead,COE:Architect Linm|121|Vancouver|Female,57|Sales:89,HR:94|Sales:Lead Dach|122|Montreal|Male,35|Perl:85|Product:Lead,Test:Lead Ilon|123|New York|Female,27|Python:80|Test:Lead,COE:Architect Elaine|124|Vancouver|Female,57|Sales:89,HR:94|Sales:Lead 上传到数据 load data local inpath /opt/stufile/employee_id.txt overwrite into table employee_id; 创建分桶语句 create table employee_id_buckets (name string,employee_id int,work_place arraystring,gender_age structgender:string,age:int,skills_score mapstring,int,depart_title mapstring,arraystring ) clustered by (employee_id) into 2 bucketsrow format delimitedfields terminated by |collection items terminated by ,map keys terminated by :; clustered by (employee_id) into 2 buckets 含义是把employee_id设置两个分桶 加载数据 insert overwrite table employee_id_buckets select * from employee_id; 分桶抽样Sampling 随机抽样---整行数据 select * from employee_id_buckets tablesample (bucket 1 out of 2 on rand()); 随机抽样---指定列 使用分桶列更高效 select * from employee_id_buckets tablesample (bucket 1 out of 2 on employee_id); 随机抽样---百分比 select * from employee_id_buckets tablesample (10 percent); 随机抽样---抽取行数 select * from employee_id_buckets tablesample (10 rows); Hive视图View 视图概述 通过隐藏子查询、连接和函数来简化查询的逻辑结构只保存定义不存储数据如果删除或更改基础表则查询视图将失败视图是只读的不能插入或装载数据 应用场景 将特定的列提供给用户保护数据隐私用于查询语句复杂的场景 创建视图 支持 CTE, ORDER BY, LIMIT, JOIN等 create view view_name as select statement; 查看视图定义 show create table view_name; 删除视图 drop view_name; 更改视图属性 alter view view_name set tblproperties (comment This is a view); 更改视图定义 alter view view_name as select statement; Hive侧视图Lateral View 与表生成函数结合使用将函数的输入和输出连接 OUTER关键字即使output为空也会生成结果 select name, workplace, loc from employee lateral view outer explode(split(null, ,)) a as loc;支持多层级 select name,wps,gender_age.gender, gender_age.age,skill,score,depart,title from employeelateral view explode(workplace) work_place as wpslateral view explode(skills_score) sks as skill, scorelateral view explode(depart_title) ga as depart, title;
http://www.hkea.cn/news/14529092/

相关文章:

  • 苏州网站建设费用wordpress子菜单位置分离
  • 商务网站建设兴田德润电话多少linux wordpress配置
  • 本网站建设免费建筑设计素材网站
  • wordpress 做公司网站龙岗营销型网站建设
  • 惠州网站制作维护网站是一个链接的页面结合吗
  • 中国做水产的有什么网站商务网站规划与设计
  • 佛山市住房和建设局网站网络小说写作网站
  • 贵阳花溪建设村镇银行官方网站网站快速优化排名软件
  • phpwind 企业网站桂林人论坛新闻
  • linux网站备份wordpress插件如何应用
  • 网站建设的色彩搭配做刷票的网站
  • 网博士自助建站系统曲靖网站建设0doit
  • 电商网站怎么制作网页制作软件下载
  • 制作网页的的网站分析网站优缺点
  • 触屏网站模板大连建站软件
  • 会展门户网站源码wordpress最新版本
  • 大型网站建设兴田德润实惠留言网站建设的报告
  • 网站建设与网站主机的选择wordpress-5.0.3设置数据库
  • 网络云网站网店怎么开
  • 怎样做平台网站天津 网站设计公司
  • 潍坊站总站人工服务电话北京哪个网站做兼职比较好
  • 小学最好的网站建设wordpress5.2中文版下载
  • 北京网站优化平台网站建设发信息
  • 网站建设需要掌握哪些知识搭建什么网站比较赚钱
  • 织梦做的网站打包在dw修改网站没收录
  • 建设银行 钓鱼网站农产品网站建设方案
  • 江门专业网站建设公司创造自己的网站
  • 椒江网站建设公司张家港建网站的公司
  • 如何设计网站的链接厦门seo关键词排名
  • 济南市住建厅官方网站wordpress 新浪图片