Тёмный

Create a Kafka Cluster Using AWS MSK And Stream Data - Full Coding Demo 

Johnny Chivers
Подписаться 21 тыс.
Просмотров 54 тыс.
50% 1

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 104   
@theamithsingh
@theamithsingh Год назад
great tutorial mate, would love to see more 'hands-on' tutorials like this on youtube.
@Quivun
@Quivun 3 года назад
Thanks! These demos help learning immensely!
@JohnnyChivers
@JohnnyChivers 3 года назад
Thanks for watching and the comment Quivun.
@杨正云
@杨正云 4 года назад
Nice post, very straight foward!
@JohnnyChivers
@JohnnyChivers 4 года назад
Thanks very much.
@ajaykumarveldhi6385
@ajaykumarveldhi6385 3 года назад
Thank you for the Demo ...
@JohnnyChivers
@JohnnyChivers 3 года назад
No problem Ajay.
@Chavoosi
@Chavoosi 4 года назад
Great tutorial mate. Thanks for your efforts
@JohnnyChivers
@JohnnyChivers 4 года назад
Thanks very much.
@li14lax
@li14lax 2 года назад
I keep getting timeout errors:" WARN Client session timed out, have not heard from server in 10027ms for sessionid 0x0 (org.apache.zookeeper.ClientCnxn)" when I try to create the topic. Is there a certain permission I need to grant on either the MSK service or the EC2 instance I'm currently running? Both are in the same VPC. TIA!
@matheusmandotti6121
@matheusmandotti6121 3 года назад
Just incredible, congratulations !! Great video
@JohnnyChivers
@JohnnyChivers 3 года назад
Thanks for watching Matheus.
@Explore_with_Azizul-maqsud
@Explore_with_Azizul-maqsud Год назад
Awesome & Very nice content... but, unfortunately, the lowest sound ever in the youtube videos I experienced here..?? Please record with loud speaking. Thank YOU
@jimbrannlund4677
@jimbrannlund4677 3 года назад
Upvoted partly for the accent. :)
@JohnnyChivers
@JohnnyChivers 3 года назад
Thanks for watching Jim.
@maksymkoval1754
@maksymkoval1754 4 года назад
Thank you! It was a very helpful)
@JohnnyChivers
@JohnnyChivers 4 года назад
Thank you very much
@SacrificialGoat94
@SacrificialGoat94 3 года назад
Instead of opening kafka up to everything or using the public ip you can just specify the security group of the ec2 instance ?
@JohnnyChivers
@JohnnyChivers 3 года назад
Yes, and absolutely advisable. I tend to make everything as open as possible on these demos, just so there are less chances of something going wrong for those following along. However, in the real world. Lock it down with security groups and Nacls.
@mqguitar06
@mqguitar06 4 года назад
Fantastic video, Thank you so much!
@JohnnyChivers
@JohnnyChivers 4 года назад
Thanks for watching.
@adrianomorsa8547
@adrianomorsa8547 2 года назад
Amazing tutorial
@JohnnyChivers
@JohnnyChivers 2 года назад
Thanks adriano
@melsaied101
@melsaied101 3 года назад
That was AWESOME
@JohnnyChivers
@JohnnyChivers 3 года назад
Thanks for watching Mohamed.
@nainaarabha9186
@nainaarabha9186 Год назад
I have one doubt. Can we host multiple kafka producers in one ec2 instance?
@rostislav_engineer
@rostislav_engineer 8 месяцев назад
thanks for this video!
@prithviboinpally2138
@prithviboinpally2138 3 года назад
Great tut. Audio is really quiet though
@JohnnyChivers
@JohnnyChivers 3 года назад
Thanks for watching Prithvi. First person to mention the audio. I usually edit using headphones so it wasnt noticeable to me, but I'll keep it in mine for future vids.
@danteiva8482
@danteiva8482 3 года назад
Thanks! All working properly!
@JohnnyChivers
@JohnnyChivers 3 года назад
@dante thanks for watching and following along.
@arrjay3814
@arrjay3814 2 года назад
Looks like the path in the wget command to download Kafka is now invalid. Can you share the latest command to download Kafka? Thanks for supporting the community Johnny!
@nikhilmittal2469
@nikhilmittal2469 Год назад
Hi guys, getting below error when trying to write message on the kafka topic. Any help would be appreciated. ERROR Error when sending message to topic AWSKafkaTutorialTopic with key: null, value: 14 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback) org.apache.kafka.common.errors.TimeoutException: Topic AWSKafkaTutorialTopic not present in metadata after 60000 ms. [Resolved] Its working for me now, had to change few security settings, "access control method"= unauthenticated access Encryption= TLS encryption
@ravindharanshanmugam8853
@ravindharanshanmugam8853 4 года назад
Thanks for the nice demo. one question from my end, how to stream data from filebeat to AWS MSK then to logstash? FileBeat => AWS MSK => Logstash (both file beat & logstash is in same vpc as of AWS MSK) I tried to connect as usual but hard luck. do we need to do any special config change?
@JohnnyChivers
@JohnnyChivers 4 года назад
I am not overly familiar with FileBeat, but there is a config file which let's you specify Kafka brokers and suspect this needs updated to reflect the MSK information. Being inside the same VPC should make this easier. www.elastic.co/guide/en/beats/filebeat/master/kafka-output.html
@ravindharanshanmugam8853
@ravindharanshanmugam8853 4 года назад
Johnny Chivers thank you. Will try it out.
@samjoshuaberchmans3901
@samjoshuaberchmans3901 3 года назад
Do you have any tutorials for Kafka/Spark streaming data ? Would like to view them. EMR will be having Spark , and we should be running spark from there. Consumer/Producer will be available in EC2. Would like to start a HBASE EMR to insert the values final into the HBASE tables. If you have any sample Videos for the same post it.
@JohnnyChivers
@JohnnyChivers 3 года назад
I don't at the moment unfortunately. It is on my future lesson plans list for a series on EMR using both Spark and Flink streaming, but they won't be completed for another couple of months as it stands. Presently, there is a lot of Kinesis on the channel - but in future I will be addressing this imbalance with other streaming technologies.
@sridharshan1614
@sridharshan1614 Год назад
we can do it in private to public like bastion host
@nishokganesan6804
@nishokganesan6804 3 года назад
Can we connect this EC-2 instance from out local and send messages to topic?
@PoojaGupta-bi1kw
@PoojaGupta-bi1kw 11 месяцев назад
how can i connect it with springboot producer app?
@nozzom82
@nozzom82 3 года назад
Hi Johnny, I am not getting the kafka bootstrap brookers - aws kafka get-bootstrap-brokers --region ap-southeast-2 --cluster-arn "arn:aws:kafka:ap-southeast-2:xyxdfasdfasf". For some reason I do not get any response. When I run the describe kafka command I do get the full response with Zookeeper id and cluster details.
@JohnnyChivers
@JohnnyChivers 3 года назад
Hi Nozzom, Thanks for watching. What version of the CLI are you using? There was an issue with this exact thing on 1.16 and going to 1.17.9 or higher seems to solve it.
@nozzom82
@nozzom82 3 года назад
@@JohnnyChivers I have not checked the version. Thank you for the suggestion.
@manasupadhyay8101
@manasupadhyay8101 2 года назад
Hey your video is awesome can you teach how to connect MSK from my local i am running spring boot application
@SwapnilGangrade1
@SwapnilGangrade1 2 года назад
Did you get any leads? I am also looking to connect to MSK using spring boot application running locally
@Hypnock1
@Hypnock1 4 года назад
Hello i have a question. Can i do this on AWS Free Tier? I want to try this and AWS Glue ETL Streaming jobs but cant find any information about it. Nice video!
@JohnnyChivers
@JohnnyChivers 4 года назад
The smallest MSK broker instance is a T3 small which isn’t in the free tier unfortunately. The pub/sub EC2 I spin up could be a micro instance in the free tier. It will just take slightly longer for the updates and installs than this demo. I had the larger instances in this demo spun up for 6 hours and it cost me 5 USD, so by using the free tier EC2 for pub/sub plus the smallest broker instance it shouldn’t be anymore that a few dollars. In terms of glue I have a getting started video on this channel ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-w54eIfIjJRw.html
@Hypnock1
@Hypnock1 4 года назад
​@@JohnnyChivers Thank you very much! Im trying to do some jobs using MSK and Glue ETL Streaming jobs into S3 (Parquet format). This will come in handy!
@diegobayona9785
@diegobayona9785 3 года назад
Great post!!! Thanks!!!
@JohnnyChivers
@JohnnyChivers 3 года назад
Thanks for watching Diego.
@yovelb131
@yovelb131 3 года назад
hey man great video! im trying to run the "aws kafa describe-cluster ....." command but im getting the following error: An error occurred (NotFoundException) when calling the DescribeCluster operation: The requested resource doesn’t exist. any chance for help?
@JohnnyChivers
@JohnnyChivers 3 года назад
Hi Yovel, thanks for watching. At what point are you running into the issue? Is it after the cluster has become available on the console?
@yovelb131
@yovelb131 3 года назад
​@@JohnnyChivers hey man thanks for the response, well i got that error when i tried to use the aws kafka command to get the MSK ARN in the terminal after the cluster became available. i managed to just use the information displayed in the aws console to complete the video though
@johnsaviello6240
@johnsaviello6240 3 года назад
I am getting the following error when I go to create the topic " Exception in thread "main" kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING". Any way to resolve this?
@JohnnyChivers
@JohnnyChivers 3 года назад
Hi John, It could be a couple of things. Firstly double check that the zoo keeper connection string is correct. It will time out if it can't reach zoo keeper. If the connection string is correct then it's probably a security group or ACL issue preventing the connection. In the demo i open up the security group to all traffic. This is a bit excessive but my aim is to make there less issues when following along. So, ensure you can reach zoo keeper and you're not being blocked by in bound rules in a security group. After that, you may have an ACL issue depending on how your aws account is configured. There is a great article on stacked overflow about it here. stackoverflow.com/questions/58173102/aws-msk-timeout-when-creating-kafka-topic-with-acl-turned-on Hope this helps. Johnny
@johnsaviello6240
@johnsaviello6240 3 года назад
@@JohnnyChivers hey Johnny. Turns out you were right about the security group - I was trying to adjust the main SG I was using to accommodate my local machine IP. Then I added in an inbound rule for said SG and it worked. Thanks!
@JohnnyChivers
@JohnnyChivers 3 года назад
No problem. Good news that it is working. Thanks for watching.
@AkashGupta-sy4pi
@AkashGupta-sy4pi 3 года назад
Hi, I am getting following issue Messages are rejected since there are fewer in-sync replicas than required" Can u please inform me what might be the case
@JohnnyChivers
@JohnnyChivers 3 года назад
Sounds like your minimum sync replicas have gone below the limit for the topic. It could be a configuration issue, but if your working to the exact settings I have? Then the cluster maybe unhealthy due to disc space running out. There is some debugging information about disc space and sync issues here docs.aws.amazon.com/msk/latest/developerguide/troubleshooting.html#troubleshooting-offlinepartitions-outofsyncreplicas
@AkashGupta-sy4pi
@AkashGupta-sy4pi 3 года назад
@@JohnnyChivers All brokers have enough disc space, still it is throwing same error
@JohnnyChivers
@JohnnyChivers 3 года назад
It may be one of those annoying cases where deleting the MSK cluster and rebuilding from scratch could be the best solution. I've had a couple of issues with EMR today where deprovisioning and reprovisioning solved the issue.
@mharongundayao6242
@mharongundayao6242 3 года назад
Amazing tutorial Thank you! Can I connect my spring boot app to amazon MSK cluster? using kafka connect?
@JohnnyChivers
@JohnnyChivers 3 года назад
Thank you Mharon. Yes, you can use kafka connect. Unfortunately, there is no MSK managed service for this. There is however a great stack overflow post on this exact topic and a link to a video that is really helpful on the best answer post. stackoverflow.com/questions/59194786/kafka-connect-with-amazon-msk
@mharongundayao6242
@mharongundayao6242 3 года назад
@@JohnnyChivers Okay Thank you for this Do you suggest using Amazon MSK When you want your spring boot app to produce and as well as consume using the @KafkaListener annotation in the Spring boot app? from the amazon msk cluster?
@JohnnyChivers
@JohnnyChivers 3 года назад
It certainly can be done. It's really a personal thing. I've always found that third party offerings of kafka remove the headache of managing your own cluster. The great thing about MSK is the abstraction. However, the trade off is you don't have as much control compared to building your own cluster from scratch. But, building one from scratch and then maintaining it is not a simple task.
@jkho8365
@jkho8365 4 года назад
could you do 1 more on how to use consumer groups? Realise currently i get all. from beginning :)
@JohnnyChivers
@JohnnyChivers 4 года назад
Yes. I'll add it to the list of future requested videos. I hope you found this one useful for getting started.
@jkho8365
@jkho8365 4 года назад
@@JohnnyChivers yes it was, managed to do it
@zheng5152
@zheng5152 3 года назад
I love your desktop background image,how to get it!
@JohnnyChivers
@JohnnyChivers 3 года назад
It's one of the desktops on Mac Dark Mode. If you Google "dark mode mac ocean" the background is available as a wallpaper on the 5/6th hit on image search. You can download it and use that as a desktop on Windows or Linux.
@adrianomorsa8547
@adrianomorsa8547 2 года назад
Hi Johnny, Connect Amazon MSK cluster to on-premises web server?
@JohnnyChivers
@JohnnyChivers 2 года назад
Yes, just be careful with latency.
@adrianomorsa8547
@adrianomorsa8547 2 года назад
@@JohnnyChivers Which way do you suggest doing ?
@raghupathym25
@raghupathym25 3 года назад
Nice video man, can u help me on this error
@JohnnyChivers
@JohnnyChivers 3 года назад
It's a bit of a hard one without more detail. If you had your zoo keeper server up, and the client connected it maybe a case you need to restart your zookeeper server and reconnect the client. Make sure you do this from separate terminal windows.
@raghupathym25
@raghupathym25 3 года назад
@@JohnnyChivers thank u, will try
@raghupathym25
@raghupathym25 3 года назад
@@JohnnyChivers can't find commands to stop zookeeper on windows
@JohnnyChivers
@JohnnyChivers 3 года назад
Are not using msk and shhing into it? Same as the tutorial? If so, you'll be on Linux even if your using a Windows machine.
@raghupathym25
@raghupathym25 3 года назад
@@JohnnyChivers yeah i am following the steps, but getting WARN Client session timed out, have not heard from server in 10026ms for sessionid 0x0
@johnrbl6458
@johnrbl6458 2 года назад
nice
@JohnnyChivers
@JohnnyChivers 2 года назад
Thanks
@nareshrenukuntla7806
@nareshrenukuntla7806 2 года назад
Great, if you can increase the font size for next videos it would be helpful
@JohnnyChivers
@JohnnyChivers 2 года назад
Thanks for watching Naresh. I’ll increase the font size.
@c1i2s3c4o5
@c1i2s3c4o5 Год назад
yes, you could have maximized your ec2 putty windows , audio could have been little louder, also windows flipping was little faster, btw great content all in all!!!
@ramachandraraopamidimarri1578
Video Volume is very low
@hoddybhaba6704
@hoddybhaba6704 Год назад
audio quality is not good
@kevinmilner2072
@kevinmilner2072 Год назад
I really wish I could hear what you are saying.
@srinivasamaddipati356
@srinivasamaddipati356 2 года назад
Too low audio and font size.
@samarthkulkarni6947
@samarthkulkarni6947 Год назад
aws kafka get-bootstrap-brokers --cluster-arn arn:aws:kafka:us-east-1:022942928579:cluster/demo-cluster-1 --region us-east-1 after hiting this command not getting output
Далее
▼ ЕДУ В ТИХОСРАНСК 💪
37:00
Просмотров 237 тыс.
Kinesis versus MSK
26:35
Просмотров 8 тыс.
21. What services should I use for events?
21:37
Просмотров 3,5 тыс.
AWS Glue ETL Vs EMR - Which one should I use?
8:05
Просмотров 41 тыс.
Kubernetes 101 workshop - complete hands-on
3:56:03
Просмотров 1,6 млн
Should My Startup use Kinesis or MSK?
9:33
Просмотров 11 тыс.
Apache Kafka Explained (Comprehensive Overview)
19:18
Просмотров 210 тыс.