脚本位置 cd /home/hadoop/bin 脚本内容 vi kafka.sh #输入以下内容 #!/bin/bash case $1 in "start" ){ for(( i = 1;i <= 3;i = $i +1));do echo hadoop0$i kafka $1 ssh hado ...
分类:
其他好文 时间:
2021-06-20 18:41:23
阅读次数:
0
1、创建topic 使用 kafka-topics.sh脚本 kafka-topics.sh --create --partitions 3 --replication-factor 2 --topic test --zookeeper hadoop01:2181,hadoop02:2181,had ...
分类:
其他好文 时间:
2021-06-20 18:38:22
阅读次数:
0
有时候,我们想要查找Python安装路径及第三方库的存放路径,但可能忘记了当初安装时的具体路径,这个时候我们就可以通过命令快速找到这些路径。 查找Python安装路径 Windows下查找命令:where python3 D:\>where python3 D:\Python\installatio ...
分类:
编程语言 时间:
2021-06-20 18:12:11
阅读次数:
0
创建本地定时任务(注意修改时间) schtasks /create /sc once /tn testtask02 /tr "calc.exe" /sd 2021/06/19 /st 19:07 创建远程计算机的定时任务 schtasks /s 192.168.200.20 /u abking /p ...
分类:
其他好文 时间:
2021-06-20 17:44:36
阅读次数:
0
1、四大核心函数式接口 接口类型 表现形式 实现方法 说明 消费性接口 Consumer<T> void accept<T t> 参数为 t,无返回值 供给型接口 Supplier<T> T get() 无参数,返回值类型为 T 函数型接口 Function<T,R> R apply(T t) 参数 ...
分类:
编程语言 时间:
2021-06-20 17:43:37
阅读次数:
0
配置vscode auto save afterDelay 安装 npm install -g nodemon --registry=https://registry.npm.taobao.org 运行 // node test.js nodemon test.js ...
分类:
Web程序 时间:
2021-06-19 19:17:14
阅读次数:
0
准备:1. 规划3个集群节点:hosts主机都已经配置好映射,映射主机名分别为master,slave1,slave2,且已经进行ssh免密配置,确保端口互通,防火墙关闭 2. 先安装好scala(参考:https://www.cnblogs.com/sea520/p/13518158.html) ...
分类:
其他好文 时间:
2021-06-19 19:11:31
阅读次数:
0
排序属性与常规属性 数字属性属于排序属性 其他的属于常规属性 function Foo() { this[100] = 'test-100' this[1] = 'test-1' this["B"] = 'bar-B' this[50] = 'test-50' this[9] = 'test-9' ...
分类:
其他好文 时间:
2021-06-18 19:56:24
阅读次数:
0
用ffmpeg命令从视频文件中提取音频 命令:ffmpeg -i D:\AI\bili_data\test.mp4 -vn -y -acodec copy D:\AI\bili_data\output.aac # 从视频中提取音频 def video_to_audio(video_file,audi ...
分类:
编程语言 时间:
2021-06-18 19:49:50
阅读次数:
0