SlideShare a Scribd company logo
1 of 20
Managing Services
  7/6/2012

© 2012 MapR Technologies   Managing Services 1
Managing Services
   Agenda
   • Review: What are Services?
   • Exercise: Managing Services
   • The Warden
   • Exercise: Stop and Start the Warden
   • Service Failover
   • Exercise: Failover
   • Best Practices



© 2012 MapR Technologies       Managing Services 2
Managing Services
   Objectives
   At the end of this module you will be able to:
   • Identify the different MapR services
   • Describe the function that each MapR service provides
   • See which services are running on a node
   • Describe the purpose of the Warden
   • Explain how service failover works
   • List the best practices for running MapR services




© 2012 MapR Technologies       Managing Services 3
Review: What are
                               Services?



© 2012 MapR Technologies      Managing Services 4
What Are Services?
                                              Services implement roles
                                               fulfilled by a node
                                              Administrative services:
                                               –   ZooKeeper CLDB, JobTracker, NFS,
                                                   etc.
                                              Processing services:
                                               –   TaskTracker, FileServer, Hbase, etc.
                                              Application services:
                                               –   Distinct from scripts or run-at-will
                                                   applications like Pig

               A daemon called the Warden manages services

© 2012 MapR Technologies        Managing Services 5
Managing Services


                                             Monitoring
                                                 JPS/PS
                                                 MapR CLI/RESTful API
                                                 MCS Dashboard
                                             Starting/stopping
                                             Failover




© 2012 MapR Technologies       Managing Services 6
Exercise:
                           Managing Services



© 2012 MapR Technologies       Managing Services 7
See What is Running




                                           MCS Dashboard
                                           jps/ps
                                           maprcli dashboard info




© 2012 MapR Technologies       Managing Services 8
Start, Stop, Restart Services

                                              MapR Control System
                                              maprcli node services
                                                -service action (start, stop, restart)
                                              optional
                                                 maprcli node services
                                                    -action action
                                                    -name name
                                                    -h to get help



                           These mechanisms use the warden

© 2012 MapR Technologies           Managing Services 9
The Warden




© 2012 MapR Technologies    Managing Services 10
The Warden

                                          Knows what should be running
                                           and allocates memory:
                                           warden.conf


                                          /opt/mapr/roles used to
                                           determine services when
                                           configure.sh is run

                                          Manages services and HA for
                                           services


© 2012 MapR Technologies    Managing Services 11
Exercise:
                           Stop and Start the
                                Warden


© 2012 MapR Technologies       Managing Services 12
Start/Stop/Restart the Warden



                                /etc/init.d/mapr-warden stop
                                /etc/init.d/mapr-warden start
                                /etc/init.d/mapr-warden restart




© 2012 MapR Technologies   Managing Services 13
Service Failover




© 2012 MapR Technologies      Managing Services 14
Failover

       CLDB          Warm Standby

                                                      Run at will   Pig
                     Followers
         ZK
                     (With a minimum)
                                                    Hot spares
                                                                    NFS
                                                 (no minimum)
          JT          Cold standby

               ZooKeeper and NFS are actually more complex

© 2012 MapR Technologies       Managing Services 15
Exercise:
                            Failover



© 2012 MapR Technologies   Managing Services 16
Failover




                     Let’s kill a node and see what happens!

© 2012 MapR Technologies       Managing Services 17
Best Practices




© 2012 MapR Technologies     Managing Services 18
Best Practices

     Depends on the size of your cluster and load
     In general, avoid running compute-intensive services on the same
      node
     Some suggestions:
      –   Avoid running ZooKeeper and CLDB together
      –   If you run TaskTracker on CLDB or ZK nodes, reduce slots
      –   Avoid running the active JobTracker on the primary CLDB node
      –   Avoid running the active JobTracker on ZK nodes




© 2012 MapR Technologies         Managing Services 19
Questions




© 2012 MapR Technologies   Managing Services 20

More Related Content

Similar to 41a managing services

42 lab-managing services
42 lab-managing services42 lab-managing services
42 lab-managing servicesmapr-academy
 
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?  Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You? EMC
 
Building Hadoop-as-a-Service with Pivotal Hadoop Distribution, Serengeti, & I...
Building Hadoop-as-a-Service with Pivotal Hadoop Distribution, Serengeti, & I...Building Hadoop-as-a-Service with Pivotal Hadoop Distribution, Serengeti, & I...
Building Hadoop-as-a-Service with Pivotal Hadoop Distribution, Serengeti, & I...EMC
 
Hadoop - Past, Present and Future - v2.0
Hadoop - Past, Present and Future - v2.0Hadoop - Past, Present and Future - v2.0
Hadoop - Past, Present and Future - v2.0Big Data Joe™ Rossi
 
Taming Latency: Case Studies in MapReduce Data Analytics
Taming Latency: Case Studies in MapReduce Data AnalyticsTaming Latency: Case Studies in MapReduce Data Analytics
Taming Latency: Case Studies in MapReduce Data AnalyticsEMC
 
Tune my Application Server! Java Appl. Performance mit JVMD - Gérard Wisson, ...
Tune my Application Server! Java Appl. Performance mit JVMD - Gérard Wisson, ...Tune my Application Server! Java Appl. Performance mit JVMD - Gérard Wisson, ...
Tune my Application Server! Java Appl. Performance mit JVMD - Gérard Wisson, ...dbi services
 
4 supporting h base jeff, jon, kathleen - cloudera - final 2
4 supporting h base   jeff, jon, kathleen - cloudera - final 24 supporting h base   jeff, jon, kathleen - cloudera - final 2
4 supporting h base jeff, jon, kathleen - cloudera - final 2Cloudera, Inc.
 
Monitoring of Web Applications and GlassFish for Performance and Availability...
Monitoring of Web Applications and GlassFish for Performance and Availability...Monitoring of Web Applications and GlassFish for Performance and Availability...
Monitoring of Web Applications and GlassFish for Performance and Availability...SL Corporation
 
Why Cloud Management Makes Sense - Josh Fraser
Why Cloud Management Makes Sense - Josh FraserWhy Cloud Management Makes Sense - Josh Fraser
Why Cloud Management Makes Sense - Josh FraserAmazon Web Services
 
OWD2011 - 7 - Uw datacentrum naar de cloud - Rogier Spoor
OWD2011 - 7 - Uw datacentrum naar de cloud - Rogier SpoorOWD2011 - 7 - Uw datacentrum naar de cloud - Rogier Spoor
OWD2011 - 7 - Uw datacentrum naar de cloud - Rogier SpoorSURF Events
 
YARN - Hadoop's Resource Manager
YARN - Hadoop's Resource ManagerYARN - Hadoop's Resource Manager
YARN - Hadoop's Resource ManagerVertiCloud Inc
 

Similar to 41a managing services (20)

48a tuning
48a tuning48a tuning
48a tuning
 
Yarn
YarnYarn
Yarn
 
42 lab-managing services
42 lab-managing services42 lab-managing services
42 lab-managing services
 
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?  Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?
 
102 1600-1630
102 1600-1630102 1600-1630
102 1600-1630
 
Building Hadoop-as-a-Service with Pivotal Hadoop Distribution, Serengeti, & I...
Building Hadoop-as-a-Service with Pivotal Hadoop Distribution, Serengeti, & I...Building Hadoop-as-a-Service with Pivotal Hadoop Distribution, Serengeti, & I...
Building Hadoop-as-a-Service with Pivotal Hadoop Distribution, Serengeti, & I...
 
13c planning
13c planning13c planning
13c planning
 
Hadoop - Past, Present and Future - v2.0
Hadoop - Past, Present and Future - v2.0Hadoop - Past, Present and Future - v2.0
Hadoop - Past, Present and Future - v2.0
 
Taming Latency: Case Studies in MapReduce Data Analytics
Taming Latency: Case Studies in MapReduce Data AnalyticsTaming Latency: Case Studies in MapReduce Data Analytics
Taming Latency: Case Studies in MapReduce Data Analytics
 
22 configuration
22 configuration22 configuration
22 configuration
 
Yarns About Yarn
Yarns About YarnYarns About Yarn
Yarns About Yarn
 
Tune my Application Server! Java Appl. Performance mit JVMD - Gérard Wisson, ...
Tune my Application Server! Java Appl. Performance mit JVMD - Gérard Wisson, ...Tune my Application Server! Java Appl. Performance mit JVMD - Gérard Wisson, ...
Tune my Application Server! Java Appl. Performance mit JVMD - Gérard Wisson, ...
 
4 supporting h base jeff, jon, kathleen - cloudera - final 2
4 supporting h base   jeff, jon, kathleen - cloudera - final 24 supporting h base   jeff, jon, kathleen - cloudera - final 2
4 supporting h base jeff, jon, kathleen - cloudera - final 2
 
London hug
London hugLondon hug
London hug
 
Monitoring of Web Applications and GlassFish for Performance and Availability...
Monitoring of Web Applications and GlassFish for Performance and Availability...Monitoring of Web Applications and GlassFish for Performance and Availability...
Monitoring of Web Applications and GlassFish for Performance and Availability...
 
Why Cloud Management Makes Sense - Josh Fraser
Why Cloud Management Makes Sense - Josh FraserWhy Cloud Management Makes Sense - Josh Fraser
Why Cloud Management Makes Sense - Josh Fraser
 
Rws 120032 final
Rws 120032 finalRws 120032 final
Rws 120032 final
 
HugNov14
HugNov14HugNov14
HugNov14
 
OWD2011 - 7 - Uw datacentrum naar de cloud - Rogier Spoor
OWD2011 - 7 - Uw datacentrum naar de cloud - Rogier SpoorOWD2011 - 7 - Uw datacentrum naar de cloud - Rogier Spoor
OWD2011 - 7 - Uw datacentrum naar de cloud - Rogier Spoor
 
YARN - Hadoop's Resource Manager
YARN - Hadoop's Resource ManagerYARN - Hadoop's Resource Manager
YARN - Hadoop's Resource Manager
 

More from mapr-academy

55a remote cluster
55a remote cluster55a remote cluster
55a remote clustermapr-academy
 
3 map r installation & setup administration course description
3 map r installation & setup administration course description3 map r installation & setup administration course description
3 map r installation & setup administration course descriptionmapr-academy
 

More from mapr-academy (6)

55a remote cluster
55a remote cluster55a remote cluster
55a remote cluster
 
53 lab-nfs
53 lab-nfs53 lab-nfs
53 lab-nfs
 
51 lab-volumes
51 lab-volumes51 lab-volumes
51 lab-volumes
 
14 lab-planing
14 lab-planing14 lab-planing
14 lab-planing
 
10c introduction
10c introduction10c introduction
10c introduction
 
3 map r installation & setup administration course description
3 map r installation & setup administration course description3 map r installation & setup administration course description
3 map r installation & setup administration course description
 

Recently uploaded

Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdftbatkhuu1
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation SlidesKeppelCorporation
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒anilsa9823
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsP&CO
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Lviv Startup Club
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst SummitHolger Mueller
 
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...Any kyc Account
 
Sales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessSales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessAggregage
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Roomdivyansh0kumar0
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Servicediscovermytutordmt
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Dave Litwiller
 
BEST ✨ Call Girls In Indirapuram Ghaziabad ✔️ 9871031762 ✔️ Escorts Service...
BEST ✨ Call Girls In  Indirapuram Ghaziabad  ✔️ 9871031762 ✔️ Escorts Service...BEST ✨ Call Girls In  Indirapuram Ghaziabad  ✔️ 9871031762 ✔️ Escorts Service...
BEST ✨ Call Girls In Indirapuram Ghaziabad ✔️ 9871031762 ✔️ Escorts Service...noida100girls
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth MarketingShawn Pang
 
VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service Jamshedpur
VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service JamshedpurVIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service Jamshedpur
VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service JamshedpurSuhani Kapoor
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesDipal Arora
 
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Tina Ji
 

Recently uploaded (20)

Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdf
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst Summit
 
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
 
Sales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessSales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for Success
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Service
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
BEST ✨ Call Girls In Indirapuram Ghaziabad ✔️ 9871031762 ✔️ Escorts Service...
BEST ✨ Call Girls In  Indirapuram Ghaziabad  ✔️ 9871031762 ✔️ Escorts Service...BEST ✨ Call Girls In  Indirapuram Ghaziabad  ✔️ 9871031762 ✔️ Escorts Service...
BEST ✨ Call Girls In Indirapuram Ghaziabad ✔️ 9871031762 ✔️ Escorts Service...
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
 
VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service Jamshedpur
VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service JamshedpurVIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service Jamshedpur
VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service Jamshedpur
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
 

41a managing services

  • 1. Managing Services 7/6/2012 © 2012 MapR Technologies Managing Services 1
  • 2. Managing Services Agenda • Review: What are Services? • Exercise: Managing Services • The Warden • Exercise: Stop and Start the Warden • Service Failover • Exercise: Failover • Best Practices © 2012 MapR Technologies Managing Services 2
  • 3. Managing Services Objectives At the end of this module you will be able to: • Identify the different MapR services • Describe the function that each MapR service provides • See which services are running on a node • Describe the purpose of the Warden • Explain how service failover works • List the best practices for running MapR services © 2012 MapR Technologies Managing Services 3
  • 4. Review: What are Services? © 2012 MapR Technologies Managing Services 4
  • 5. What Are Services?  Services implement roles fulfilled by a node  Administrative services: – ZooKeeper CLDB, JobTracker, NFS, etc.  Processing services: – TaskTracker, FileServer, Hbase, etc.  Application services: – Distinct from scripts or run-at-will applications like Pig A daemon called the Warden manages services © 2012 MapR Technologies Managing Services 5
  • 6. Managing Services  Monitoring  JPS/PS  MapR CLI/RESTful API  MCS Dashboard  Starting/stopping  Failover © 2012 MapR Technologies Managing Services 6
  • 7. Exercise: Managing Services © 2012 MapR Technologies Managing Services 7
  • 8. See What is Running  MCS Dashboard  jps/ps  maprcli dashboard info © 2012 MapR Technologies Managing Services 8
  • 9. Start, Stop, Restart Services  MapR Control System  maprcli node services -service action (start, stop, restart)  optional maprcli node services -action action -name name -h to get help These mechanisms use the warden © 2012 MapR Technologies Managing Services 9
  • 10. The Warden © 2012 MapR Technologies Managing Services 10
  • 11. The Warden  Knows what should be running and allocates memory: warden.conf  /opt/mapr/roles used to determine services when configure.sh is run  Manages services and HA for services © 2012 MapR Technologies Managing Services 11
  • 12. Exercise: Stop and Start the Warden © 2012 MapR Technologies Managing Services 12
  • 13. Start/Stop/Restart the Warden  /etc/init.d/mapr-warden stop  /etc/init.d/mapr-warden start  /etc/init.d/mapr-warden restart © 2012 MapR Technologies Managing Services 13
  • 14. Service Failover © 2012 MapR Technologies Managing Services 14
  • 15. Failover CLDB Warm Standby Run at will Pig Followers ZK (With a minimum) Hot spares NFS (no minimum) JT Cold standby ZooKeeper and NFS are actually more complex © 2012 MapR Technologies Managing Services 15
  • 16. Exercise: Failover © 2012 MapR Technologies Managing Services 16
  • 17. Failover Let’s kill a node and see what happens! © 2012 MapR Technologies Managing Services 17
  • 18. Best Practices © 2012 MapR Technologies Managing Services 18
  • 19. Best Practices  Depends on the size of your cluster and load  In general, avoid running compute-intensive services on the same node  Some suggestions: – Avoid running ZooKeeper and CLDB together – If you run TaskTracker on CLDB or ZK nodes, reduce slots – Avoid running the active JobTracker on the primary CLDB node – Avoid running the active JobTracker on ZK nodes © 2012 MapR Technologies Managing Services 19
  • 20. Questions © 2012 MapR Technologies Managing Services 20