先自我介绍一下,小编浙江大学毕业,去过华为、字节跳动等大厂,目前阿里P7

深知大多数程序员,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!

因此收集整理了一份《2024年最新大数据全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友。
img
img
img
img
img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上大数据知识点,真正体系化!

由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新

如果你需要这些资料,可以添加V获取:vip204888 (备注大数据)
img

正文

clusterIP: None
selector:
app: zk

apiVersion: v1
kind: Service
metadata:
name: zk-cs
labels:
app: zk
spec:
ports:

  • port: 2181
    targetPort: 2181
    name: client
    selector:
    app: zk

apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: zk-pdb
spec:
selector:
matchLabels:
app: zk
maxUnavailable: 2

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: zk
spec:
selector:
matchLabels:
app: zk
serviceName: zk-hs
replicas: 3
updateStrategy:
type: RollingUpdate
podManagementPolicy: OrderedReady
template:
metadata:
labels:
app: zk
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: “app”
operator: In
values:
- zk
topologyKey: “kubernetes.io/hostname”
containers:
- name: kubernetes-zookeeper
imagePullPolicy: IfNotPresent
image: “zhaoguanghui6/kubernetes-zookeeper:1.0-3.4.10”
resources:
requests:
memory: “0.5Gi”
cpu: “0.5”
ports:
- containerPort: 2181
name: client
- containerPort: 2888
name: server
- containerPort: 3888
name: leader-election
command:
- sh
- -c
- “start-zookeeper
–servers=3
–data_dir=/var/lib/zookeeper/data
–data_log_dir=/var/lib/zookeeper/data/log
–conf_dir=/opt/zookeeper/conf
–client_port=2181
–election_port=3888
–server_port=2888
–tick_time=2000
–init_limit=10
–sync_limit=5
–heap=512M
–max_client_cnxns=60
–snap_retain_count=3
–purge_interval=12
–max_session_timeout=40000
–min_session_timeout=4000
–log_level=INFO”
readinessProbe:
exec:
command:
- sh
- -c
- “zookeeper-ready 2181”
initialDelaySeconds: 10
timeoutSeconds: 5
livenessProbe:
exec:
command:
- sh
- -c
- “zookeeper-ready 2181”
initialDelaySeconds: 10
timeoutSeconds: 5
volumeMounts:
- name: datadir
mountPath: /var/lib/zookeeper
securityContext:
runAsUser: 1000
fsGroup: 1000
volumeClaimTemplates:

  • metadata:
    name: datadir
    spec:
    storageClassName: nfs-client
    accessModes: [ “ReadWriteOnce” ]
    resources:
    requests:
    storage: 1Gi

for i in 0 1 2; do kubectl exec zk-$i – hostname -f; done  
 zk-0.zk-headless.default.svc.cluster.local


zk-1.zk-headless.default.svc.cluster.local


zk-2.zk-headless.default.svc.cluster.local  
 **kafka.yaml**




apiVersion: v1
kind: Service
metadata:
name: kafka-hs
labels:
app: kafka
spec:
ports:

  • port: 9092
    name: server
    clusterIP: None
    selector:
    app: kafka

apiVersion: v1
kind: Service
metadata:
name: kafka-cs
labels:
app: kafka
spec:
selector:
app: kafka
type: NodePort
ports:

  • name: client
    port: 9092
    nodePort: 30092

apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: kafka-pdb
spec:
selector:
matchLabels:
app: kafka
minAvailable: 1

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: kafka
spec:
serviceName: kafka-hs
replicas: 3
selector:
matchLabels:
app: kafka
template:
metadata:
labels:
app: kafka
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: “app”
operator: In
values:
- kafka
topologyKey: “kubernetes.io/hostname”
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: “app”
operator: In
values:
- zk
topologyKey: “kubernetes.io/hostname”
terminationGracePeriodSeconds: 300
containers:
- name: kafka
imagePullPolicy: IfNotPresent
image: registry.cn-hangzhou.aliyuncs.com/jaxzhai/k8skafka:v1
resources:
requests:
memory: “1Gi”
cpu: 500m
ports:
- containerPort: 9092
name: server
command:
- sh
- -c
- "exec kafka-server-start.sh /opt/kafka/config/server.properties --override broker.id=${HOSTNAME##*-}
–override listeners=PLAINTEXT://:9092
–override zookeeper.connect=zk-0.zk-hs.default.svc.cluster.local:2181,zk-0.zk-hs.default.svc.cluster.local:2181,zk-0.zk-hs.default.svc.cluster.local:2181
–override log.dir=/var/lib/kafka
–override auto.create.topics.enable=true
–override auto.leader.rebalance.enable=true
–override background.threads=10
–override compression.type=producer
–override delete.topic.enable=true
–override leader.imbalance.check.interval.seconds=300
–override leader.imbalance.per.broker.percentage=10
–override log.flush.interval.messages=9223372036854775807
–override log.flush.offset.checkpoint.interval.ms=60000
–override log.flush.scheduler.interval.ms=9223372036854775807
–override log.retention.bytes=-1
–override log.retention.hours=168
–override log.roll.hours=168
–override log.roll.jitter.hours=0
–override log.segment.bytes=1073741824
–override log.segment.delete.delay.ms=60000
–override message.max.bytes=1000012
–override min.insync.replicas=1
–override num.io.threads=8
–override num.network.threads=3
–override num.recovery.threads.per.data.dir=1
–override num.replica.fetchers=1
–override offset.metadata.max.bytes=4096
–override offsets.commit.required.acks=-1
–override offsets.commit.timeout.ms=5000
–override offsets.load.buffer.size=5242880
–override offsets.retention.check.interval.ms=600000
–override offsets.retention.minutes=1440
–override offsets.topic.compression.codec=0
–override offsets.topic.num.partitions=50
–override offsets.topic.replication.factor=3
–override offsets.topic.segment.bytes=104857600
–override queued.max.requests=500
–override quota.consumer.default=9223372036854775807
–override quota.producer.default=9223372036854775807
–override replica.fetch.min.bytes=1
–override replica.fetch.wait.max.ms=500
–override replica.high.watermark.checkpoint.interval.ms=5000
–override replica.lag.time.max.ms=10000
–override replica.socket.receive.buffer.bytes=65536
–override replica.socket.timeout.ms=30000
–override request.timeout.ms=30000
–override socket.receive.buffer.bytes=102400
–override socket.request.max.bytes=104857600
–override socket.send.buffer.bytes=102400
–override unclean.leader.election.enable=true
–override zookeeper.session.timeout.ms=6000
–override zookeeper.set.acl=false
–override broker.id.generation.enable=true
–override connections.max.idle.ms=600000
–override controlled.shutdown.enable=true
–override controlled.shutdown.max.retries=3
–override controlled.shutdown.retry.backoff.ms=5000
–override controller.socket.timeout.ms=30000
–override default.replication.factor=1
–override fetch.purgatory.purge.interval.requests=1000
–override group.max.session.timeout.ms=300000
–override group.min.session.timeout.ms=6000

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化的资料的朋友,可以添加V获取:vip204888 (备注大数据)
img

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

      --override group.min.session.timeout.ms=6000 

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化的资料的朋友,可以添加V获取:vip204888 (备注大数据)
[外链图片转存中…(img-8DEvKm9F-1713306537970)]

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐