脚本位置 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
注:实例环境 vue cli构建的项目 app.vue <template> <Example></Example> </template> <script> import Example from './components/Example' export default { name: 'App ...
分类:
其他好文 时间:
2021-06-20 18:33:01
阅读次数:
0
1、概述 String类在 java.lang 包下,所以使用的时候不需要导包 String类代表字符串,Java程序中的所有字符串文字(例如"abc")都被实现为此类的实例。 也就是说,Java程序中所有的双引号字符串,都是String类的对象 字符串不可变,它们的值再创建后不能在更改 2、Str ...
分类:
其他好文 时间:
2021-06-20 18:32:29
阅读次数:
0
Spring的重点配置:<bean>标签:id属性:在容器中Bean实例的唯一标识,不允许重复 class属性:要实例化的Bean的全限定名 scope属性:Bean的作用范围,常用是Singleton(默认)和prototype <property>标签:属性注入 name属性:属性名称 valu ...
分类:
编程语言 时间:
2021-06-20 18:22:23
阅读次数:
0
注:实例环境 vue cli构建的项目 app.vue <template> <Example></Example> </template> <script> import Example from './components/Example' export default { name: 'App ...
分类:
其他好文 时间:
2021-06-20 18:21:34
阅读次数:
0
# 四位验证码 """四位数验证码""" code="" for i in range(4): print(i) index = random.randrange(4) #0-3 中随机取一个数 if index != i and index + 1 != i: code +=chr(random. ...
分类:
编程语言 时间:
2021-06-20 18:07:43
阅读次数:
0
注:实例环境 vue cli构建的项目 app.vue <template> <Example></Example> </template> <script> import Example from './components/Example' export default { name: 'App ...
分类:
其他好文 时间:
2021-06-20 18:04:04
阅读次数:
0
链表练习2 PAT乙级1025/甲级1074:反转链表 算法思路:将链表分块,每k个节点一块,针对每块中的节点进行反转操作 反转链表的伪代码 设该区域头节点为head,定义指针p,q,r p=head; q=p->next p->next = null; while(k--){ r = q->nex ...
分类:
编程语言 时间:
2021-06-20 17:43:12
阅读次数:
0
Sqoop(发音:skup)是一款开源的工具,主要用于在Hadoop(Hive)与传统的数据库(mysql、postgresql...)间进行数据的传递,可以将一个关系型数据库(例如 : MySQL ,Oracle ,Postgres等)中的数据导进到Hadoop的HDFS中,也可以将HDFS的数据 ...
分类:
数据库 时间:
2021-06-19 19:26:27
阅读次数:
0