- 博客(4)
- 收藏
- 关注
原创 hive案例:找出连续登录用户
1.建表 create table sigin( userid int, sigindate string )row format delimited fields terminated by " "; 2.数据准备 1 2017-01-01 1 2017-01-02 2 2017-01-11 1 2017-01-12 2 2017-01-12 1 2017-01-03 1 2017-01-04 2 2017-01-01 2 2017-01-02 2 2017-01-03 1 2017-01-10
2020-10-17 16:34:00
401
原创 基于hive+sqoop+hbase的数据迁移
所涉及的工具版本: hadoop2.7.3 hbase1.2.4 hive2.1.1 zookeeper3.4.10 mysql5.7.24 hdfs迁移到mysql 开启hadoop进程 start-dfs.sh start-yarn.sh 导入hdfs中 hdfs dfs -mkdir /bicycle_datas hdfs dfs -put /hour.csv /bicycle_datas 建立mysql表 create database bicycle; use bicycle; crea
2020-09-16 16:14:21
664
原创 hive案例-某粒影音需求
一丶数据清洗 1.由于数据不符合数据分析要求需要改变格式 首先过滤残缺的数据,既不合格的数据 将分隔符统一 统一数据的格式(如多余的空格,会导致分组时出错) 二丶建表导入数据 1.建立原始数据表 create table gulivideo_ori( videoID string, uploader string, age int, category array<string>, length int, views int, rate float, ratings int, commen
2020-07-15 00:08:44
284
1
原创 mysql:1130 Host 'localhost' is not allowed to connect to this MySQL server
mysql:1130 Host 'localhost' is not allowed to connect to this MySQL server 适用5.7以下我的是5.1.46 1.任务管理器——>服务将mysql服务停止 2.找到mysql的安装路径下的my.ini文件在[mysqld]下添加skip-grant-tables 3.开启服务 4. mysql -u root mysq...
2020-03-19 19:31:33
209
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅