Chinaunix首页 | 论坛 | 博客
  • 博客访问: 324838
  • 博文数量: 87
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 727
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-27 15:56
个人简介

开心了, 就笑;不开心了,就过会儿再笑。。。。

文章分类

全部博文(87)

文章存档

2017年(16)

2016年(28)

2015年(33)

2014年(10)

我的朋友

发布时间:2017-04-20 17:52:20

在hive中建表:create table  student(Sno int,Sname string,Sex string,Sage int,Sdept string) row format delimited fields terminated by ',' stored as textfile;create table course(Cno int,Cname string) row format delimited fields terminated by ',' stored as textfile;create table sc(Sno int,.........【阅读全文】

阅读(1078) | 评论(0) | 转发(0)

发布时间:2017-04-18 16:26:02

在hive里建表如下:CREATE TABLE `sor`(  `id` int,   `age` int,   `name` string,   `tel` string)ROW FORMAT DELIMITED   FIELDS TERMINATED BY '\t'   LINES TERMINATED BY '\n' STORED AS textfile在本系统里写个文件(列分割\t) ~]$ .........【阅读全文】

阅读(7790) | 评论(0) | 转发(0)

发布时间:2017-04-18 15:25:48

Hive的几种常见的数据导入方式这里介绍四种:(1)、从本地文件系统中导入数据到Hive表;(2)、从HDFS上导入数据到Hive表;(3)、从别的表中查询出相应的数据并导入到Hive表中;(4)、在创建表的时候通过从别的表中查询出相应的记录并插入到所创建的表中。一、从本地文件系统中导入数据到Hive表先在Hive里.........【阅读全文】

阅读(654) | 评论(0) | 转发(0)

发布时间:2017-04-18 14:35:46

在 Hive 0.8开始支持Insert into语句,它的作用是在一个表格里面追加数据。INSERT INTO TABLE tablename1 [PARTITION \(partcol1=val1, partcol2=val2 ...)] \select_statement1 FROM from_statement;INSERT OVERWRITE TABLE tablename1 [PARTITION \(partcol1=val1, partcol2=val2 ...) [IF NOT EXISTS]] \select_.........【阅读全文】

阅读(11859) | 评论(0) | 转发(0)

发布时间:2017-04-14 17:52:51

date shell命令 时间......【阅读全文】

阅读(579) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册