- 博客(4)
- 收藏
- 关注
原创 hive案例:找出连续登录用户
1.建表create table sigin(userid int, sigindate string )row format delimited fields terminated by " ";2.数据准备1 2017-01-011 2017-01-022 2017-01-111 2017-01-122 2017-01-121 2017-01-031 2017-01-042 2017-01-012 2017-01-022 2017-01-031 2017-01-10
2020-10-17 16:34:00
375
原创 基于hive+sqoop+hbase的数据迁移
所涉及的工具版本:hadoop2.7.3hbase1.2.4hive2.1.1zookeeper3.4.10mysql5.7.24hdfs迁移到mysql开启hadoop进程start-dfs.shstart-yarn.sh导入hdfs中hdfs dfs -mkdir /bicycle_datashdfs dfs -put /hour.csv /bicycle_datas建立mysql表create database bicycle; use bicycle;crea
2020-09-16 16:14:21
633
原创 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
263
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.461.任务管理器——>服务将mysql服务停止2.找到mysql的安装路径下的my.ini文件在[mysqld]下添加skip-grant-tables3.开启服务4. mysql -u root mysq...
2020-03-19 19:31:33
197
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅