Top Banner
Managing Apache HAWQ with Apache AMBARI Apache Ambari Meetup - June 27, 2016 Alexander Denissov Bhuvnesh Chaudhary Mithun Mathew Apache HAWQ (incubating) Apache Ambari
20

Managing Apache HAWQ with Apache AMBARI

Jan 09, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Managing Apache HAWQ with Apache AMBARI

Managing Apache HAWQwith Apache AMBARI

Apache Ambari Meetup - June 27, 2016

Alexander DenissovBhuvnesh Chaudhary

Mithun Mathew

Apache HAWQ(incubating) Apache Ambari

Page 2: Managing Apache HAWQ with Apache AMBARI

Hadoop-native SQL query engine and advanced analytics MPP database that offers:

1

2

3

4

5

interactive query execution

high performance

machine learning algorithms

tools for Data Analysts and Data Scientists

processing for large and complex data sets

APACHE HAWQ (incubating)

Page 3: Managing Apache HAWQ with Apache AMBARI

APACHE HAWQ (incubating) ARCHITECTURE

Page 4: Managing Apache HAWQ with Apache AMBARI

HAWQ - AMBARI INTEGRATION SCOPE

Installation and configuration

Topology and configuration recommendations and validations

Kerberos and High Availability support

HAWQ Master - HAWQ Standby failoverService and Component Alerts

Visual Widgets

Page 5: Managing Apache HAWQ with Apache AMBARI

HAWQ - AMBARI INTEGRATION EFFORT

PraisesAmbari’s pluggable architecture makes integrations like this possible and easyKerberos setup is fully metadata driven — major kudos!

ChallengesHAWQ is not part of the HDP stack and is not available in Ambari out-of-the boxAdvanced features and wizards require JavaScript code modifications

Driven by the team of engineers at PivotalDeveloped integrations from basic to more advanced

Invaluable support from Ambari CommunityTHANK YOU!

Page 6: Managing Apache HAWQ with Apache AMBARI

RECOMMEND SERVICE TOPOLOGY

Page 7: Managing Apache HAWQ with Apache AMBARI

VALIDATE SERVICE TOPOLOGY

Page 8: Managing Apache HAWQ with Apache AMBARI

RECOMMEND AND VALIDATE CONFIGS

Page 9: Managing Apache HAWQ with Apache AMBARI

HAWQ SERVICE SUMMARY PAGE

Page 10: Managing Apache HAWQ with Apache AMBARI

HAWQ SERVICE ACTIONS

Page 11: Managing Apache HAWQ with Apache AMBARI

ACTIVATE HAWQ STANDBY WIZARDActivate HAWQ Standby Wizard (Manual Operation)

Page 12: Managing Apache HAWQ with Apache AMBARI

ACTIVATE HAWQ STANDBY WIZARD

HAWQ Standby Masterpromoted to HAWQ Master

Add HAWQ Standby Masteraction becomes visible

Page 13: Managing Apache HAWQ with Apache AMBARI

HAWQ ALERTSStatus of HAWQ Components

Communication issuesbetween HAWQ Components

Page 14: Managing Apache HAWQ with Apache AMBARI

HAWQ AMBARI FUTURE INTEGRATION

Support automated upgrade independent of stackOngoing related work: AMBARI-14854, AMBARI-12885

Ambari requires service restart for pushing configuration changes. What if, the service can reload configurations without restart? Ongoing related work: AMBARI-17241

HAWQ Upgrade

Dynamic Configuration Reload

Display query historyManage resource queues

HAWQ View

Page 15: Managing Apache HAWQ with Apache AMBARI

Currently Ambari does not support configuration changes without restarting service

Some parameters do NOT require restart!

HDFS dfs.heartbeat.interval, dfs.namenode.heartbeat.recheck-interval

HAWQ default_hash_table_bucket_number, hawq_rm_memory_limit_perseg

DYNAMIC CONFIGURATION RELOAD

Page 16: Managing Apache HAWQ with Apache AMBARI

Currently Ambari does not support configuration changes without restarting service

Some parameters do NOT require restart!

HDFS dfs.heartbeat.interval, dfs.namenode.heartbeat.recheck-interval

HAWQ default_hash_table_bucket_number, hawq_rm_memory_limit_perseg

DOWNTIME!!!Consequence of Restarting the Service:

DYNAMIC CONFIGURATION RELOAD

Page 17: Managing Apache HAWQ with Apache AMBARI

No more DOWNTIME!!!

DYNAMIC CONFIGURATION RELOAD

Page 18: Managing Apache HAWQ with Apache AMBARI

resources/common-services/HAWQ/2.0.0/configurations/hawq-site.xml

<property>

<name>default_hash_table_bucket_number</name>

<value>6</value>

<supports-reload>true</supports-reload>

</property>

resources/common-services/HAWQ/2.0.0/package/scripts/hawqmaster.py

classHawqMaster(Script):

defstart(self,env):

defstop(self,env):

defreload(self,env):

self.configure(env)

Execute(‘hawqmasterreload’,…)

HOW TO USE

Page 19: Managing Apache HAWQ with Apache AMBARI

Ambari UI

Show ReloadButton

Desired Configs

Updater

HeartBeatProcessor

ServiceComponentHost(updates requires_reload)

Request Handling and Execution

Ambari Agent

Reload Method

Ambari Server

Ambari Web

Ambari Agent

Reload Method

Ambari Agent

Reload Method

Ambari Agent

Reload Method

REST API

POST

PUT

GET

Heartbeats

invalidatesrequires_reload

user specifies

COLLABORATION DIAGRAM

Page 20: Managing Apache HAWQ with Apache AMBARI

Feedback?

AMBARI-17241

Reload vs Restart - Are they mutually exclusive?

THINGS TO DECIDE

Seriously, purple?