当前位置:网站首页>离线数仓-用户行为采集
离线数仓-用户行为采集
2022-08-02 03:17:00 【大数据小理】

一.写总体用户采集脚本
1)在/home/atguigu/bin目录下创建脚本cluster.sh
[[email protected] bin]$ vim cluster.sh
在脚本中填写如下内容
#!/bin/bash
case $1 in
“start”){
echo ================== 启动 集群 ==================
#启动 Zookeeper集群
zk.sh start
#启动 Hadoop集群
hdp.sh start
#启动 Kafka采集集群
kf.sh start
#启动 Flume采集集群
f1.sh start
#启动 Flume消费集群
f2.sh start
};;
“stop”){
echo ================== 停止 集群 ==================
#停止 Flume消费集群
f2.sh stop
#停止 Flume采集集群
f1.sh stop
#停止 Kafka采集集群
kf.sh stop
#停止 Hadoop集群
hdp.sh stop
#停止 Zookeeper集群
zk.sh stop
};;
esac
(2)增加脚本执行权限
[[email protected] bin]$ chmod u+x cluster.sh
(3)cluster集群启动脚本
[[email protected] module]$ cluster.sh start
(4)cluster集群停止脚本
[[email protected] module]$ cluster.sh stop
二。常见问题及解决方案
1 2NN页面不能显示完整信息
1)问题描述
访问2NN页面http://hadoop104:9868,看不到详细信息
2)解决办法
(1)在浏览器上按F12,查看问题原因。定位bug在61行
(2)找到要修改的文件
[[email protected] static]$ pwd
/opt/module/hadoop-3.1.3/share/hadoop/hdfs/webapps/static
[[email protected] static]$ vim dfs-dust.js
:set nu
修改61行
return new Date(Number(v)).toLocaleString();
(3)分发dfs-dust.js
[[email protected] static]$ xsync dfs-dust.js
(4)在http://hadoop104:9868/status.html 页面强制刷新
边栏推荐
猜你喜欢

centos安装mysql8
![[Remote Control Development Basic Tutorial 3] Crazy Shell Open Source Formation UAV-ADC (Joystick Control)](/img/8f/4944a31ca7066f300ef1ffe2d226e1.png)
[Remote Control Development Basic Tutorial 3] Crazy Shell Open Source Formation UAV-ADC (Joystick Control)

R16 Type II量化反馈码本的产生

5.合宙Air32F103_LCD_key

mysql8.0.28 download and installation detailed tutorial, suitable for win11

Chapter 10 聚类

bgp机房的动态路由和静态路由的区别

Heao Technology Network Interview (with reference answers)

01-Node-Express系统框架搭建(express-generator)

Go语学习笔记 - gorm使用 - gorm处理错误 Web框架Gin(十)
随机推荐
HCIP-第十一天-MPLS+BGP
腾讯50题
DOM destruction and reproduction experiment
HCIP Day 11_MPLS Experiment
7-44 基于词频的文件相似度 (30 分)
黑马案例--实现 clock 时钟的web服务器
MySQL中的存储过程(详细篇)
Go语学习笔记 - gorm使用 - 原生sql、命名参数、Rows、ToSQL Web框架Gin(九)
5.nodejs--cross domain, CORS, JSONP, Proxy
Daily practice------There are n integers, so that the previous numbers are moved back m positions in order, and the last m numbers become the first m numbers
MySQL中根据日期进行范围查询
Brute force visitors
7-43 字符串关键字的散列映射 (25 分) 谜之测试点
(转帖)HashCode总结(2)
HCIP第十一天_MPLS实验
一个资深测试工程师面试一来就问我这些题目
一种基于行为空间的回声状态网络参数优化方法
MySQL8 - use under Windows package installation method
AntV X6制作画板工具(图形,线段,图片上传)
R16 Type II量化反馈码本的产生