Saturday, October 11, 2014

How to install Hadoop Standalone / Pseudo Distributed mode 2.X.X on Mac with OS X Mavericks


                                                          Image source: http://www.javacodegeeks.com/2011/05/hadoop-soft-introduction.html

I was searching for a complete tutorial on installing Hadoop on Mac and play around with it. There are resources on installing Hadoop with "HomeBrew" which is the missing package manager in Mac ;). But i do not want to offload all the configuration burden to it as i need to learn this from top to bottom. I played with some and here are the configuration steps i followed.

1) You need to download and extract Hadoop Binary. I used Hadoop 2.5.1 which is the latest at the moment.

http://www.apache.org/dyn/closer.cgi/hadoop/common/

2) Extract the binary and lets called the location as HADOOP_HOME

eg: /Users/user1/software/hadoop-2.5.1

3) Add HADOOP_HOME and JAVA_HOME  as path variables to your system. You can add them to
bashrc or bash_profile.

You can add them by issuing following commands.


$vim ~/.bash_profile

Add following entries and change paths according to your machine's configurations. 


export JAVA_HOME=$(/usr/libexec/java_home)
export HADOOP_HOME=/Users/user1/software/hadoop-2.5.1
export PATH=$PATH:$HADOOP_HOME

and then reload the configurations.


$source ~/.bash_profile
(Follow these steps if you need to run in Pseudo Distributed mode. If you do continue you will have to add input files to the HDFS and then download output files from the HDFS too.)

4) Navigate to HADOOP_HOME and change following files as below.

etc/hadoop/core-site.xml:
<configuration>
    <property>
        <name>fs.defaultFS</name>
        <value>hdfs://localhost:9000</value>
    </property>
</configuration>
etc/hadoop/hdfs-site.xml:
<configuration>
    <property>
        <name>dfs.replication</name>
        <value>1</value>
    </property>
</configuration>

5) Setup passphraseless ssh

Now check that you can ssh to the localhost without a passphrase:
$ ssh localhost

If you cannot ssh to localhost without a passphrase, execute the following commands:

$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
 $ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

(You may need to enable remote-login in system preferences --> sharing if you have not enabled it later to login through ssh.)
6) Starting the Hadoop in Standalone mode.
 
Navigate to $HADOOP_HOME

Format the filesystem:

 $ bin/hdfs namenode -format


Start NameNode daemon and DataNode daemon:

$ sbin/start-dfs.sh



The hadoop daemon log output is written to the $HADOOP_LOG_DIR directory (defaults to $HADOOP_HOME/logs).
Browse the web interface for the NameNode; by default it is available at:

So good luck with all your map reduce jobs. :)

103 comments:

  1. excellent article! really helped me to get started on a mac.

    ReplyDelete
  2. Thanks a lot! Worked after breaking my head for ages!

    ReplyDelete
  3. Nice post.. Helped me a lot !!! Thanks Shelan..

    ReplyDelete
  4. I am really glad that it was helpful.

    ReplyDelete
  5. Thanks for giving the installation steps of haddop..Seo training in Chennai

    ReplyDelete
  6. Hadoop is one of the best tool which is used to handle the big data in the IT industy and it is the fastest growing field in information technology.
    hadoop training in Chennai | hadoop training chennai

    ReplyDelete
  7. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    Node JS training in chennai | Node JS training institute in chennai

    ReplyDelete
  8. Nice interesting information on the latest arrived technology which helped me to get update according to the recent trends.
    Salesforce Training in Chennai | Salesforce Course in Chennai

    ReplyDelete
  9. Great blog ... explanation and installation procedure are very clear and step by step so easy to understand.. thanks a lot for sharing this blog to us

    hadoop training | big data training | hadoop training in chennai

    ReplyDelete
  10. After reading this blog i very strong in this topics and this blog really helpful to all... explanation are very clear so very easy to understand... thanks a lot for sharing this blog

    hadoop training in chennai velachery | big data training in chennai velachery

    ReplyDelete
  11. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
    Informatica Training in Chennai
    Python Training in Chennai
    AngularJS Training in Chennai

    ReplyDelete
  12. It was awesome to read your blog, This Great content and useful to me.Web Development Company in Chennai

    ReplyDelete
  13. Pleasant Tips..Thanks for Sharing….We keep up hands on approach at work and in the workplace, keeping our business pragmatic, which recommends we can help you with your tree clearing and pruning in an invaluable and fit way.
    angularjs Training in chennai
    angularjs Training in chennai

    angularjs-Training in tambaram

    angularjs-Training in sholinganallur

    angularjs-Training in velachery

    ReplyDelete
  14. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.
    Java training in Marathahalli | Java training in Btm layout

    Java training in Jaya nagar | Java training in Electronic city

    ReplyDelete
  15. I love the way you write Business Analytics Online Course and share your niche! Very interesting and different! Keep it coming!

    ReplyDelete
  16. Great blog thanks for sharing The world around is changing at turbo speed. With digital marketing companies booming up at every corner, it can be hard to decide which is the best place for you to begin your online marketing journey. If you are based in Chennai, the answer is plain simple - Adhuntt Media has the best team that cover all your branding needs - SEO, Graphic Design, Logo Design, Social Media Marketing, Google Ads, Competitor Analysis and much more.
    digital marketing company in chennai

    ReplyDelete
  17. Excellent blog thanks for sharing Shopping for international cosmetics in Chennai? Look no further, the Pixies Beauty Shop has got your back with hundreds of international brands to choose from, that too with the best value.
    beauty Shop in Chennai


    ReplyDelete
  18. I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
    AWS training in chennai | AWS training in annanagar | AWS training in omr | AWS training in porur | AWS training in tambaram | AWS training in velachery

    ReplyDelete
  19. Thanks for sharing such information. This is really helpful for me. you can also visit our blog
    Banquets in Indore

    ReplyDelete
  20. Strategies help create the main framework and provide marketers the big picture. Tactics involve the implementation part of the marketing plan. These two elements must work together in synchrony for direct automation to produce results. https://updigital.ca

    ReplyDelete
  21. The blog you shared is very good. I expect more information from you like this blog. Thank you. Ziyyara Edutech’s online English language classes in Kuwait are designed to provide a comprehensive and immersive learning experience, with a strong emphasis on spoken English proficiency.
    For more info visit English language Class in kuwait

    ReplyDelete
  22. Grateful for sharing this information - extremely useful for businesses! Well-constructed terrace roofing shed structures maximize space utilization for both residential and commercial properties. Professional warehouse construction ensures efficient storage solutions and smooth operational workflows. Quality window & doors installation is essential for security, energy efficiency, and overall aesthetic appeal in any building project. Valuable business insights shared here!

    ReplyDelete
  23. Really helpful! Thank for such a useful information.
    Visit: https://www.kanan.co/classroom/ielts-coaching-in-bangalore/

    ReplyDelete
  24. Just finished giving feedback after my morning visit.
    It feels good knowing the store checks what customers think.
    Enter Your Aldi Review

    ReplyDelete
  25. I liked how quick the survey was while still being helpful.
    Shared concerns about long queues during evening hours.
    Share Input with H-E-B

    ReplyDelete
  26. The Wawa survey was simple and straight to the point.
    Added comments about improving the coffee station.
    Provide Wawa Feedback

    ReplyDelete
  27. Just submitted my Safeway review and found the form very clear.
    Shared thoughts about item availability during peak hours.
    Complete Your Safeway Feedback

    ReplyDelete
  28. The AutoZone survey worked perfectly on my first try.
    Shared feedback about product recommendations.
    Start Your AutoZone Response

    ReplyDelete
  29. I filled out the feedback form after enjoying fresh donuts.
    The survey allowed space for detailed comments.
    I shared ideas about improving checkout speed.
    It didn’t take long to complete.
    Provide Krispy Kreme Input

    ReplyDelete
  30. Los cuartos de final de la Copa Libertadores 2025 serán especiales porque por primera vez los ocho equipos clasificados son campeones del torneo, con representantes de Argentina, Brasil y Ecuador. Esto garantiza enfrentamientos de alto nivel como River vs. Palmeiras o Flamengo vs. Estudiantes, con historia y rivalidad en cada llave.
    https://jugabet-sports.cl/futbol/copa-libertadores-2025-cuartos-ocho-campeones/

    ReplyDelete
  31. Sharing your experience helps brands understand what customers really want and expect.
    You can easily participate by visiting Aldi Official Online Survey without any confusion.
    The questions are quick to answer and user-friendly for everyone.
    Just like McDVOICE, this survey system helps improve customer satisfaction.
    Keep your receipt ready and submit your feedback in minutes.

    ReplyDelete
  32. The CVS retail feedback survey is one of the simplest surveys I’ve taken. It only takes a few minutes and helps improve store service for everyone.
    Share CVS feedback

    ReplyDelete
  33. If you haven’t tried the Culver’s customer satisfaction survey yet, you’re missing out. I shared my honest feedback about the food and service, and I got a reward offer printed on my receipt. Quick and simple process.

    ReplyDelete
  34. I recently visited Jack in the Box and had a great experience, so I decided to Jack Listens Survey and share my feedback.
    The survey was easy to complete and didn’t take much time.
    I was able to provide my thoughts on the food and service.
    It's an excellent way to ensure better service and improve customer experience.
    I highly recommend completing the survey after your next visit.

    ReplyDelete
  35. KohlsFeedback makes it easy to leave detailed comments about your in-store experience without any hassle. I used the survey to praise the helpful associate who assisted me during checkout. It felt meaningful knowing that feedback reaches the people managing the store. The guide walks you through every step clearly and simply. Kohl's Store Survey – Quick Guide

    ReplyDelete
  36. I really enjoyed reading this blog. The explanation is simple and effective. Thanks for sharing.servicenow administrator course

    ReplyDelete
  37. Learners looking for cost-effective skill development can start with free Salesforce CPQ training to gain foundational knowledge of Salesforce CPQ tools and workflows.

    ReplyDelete
  38. I recently visited AutoZone for engine oil and accessories.
    The checkout process was fast, and the service was professional.
    So I decided to check this page to submit my review online.
    The website was responsive and easy to use.
    It’s convenient for customers.

    ReplyDelete
  39. The shopping experience at Ross was enjoyable and efficient.
    The products were easy to locate, and service was fast.
    So I accessed RossListens online review system to provide feedback.
    The process was easy and secure to complete.
    It helps improve customer experiences.

    ReplyDelete
  40. The shopping experience at Stop & Shop was efficient and stress-free.
    The store layout was organized, and customer support was helpful.
    So I accessed TalkToStopAndShop online review system to provide feedback.
    The process was easy and secure to complete.
    It helps improve customer experiences.

    ReplyDelete
  41. I recently visited Krispy Kreme and had a satisfying overall experience.
    My order was accurate, and the service was very fast.
    So I used KrispyKremeListens to submit my customer review.
    The website worked perfectly without delays.
    It’s a useful platform for honest feedback.

    ReplyDelete
  42. I recently visited Dunkin and had a satisfying overall experience.
    The checkout was quick, and my order was accurate.
    So I used TellDunkin to submit my customer review.
    The website worked perfectly without delays.
    It’s a useful platform for honest feedback.

    ReplyDelete
  43. The service at Academy Sports was quick and professional during my visit.
    The store environment was organized and easy to explore.
    So I logged into Academy Sports shopping feedback survey page to share my thoughts.
    Everything was simple and easy to access.
    It helps improve future store visits.

    ReplyDelete
  44. I recently had breakfast at IHOP and enjoyed the experience.
    The coffee was fresh, and staff members were attentive.
    So I logged into IHOP dining feedback survey page to share my thoughts.
    The process was simple and secure.
    It helps improve future visits.

    ReplyDelete
  45. I recently visited Firehouse Subs for a quick lunch break.
    The food was delicious, and service was handled efficiently.
    So I used Firehouselistens.com to submit my customer review.
    The survey worked perfectly from start to finish.
    It’s a helpful way to share honest feedback.

    ReplyDelete
  46. The staff at H-E-B were very helpful during my recent visit.
    The store layout made shopping quick and easy.
    So I accessed Www.heb.com/Survey feedback page to provide feedback.
    The process was simple and secure.
    It’s a useful survey platform.

    ReplyDelete
  47. My recent Church’s Chicken visit was very satisfying.
    The order was accurate, and service was quick.
    So I used secure ChurchsChickenFeedback survey to submit my review.
    The website was easy to navigate.
    It’s a convenient customer survey.

    ReplyDelete
  48. The steak was tender, flavorful, and cooked to perfection. The service team made sure every detail of our meal was enjoyable. I encourage customers to Share Your LongHorn Dining Experience and Get Rewards after their visit.

    ReplyDelete
  49. The platform provides a smooth browsing experience with quick-loading pages and a clean interface. If you're curious about the features available, simply Learn More and explore the website for yourself.

    ReplyDelete
  50. The website loads quickly and provides a user-friendly experience. I explored several sections and was impressed by how well the content is organized. The Official Paycheck Records Platform is simple to use and easy to understand.

    ReplyDelete
  51. I found the website easy to use and visually appealing. The content is structured well, and navigation feels intuitive. The FSA Login Information Center is worth exploring for anyone looking for related information.

    ReplyDelete
  52. I recently ordered a cake for a birthday celebration, and it exceeded all expectations. The flavor was rich, the texture was perfect, and the decoration looked amazing. To show my appreciation, I completed the Nothing Bundt Cakes Customer Feedback Survey. Businesses that focus on customer satisfaction deserve recognition.

    ReplyDelete
  53. I was impressed by how well-structured the PayByPlate MA Information Center is. The website offers a professional design, quick page loading times, and clear navigation. These features contribute to an overall positive user experience.

    ReplyDelete
  54. The OfficialHCTRA Online Account Services Guide is easy to explore thanks to its clear navigation and modern appearance. I appreciate how information is categorized in a logical manner, helping visitors move through the website efficiently. The overall experience was smooth and hassle-free.

    ReplyDelete
  55. Every time I visit ALDI, I leave satisfied with both the products and the customer service. The checkout lines move quickly, and the employees maintain a positive attitude even during busy hours. I completed the ALDI Guest Experience Survey to acknowledge the team's hard work and commitment to customer satisfaction.

    ReplyDelete
  56. I appreciate businesses that actively seek customer opinions. The website associated with MyShopRiteExperience Online provides an easy way for customers to share their experiences and contribute valuable feedback.

    ReplyDelete
  57. My family and I recently enjoyed a meal at Hardee’s, and we were impressed with both the food quality and customer service. Anyone interested in learning more about the feedback process can visit https://tellhappystar.onl/ and explore the available survey information.

    ReplyDelete
  58. The employees were courteous and made sure every part of my visit went smoothly. The restaurant atmosphere was welcoming, and the food was served fresh. I participated in the Hardee's Guest Satisfaction Survey to express my appreciation.

    ReplyDelete
  59. I was impressed by the professionalism of the staff and the quality of the food. Everything from ordering to dining was smooth and enjoyable. I completed the Wingstop Customer Experience Survey to express my appreciation for another great visit.

    ReplyDelete
  60. My overall experience was excellent, and I would gladly return in the future. The food was delicious, the service was prompt, and the restaurant was exceptionally clean. I encourage customers to Visit JackListensCom.Click after their visit and share their honest feedback about their dining experience.

    ReplyDelete
  61. One of the things I appreciate most about McDonald’s is its commitment to listening to customers. The restaurant consistently provides quality food and dependable service. Visitors can Learn More About McDVOICE Rewards and Feedback Program and discover how customer feedback contributes to improving future dining experiences.

    ReplyDelete
  62. My overall experience at Dollar General was excellent from start to finish. The store atmosphere was welcoming, the employees were helpful, and the products were easy to locate. I especially appreciated how efficiently the team managed the store, even during a busy shopping period. The customer service representatives demonstrated professionalism and dedication, which made a lasting impression on me. I used the DGCustomerFirst Online Survey Portal to share my positive comments and express my appreciation for the outstanding service. Businesses that actively seek customer opinions show that they genuinely care about improving the shopping experience, and Dollar General is a great example of that commitment.

    ReplyDelete
  63. The quality of service I received during my latest visit was exceptional. The restaurant team worked efficiently while maintaining a positive attitude toward customers. The food was delicious, and the environment was welcoming. Experiences like this deserve recognition, which is why I decided to Share Your Thoughts About KFC Food, Staff, and Overall Restaurant Experience and let the company know how satisfied I was.

    ReplyDelete
  64. The quality of service and attention to detail during my recent shopping trip left a lasting impression on me. The employees were professional, the store environment was welcoming, and the overall experience was enjoyable. I appreciated how easy it was to find products and complete my purchase without delays. Customers who have recently visited JCPenney can Visit JCPenney Survey Website and Provide Honest Customer Feedback to share their opinions and contribute to future improvements. Feedback programs help businesses better understand customer needs and expectations.

    ReplyDelete
  65. The atmosphere inside the store was relaxing and inviting, making it an ideal place to enjoy a coffee break. The employees were attentive and worked hard to ensure every customer received excellent service. My order was accurate, and the quality of the beverage exceeded expectations. I completed the Starbucks Guest Satisfaction Survey because I wanted to express my appreciation for the outstanding customer experience.

    ReplyDelete
  66. I appreciate companies that actively seek customer opinions and use feedback to improve their services. During my recent visit, the restaurant was well-maintained, the staff was attentive, and the food quality was excellent. Every item in my order was prepared exactly as requested. I participated in the Wendy's Customer Feedback Survey because I wanted to share my positive experience and acknowledge the efforts of the employees.

    ReplyDelete
  67. I was impressed by how organized and customer-focused the entire operation was. From purchasing tickets to enjoying refreshments and watching the movie, everything went smoothly. The employees were welcoming and helpful throughout my visit. I decided to Tell Regal Cinemas About Your Recent Movie Watching Experience because businesses benefit greatly from hearing honest customer opinions and suggestions.

    ReplyDelete
  68. The combination of delicious food, fast service, and a friendly atmosphere made my recent White Castle visit memorable. The employees worked efficiently while maintaining a welcoming attitude, and the restaurant was exceptionally clean. Customers who enjoy their visit should Share Your White Castle Restaurant Visit and Food Experience Online because customer feedback is valuable for helping businesses improve and maintain quality service. White Castle has built its reputation on customer satisfaction and quality dining experiences.

    ReplyDelete
  69. The quality of products and customer service exceeded my expectations during my latest visit. Everything was fresh, and the checkout process was fast. I participated in the Giant Food Guest Satisfaction Survey to express my appreciation for the excellent service.

    ReplyDelete
  70. I always enjoy stopping at Casey's because of the consistent quality and friendly service. During my recent visit, everything was handled professionally, and the staff ensured customers felt welcome. I shared my feedback through the Casey's Customer Opinion and Experience Survey Portal to recognize the excellent service.

    ReplyDelete
  71. I appreciate restaurants that consistently deliver both excellent food and exceptional customer service. During my latest visit, the employees were professional and attentive, making sure customers felt valued and appreciated. The sandwich was delicious, and the portion size was generous. I completed the Firehouse Subs Guest Satisfaction and Customer Opinion Survey because positive experiences deserve to be acknowledged and shared.

    ReplyDelete
  72. I always enjoy dining at Subway because of the consistent food quality and excellent customer service. During my recent visit, every aspect of the experience met or exceeded expectations. The employees were courteous, the restaurant was spotless, and the food was prepared quickly. I chose to Participate in the Official Subway Guest Satisfaction Survey Program because customer surveys provide valuable insights that help businesses continue delivering outstanding service.

    ReplyDelete
  73. One thing I appreciate most about Dunkin is the consistency of its service and product quality. During my latest visit, every employee was professional and attentive. The restaurant environment was clean, and my order was prepared accurately. I decided to Rate Your Dunkin Store Visit and Beverage Quality Experience because businesses benefit greatly from hearing honest customer opinions.

    ReplyDelete
  74. My family and I regularly shop at ShopRite because of the excellent selection, competitive prices, and outstanding customer service. During our recent visit, the store was organized, the products were fresh, and the employees made every effort to assist customers. The checkout process was smooth, and the overall shopping environment was comfortable and welcoming. I decided to Share Your ShopRite Grocery Shopping Experience and Store Feedback Online because businesses that actively seek customer opinions are often the ones most committed to improving service quality. Customer surveys help ShopRite better understand shopper expectations and maintain high standards.

    ReplyDelete
  75. My overall shopping experience was excellent from beginning to end. The store was organized, the products were easy to find, and the employees created a pleasant environment for shoppers. Every interaction I had with the staff was positive, and the checkout process was completed quickly. I decided to Help Big Lots Improve Future Customer Experiences Through Your Feedback because businesses that value customer input are often the ones that continue improving and delivering better shopping experiences.

    ReplyDelete
  76. I have visited many family restaurants over the years, but Cracker Barrel continues to stand out because of its unique atmosphere and consistent service quality. During my recent visit, the employees were attentive, courteous, and genuinely interested in providing a positive experience. The food was delicious, and the restaurant maintained excellent cleanliness standards throughout my visit. After such a pleasant dining experience, I decided to Complete the Cracker Barrel Guest Satisfaction Survey and Share Honest Feedback because customer feedback helps recognize hardworking employees and supports future improvements.

    ReplyDelete
  77. My overall experience at Five Guys was outstanding. The food was flavorful, the service was quick, and the staff demonstrated professionalism throughout my visit. Every aspect of the restaurant reflected a commitment to customer satisfaction. I chose to Visit FiveGuySurvey.xyz and Help Improve Future Customer Experiences because sharing feedback is a great way to support businesses that consistently provide excellent food and customer service.

    ReplyDelete
  78. My family and I had a wonderful dining experience at Culver’s recently. The restaurant was spotless, and the employees ensured every customer received prompt service. I was happy to Help Culver's Improve Future Customer Experiences Through Honest Feedback because businesses benefit greatly from hearing honest customer experiences.

    ReplyDelete
  79. The level of customer care I received was exceptional. Every representative was attentive, respectful, and eager to assist. The process was straightforward, and I felt confident that my concerns were being handled properly. I decided to Share Your HCO Support Team Experience and Service Review because excellent service deserves recognition.

    ReplyDelete
  80. My family and I recently visited Burlington, and we were impressed by the quality of service we received. The store was well-organized, and the employees were friendly and attentive. The variety of products available made shopping enjoyable, and we found several excellent bargains. I chose to Provide Feedback About Burlington Store Cleanliness and Staff Assistance because businesses that listen to customers are often the most successful.

    ReplyDelete
  81. One thing I appreciate most about AutoZone is its commitment to customer satisfaction. Every employee I interacted with demonstrated professionalism and a willingness to assist. The store carried a wide variety of automotive products, and the service exceeded my expectations. I chose to Help AutoZone Improve Future Customer Experiences Through Your Feedback because customer surveys help companies understand what they are doing well and where they can continue improving.

    ReplyDelete
  82. Patients often need quick access to healthcare records, appointment information, and communication tools. A centralized patient portal can simplify these tasks and improve overall healthcare management. I decided to Visit MyPennMedicine.Bond for Patient Account Information because easy access to healthcare resources helps patients stay informed and engaged.

    ReplyDelete