Need tips on how to (ideally) integrate Spark on a local Hadoop cluster
Hi.
I am an Engineering student and am currently working on a Big Data project. I am doing the project one of the Computer Labs in my College (5 PCs - 1 Master, 4 Slaves - Ubuntu 18.04 - Hadoop 2.7.7).
For the first part of the project, I successfully configured the Multi-node cluster and carried out the required tasks (Analyzing a data set using a K-Nearest Neighbor Algorithm in Java).
For this I used this blog as a reference. (Additionally, if you think this isn't an ideal configuration, I would love to get some tips and feedback so that my Hadoop cluster works better).
Now, I plan to carry out the same analysis but with Spark on the same Hadoop Cluster. I tried to follow this guide to set it up (Note: I used the appropriate spark version) and it kind of worked. Spark does seem to start but there are numerous errors.
I am a beginner with very basic knowledge in this. It took me about 2-3 weeks to fully understand, configure and run my Hadoop cluster.
I would really appreciate if you could:
- Help point out the issues with the resources I linked and how can I rectify them.
- If you have any better tutorials, blogs or guides that I can read/watch and understand this better please share the links.
- Am I even doing this right? I have had no actual courses on these topics in College and I am just doing this because the field of Big Data, Machine Learning, etc interest me.
- How does Cloudera,, Hortonworks etc actually work? I have full systems with Ubuntu and not VMs and I have been unable to find a guide or blog that could help me setup either of those services for my cluster of 5 Computers. If these are any good, I would really appreciate it if you could explain it a little and/or link some blogs, guides or tutorials I could refer to.
I have been stuck on this for a few weeks now. Trying to figure out how to run it. Haven't had a lot of success. Any help would be really appreciated!
Thanks. :)
P.S: I am, what they call, a n00b when it comes to most of this. I have done Python Scripting, web dev, etc that a usual CS grad does. This is completely new though and for the most part I remain clueless. :D
Posted Dec 9, 2018, 3:16 PM UTC
I'd suggest to use Apache Ambari. It has good enough UI and could setup HDFS/YARN/Spark and few more BigData-related software packages with not so much of the hassle. Its installation guide could be found on project's web site.
My intern used it pretty well and prefers it to Cloudera for lab-grade setup.
Can I set it up for my setup in the lab or should I go for something like AWS? AWS might need a little convincing (my professor), but if I can do it on the setup I will be able to do it today itself.
Thank you for the suggestion. I'll go through the guide as well and try to set it up on my laptop's VM right now.
You could use your own cluster of 5 hosts you mentioned above. Or even few VMs on the same host (it would be slower for sure).
The goal of the project is to find out how changing the number of nodes impacts runtime and performance on both Hadoop and Spark, which is why I need them on different hosts. Glad to hear that it's possible and comparatively easier to setup. I will get on it now.