scieee AI-readable full text Open interactive document viewer

Big Data and Large-scale Data Analytics: Efficiency of Sustainable Scalability and Security of Centralized Clouds and Edge Deployment Architectures

Awaysheh, Feras Mahmoud Naji

Abstract

One of the significant shifts of the next-generation computing technologies will certainly be in the development of Big Data (BD) deployment architectures. Apache Hadoop, the BD landmark, evolved as a widely deployed BD operating system. Its new features include federation structure and many associated frameworks, which provide Hadoop 3.x with the maturity to serve different markets. This dissertation addresses two leading issues involved in exploiting BD and large-scale data analytics realm using the Hadoop platform. Namely, (i)Scalability that directly affects the system performance and overall throughput using portable Docker containers. (ii) Security that spread the adoption of data protection practices among practitioners using access controls. An Enhanced Mapreduce Environment (EME), OPportunistic and Elastic Resource Allocation (OPERA) scheduler, BD Federation Access Broker (BDFAB), and a Secure Intelligent Transportation System (SITS) of multi-tiers architecture for data streaming to the cloud computing are the main contribution of this thesis study.

Full text

TESIS DE DOCTORADO BIG DATA AND LARGE-SCALE ANALYTICS: EFFICIENCY OF SUSTAINABLE SCALABILITY AND SECURITY OF CENTRALIZED CLOUDS AND EDGE DEPLOYMENT ARCHITECTURES Presentada por: Feras Mahmoud Naji Awaysheh Dirigida por: Jos´ e Carlos Cabaleiro Tom ´ as Fern ´ andez Pena ESCUELA DE DOCTORADO INTERNACIONAL PROGRAMA DE DOCTORADO EN INVESTIGACI ´ ON EN TECNOLOX´ IAS DA INFORMACI ´ ON Centro Singular de Investigaci´ on en Tecnolox´ ıas Intelixentes (CiTIUS) SANTIAGO DE COMPOSTELA 19 de December de 2019 DECLARACI ´ ON DEL AUTOR DE LA TESIS Big Data and large-scale Analytics: Efficiency of Sustainable Scalability and Security of Centralized Clouds and Edge Deployment Architectures Don Feras Mahmoud Naji Awaysheh Presento mi tesis, siguiendo el procedimiento adecuado al Reglamento, y declaro que: 1. La tesis abarca los resultados de la elaboraci´ on de mi trabajo. 2. En su caso, en la tesis se hace referencia a las colaboraciones que tuvo este trabajo. 3. La tesis es la versi´ on definitiva presentada para su defensa y coincide con la versi´ on enviada en formato electr´ onico. 4. Confirmo que la tesis no incurre en ning´ un tipo de plagio de otros autores ni de trabajos presentados por m´ ı para la obtenci´ on de otros t´ ıtulos. En Santiago de Compostela, 19 de December de 2019 Fdo. Feras Mahmoud Naji Awaysheh AUTORIZACI ´ ON DEL DIRECTOR/TUTOR DE LA TESIS Big Data and large-scale Analytics: Efficiency of Sustainable Scalability and Security of Centralized Clouds and Edge Deployment Architectures Don Jos´ e Carlos Cabaleiro, Profesor Catedr´ atico da ´ Area de Sistemas Intelixentes da Universidade de Santiago de Compostela Don Tom´ as Fern´ andez Pena, Profesor Asociado da ´ Area de Sistemas Intelixentes da Universidade de Santiago de Compostela INFORMAN: Que la presente tesis, corresponde con el trabajo realizado por Don Feras Mahmoud Naji Awaysheh bajo nuestra direcci´ on, y autorizamos su presentaci´ on, considerando que re´ une los requisitos exigidos en el Reglamento de Estudios de Doctorado de la USC, y que como directores de ´ esta no incurre en las causas de abstenci´ on establecidas en Ley 40/2015. En Santiago de Compostela, 19 de December de 2019 Fdo. Jos´ e Carlos Cabaleiro Director/a tesis Fdo. Tom´ as Fern´ andez Pena Director/a tesis Dedication I am dedicating this thesis to my beloved parents, who have meant and continue to means so much to me, ”Mom and Dad, this is for you.” To my brothers and sister: Enas, Anas, and Ahmad for their love, endless support, and encouragement. And last but not least, the spirit of my life, my daughter (Noor). Resumen Uno de los cambios significativos de las tecnolog´ ıas de computaci´ on de pr´ oxima generaci´ on ser´ a, sin duda, el desarrollo de las plataformas Big Data (BD). Esta tendencia da como resultado una amplia gama de mejoras revolucionarias y vanguardistas dentro de la ciencia de datos. Apache Hadoop, punto de referencia de BD, evolucion´ o como un sistema operativo de datos a gran escala ampliamente desplegado. Hadoop est´ a dise˜ nado para utilizar clusters de m´ aquinas de prop´ osito general. A lo largo de los a˜ nos, el modelo fue adaptado para ser compatible con diferentes tipos de arquitectura y paradigmas. Sus nuevas caracter´ ısticas incluyen la configuraci´ on de federaci´ on para proporcionarle madurez para servir a diferentes mercados. Esta tesis se centra en los elementos arquitect´ onicos de las estructuras de procesamiento de BD y en los aspectos de escalabilidad. Proponemos un entorno h´ ıbrido de ejecuci´ on de BD (llamado EME) que sigue generando un DataNode contenedorizado para el beneficio de las aplicaciones BD. Se presenta un programador de aprovisionamiento din´ amico (llamado OPERA) para aprovechar los recursos infrautilizados en entorno local y en la nube. Los resultados demuestran que OPERA tiene un inmenso potencial, ya que reduce significativamente el tiempo de ejecuci´ on hasta un 74% para los trabajos vinculados a la CPU (como en el benchmark PiEst), y hasta un 26% para los trabajos vinculados a HDFS (como en el benchmark Wordcount) comparado con un grupo nativo de Hadoop. Adem´ as, la privacidad y la seguridad de las arquitecturas de BD se trata como una preocupaci´ on significativa entre los profesionales. Se introduce un m´ odulo de autenticaci´ on de inicio de sesi´ on ´ unico de la federaci´ on BD y un nuevo marco de trabajo de broker de acceso. Los resultados experimentales demuestran la eficiencia del broker de acceso propuesto, con un impacto de s´ olo el 1% en el rendimiento de Hadoop en comparaci´ on con un broker no seguro. Finalmente, se explica un caso de estudio moderno y seguro sobre la transmisi´ on de datos de los nodos de borde a las nubes en nubes vehiculares para validar los resultados de esta tesis. FERAS MAHMOUD NAJI AWAYSHEH Hoy en d´ ıa, la industria y el mundo acad´ emico est´ an impulsados por tecnolog´ ıas como el Big Data (BD), y entre sus usos se incluye la adaptaci´ on de aplicaciones de alta productividad para superar los desaf´ ıos en m´ ultiples disciplinas. Esta amplia heterogeneidad de aplicaciones depende de los recursos inform´ aticos para procesar sus trabajos y ofrecer el servicio de forma eficiente. Apache Hadoop, es un paradigma prominente que combina nodos de computaci´ on a gran escala para construir un entorno anal´ ıtico, por ejemplo, para el procesamiento y almacenamiento BD, tanto en bases de datos locales como en la nube. Este estudio tiene como objetivo analizar y caracterizar los factores m´ as cr´ ıticos de la eficiencia de las arquitecturas para el despliegue de entornos BD sostenibles. Concretamente, hemos puesto nuestra atenci´ on en evaluar las caracter´ ısticas de escalabilidad y seguridad de los sistemas BD basados en Hadoop, as´ ı como a dise˜ nar soluciones novedosas para sus limitaciones actuales. Las dos preguntas clave que se discuten en esta tesis con respecto a la optimizaci´ on de la infraestructura de BD (BDI) son (I) C´ omo optimizar la escalabilidad de los recursos de BD con el aprovisionamiento din´ amico y el´ astico de recursos de bajo coste para aumentar la capacidad bajo demanda con el objetivo de mejorar el rendimiento general, y (II) C´ omo mantener los cl´ usteres de BD y la privacidad de los datos dentro de las arquitecturas de despliegue local y las basadas en la nube, utilizando un agente de control de acceso ligero y distribuido. La Tabla 1 resume los desaf´ ıos y problemas que estamos abordando con esta tesis. Uno de los cambios tecnol´ ogicos m´ as importantes de los sistemas inform´ aticos actuales ha surgido con las plataformas Big Data (BD). Esta tendencia ha dado lugar a una amplia gama de mejoras revolucionarias y de ´ ultima generaci´ on dentro de la ciencia de datos que han dado lugar al novedoso concepto de Big Data as a Service (BDaaS). Apache Hadoop, una de las principales aplicaciones BD, ha evolucionado como un sistema operativo de datos a gran escala ampliamente desplegado. Las nuevas caracter´ ısticas proporcionan a Hadoop 3.x la madurez y aplicabilidad para servir a diferentes mercados. Sin embargo, el rendimiento y la seguridad de estos sistemas siguen siendo las principales preocupaciones de los profesionales. Estos problemas han llamado la atenci´ on de los investigadores en ciencias de la informaci´ on y de los responsables de la toma de decisiones. En esta propuesta de doctorado, pretendemos hacer frente a dos retos cr´ ıticos abiertos en las actuales arquitecturas de despliegue de Big Data, que son la escalabilidad y la seguridad del sistema. Para ello, hemos empleado la tecnolog´ ıa de contenedorizaci´ on y dise˜ nado un robusto control de acceso dentro de una arquitectura de recursos h´ ıbrida (dedicada y no dedicada), que soporta la ´ ultima plataforma Hadoop 3.x. El estudio tambi´ en pretende proponer tecnolog´ ıas de integraci´ on para producir xvi Table 1: Problemas abordados en este trabajo. Num. Problem Description Type 1 Baja utilizaci´ on de la mayor´ ıa de los computadores y cl´ usteres actuales. Utilizaci´ on 2Particionamiento est´ atico en el espacio f´ ısico de una empresa. Flexibilidad 3Ajuste est´ atico del tama˜ no del cluster en el pico de utilizaci´ on e instalaci´ on de nuevos servidores para aumentar la productividad bajo demanda. Flexibilidad 4TIncremento del gap entre las capacidades de computaci´ on y de E/S en estaciones de trabajo para experimentos cient´ ıficos. Rendimiento 5Dependencia en tenencia m´ ultiple (por ejemplo, cloud computing), lo que provoca muchos problemas como seguridad, movimiento de datos, p´ erdida de rendimiento, etc. Escalabilidad 6P´ erdida importante de ciclos de computaci´ on para la comprobaci´ on de middleware y aplicaciones que no est´ an todav´ ıa en producci´ on. Utilizaci´ on 7Necesidad de mejora del rendimiento con un coste m´ ınimo de despliegue. Rendimiento. 8Ejecuci´ on de un nuevo tipo de experimentos en los mismos recursos con m´ ınima configuraci´ on, manteni´ endola extensible a cualquier dise˜ no previo. Flexibilidad 9Asegurar que usuarios y aplicaciones interact´ uen de forma segura con funcionalidades principales del sistema y garantizando el acceso a los datos a trav´ es del cl´ uster. Seguridad 10 Controlar la capacidad de una organizaci´ on, individuo y subcomponentes de un sistema sobre qu´ e datos de un sistema BD pueden ser compartidos con terceras partes. Privacidad un entorno h´ ıbrido fiable y de bajo coste, que ampl´ ıe el planificador de tareas de Hadoop, teniendo en cuenta los requisitos de calidad de servicio y seguridad. Por ´ ultimo, hemos evaluado el dise˜ no de la arquitectura propuesta comparandola con el sistema Hadoop actual mediante la realizaci´ on de una evaluaci´ on exhaustiva de su rendimiento y fiabilidad, tanto en los modelos de implementaci´ on centralizada como en los modelos de despliegue en el borde. Antecedentes: El Big Data constituye un extenso conjunto de datos (Terabytes o Petabytes) que ha sido creado o recopilado de muchas fuentes, incluyendo datos sociales, datos de m´ aquinas y datos transaccionales (por ejemplo, sensores inteligentes, experimentos cient´ ıficos, medios sociales, etc.). Se han presentado varias propuestas para gestionar, procesar y mantener estos conjuntos de datos masivos. Uno de los modelos de programaci´ on m´ as importante en lo que se ha xvii FERAS MAHMOUD NAJI AWAYSHEH dado en llamar procesamiento intensivo de datos es el modelo MapReduce. Esta secci´ on presenta informaci´ on b´ asica sobre computaci´ on intensiva en datos, el modelo de programaci´ on MapReduce y los sistemas de computaci´ on voluntaria, junto con el trabajo relacionado desarrollado en esta tesis. • Computaci´ on intensiva en datos. La computaci´ on intensiva en datos es una subclase del conjunto de aplicaciones de computaci´ on paralela, cuyo objetivo es procesar grandes vol´ umenes de datos (normalmente terabytes o petabytes). Con el fin de gestionar estas tareas, se utiliza un centro de datos o un sistema distribuido, es decir, un cl´ uster o una red, que utiliza un gestor de recursos para apoyar la homogeneidad o heterogeneidad del entorno, con una variedad de recursos inform´ aticos y de almacenamiento dedicados y no dedicados. • Plataforma Apache Hadoop. Hadoop es la implementaci´ on de c´ odigo abierto l´ ıder del paradigma MapReduce. Ha sido desarrollada bajo el paraguas de la Apache Software Foundation y que ha sido ampliamente utilizado en la industria en todo el mundo. Se compone de dos subsistemas: el de gesti´ on de recursos y ejecuci´ on de tareas MapReduce y el sistema de archivos distribuidos Hadoop (HDFS), que se encarga de la gesti´ on y acceso de los datos. HDFS utiliza un proceso denominado NameNode que se ejecuta en los nodos maestros y m´ ultiples procesos DataNode que se ejecutan en los esclavos. Adem´ as, Hadoop sigue el paradigma maestro/esclavo, en el que un gestor recursos (denominado YARN) se encarga de asignar recursos a los diferentes trabajos mientras que los gestores de tareas (denominado Application M´ aster) se encarga de iniciar, supervisar y volver a ejecutar las tareas que provoquen fallos en las m´ aquinas esclavas. Adem´ as, Hadoop implementa sistemas de colas, como el Hadoop Fair Scheduler, para garantizar un reparto justo de los recursos entre los m´ ultiples usuarios y trabajos. • Seguridad de Apache Hadoop. Muchas de las amenazas de seguridad relacionadas con los frameworks de BD se pueden mitigar utilizando procesos y t´ ecnicas de seguridad tradicionales. Sin embargo, algunas amenazas de seguridad requieren soluciones espec´ ıficas de BD. Los sistemas Hadoop tienen diferentes vulnerabilidades de seguridad y pueden estar expuestos a diversas amenazas. La abstracci´ on por capas de seguridad del sistema BD Hadoop imxviii plica varias funciones esenciales. Las tres primeras capas, identificaci´ on (ID) y control de acceso, autenticaci´ on y autorizaci´ on se combinan para representar los procesos de gesti´ on de acceso del cl´ uster Hadoop (un acceso de pasarela). Las otras capas de seguridad (gobierno de datos, integridad, confidencialidad y auditor´ ıa de seguridad) son requisitos de servicios de seguridad y componentes de la pila de datos de Hadoop. Objetivos de la investigaci´ on. En este estudio hemos dise˜ nado, construido y evaluado una arquitectura de computaci´ on distribuida h´ ıbrida (recursos dedicados y no dedicados) efectiva y eficiente dentro de un cluster heterog´ eneo tanto en potencia de computaci´ on como en disponibilidad (Computaci´ on Oportunista) para extender el planificador de tareas de Hadoop en una variedad de sistemas operativos. Adem´ as, proporcionaremos informaci´ on sobre los retos de identificaci´ on y gesti´ on de acceso (IAM) que imponen las pr´ oximas versiones de Hadoop 3.x. Esta tesis trata sobre el control de acceso federado para la pila de BD de Hadoop, que incluye todas las etapas significativas y refleja los detalles espec´ ıficos del control de acceso dentro de los cl´ usteres Hadoop, tanto de las arquitecturas de despliegue en la nube como de las arquitecturas de despliegue en las instalaciones. Adem´ as, se han llevado a cabo experimentos y simulaciones para evaluar el sistema propuesto. Del mismo modo, se han caracterizar todas las mejoras introducidas en el dise˜ no propuesto en base a la escalabilidad y seguridad de Hadoop. Los objetivos principales de este estudio han sido: Objetivo 1: Evaluar los actuales entornos de BD y Apache Hadoop mediante un an´ alisis exhaustivo de los elementos arquitect´ onicos de los frameworks de BD con informaci´ on sobre los retos abiertos y las tendencias de investigaci´ on. Asimismo, identificar los inconvenientes actuales de la plataforma Hadoop en t´ erminos de aprovisionamiento el´ astico de recursos y privacidad de datos, comparando y contrastando las caracter´ ısticas de estos frameworks. Objetivo 2: Dise˜ nar e implementar una arquitectura h´ ıbrida de recursos de computaci´ on distribuidos para mejorar la planificaci´ on de tareas BD dentro de las arquitecturas de implementaci´ on tanto en la nube como en las instalaciones. Objetivo 3: Examinar uno de los retos m´ as importantes de las plataformas de BD de pr´ oxima generaci´ on, es decir, la privacidad de los datos. Adem´ as, desarrollar un m´ odulo de autenticaci´ on fiable y enchufable para que los clientes externos de BD puedan iniciar sesi´ on en la infraestructura de BD (BDI). Objetivo 4: Evaluar experimentalmente la usabilidad de los sistemas de seguridad de Apache BD utilizando Hadoop 3.x. El control de acceso a la plataforma (incluyendo Apache xix FERAS MAHMOUD NAJI AWAYSHEH Knox y Apache Ranger) y el despliegue de seguridad de an´ alisis de datos de borde utilizando un control de acceso robusto y ligero. Objetivo 5: Analizar las soluciones y tecnolog´ ıas de BD en beneficio de un flujo de datos y aplicaciones de vanguardia, como el Sistema de Transporte Inteligente (ITS), proponiendo un marco de seguridad ITS de varios niveles para validar la usabilidad de la soluci´ on. Objetivo 6: Evaluar exhaustivamente los frameworks propuestos y el rendimiento de los prototipos y caracterizar las mejoras logradas comparables al modelo nativo de Hadoop y su impacto en el futuro del BD infraestructura. Metodolog´ ıa de estudio El objetivo principal de nuestro estudio ha sido dise˜ nar un sistema de distribuci´ on h´ ıbrido eficiente para mejorar la planificaci´ on de tareas Hadoop y la seguridad de borde en un entorno de cl´ usteres heterog´ eneos. Adem´ as, hemos formalizado el dise˜ no de soluciones BD seguras dentro de la pila Apache Hadoop, utilizando un gestor de acceso que ayude en la detecci´ on de brechas de seguridad y en las investigaciones forenses digitales. La consecuci´ on de estos objetivos se ha realizado en las siguientes fases: En primer lugar, revisar y analizar cr´ ıticamente la literatura de BDI a trav´ es de una serie de an´ alisis te´ oricos y pr´ acticos de los paradigmas y entornos actuales de la implementaci´ on de soluciones de BD para determinar las lagunas en la investigaci´ on, junto con las tendencias futuras. En segundo lugar, identificar la degradaci´ on del rendimiento del planificador de Hadoop en entornos heterog´ eneos e identificar las deficiencias actuales en la gesti´ on de recursos para proponer un prototipo de aprovisionamiento de recursos din´ amico y el´ astico para los frameworks de procesamiento de BD. Esta fase incluye la definici´ on y el examen de las herramientas y tecnolog´ ıas de software necesarias, incluyendo HTCondor, Apache Yarn, MapReduce y tecnolog´ ıas de contenedorizaci´ on (por ejemplo, Docker). Tercero, caracterizar la limitaci´ on actual de la plataforma Hadoop 3.x bas´ andose ´ unicamente en sus medidas de control de acceso originales para mantener la privacidad de los datos, en cuanto a la complejidad de la implementaci´ on y el consumo de recursos. Esta fase incluye el dise˜ no e implementaci´ on de un agente de acceso ligero y distribuido y el examen de las herramientas y tecnolog´ ıas necesarias, incluyendo Apache Ranger y Knox. La cuarta fase incluye la implementaci´ on de los sistemas propuestos, tanto en cl´ usteres en la nube como en cl´ usteres locales, y demostrar su eficacia. Esta validaci´ on incluye la realizaci´ on de pruebas intensivas de los sistemas propuestos para evaluar su rendimiento y robustez en la pr´ actica. En la quinta fase, las lecciones aprendidas y los mecanismos de xx verificaci´ on han servido para modificar las herramientas seleccionadas, editar el dise˜ no de la arquitectura y, por defecto, actualizar las fases tres y cuatro. A continuaci´ on, se han desplegado enfoques de control de acceso y se ha llevado a cabo un an´ alisis exhaustivo de la seguridad de los nodos de borde a gran escala (basados en data streaming). Posteriormente, en la sexta fase, llevamos a cabo un caso de uso complejo, mediante la implementaci´ on de un ejemplo de Internet de las cosas (IoT), concretamente una soluci´ on basada en la nube para la gesti´ on de Sistemas Inteligentes de Transporte (ITS), a saber, un sistema de transporte moderno conectado a la red basado en tecnolog´ ıas BD. Resultados y publicaciones: • En nuestro art´ ıculo, EME: An Automated, Elastic and Efficient Prototype for Provisioning Hadoop Clusters On-demand, presentado en la International Conference on Cloud Computing and Services Science, CLOSER 2017, propusimos una aproximaci´ on que ampl´ ıa las aplicaciones basadas en MapReduce con un aprovisionamiento din´ amico y un aumento de recursos de bajo coste bajo demanda. Este estudio pretende dar soporte a entornos heterog´ eneos extendiendo la plataforma Apache Hadoop 2.x a un entorno oportunista contenedorizado, que mejora la productividad del sistema a˜ nadiendo recursos infrautilizados a un cl´ uster local o basado en la nube. El framework propuesto consta de tres componentes principales. En primer lugar est´ an los usuarios. En segundo lugar, un entorno dedicado, es decir, un cl´ uster t´ ıpico de Hadoop que sigue el modelo maestro/esclavo, donde Apache YARN es responsable de programar, monitorizar y volver a ejecutar tareas de fallo en m´ aquinas esclavas. En tercer lugar, un entorno no dedicado, que podr´ ıa controlarse utilizando un middleware voluntario. En este sentido, nuestro enfoque adopta un escalado (scaling-out) el´ astico y horizontal de recursos en una LAN controlada para ejecutar de forma oportunista tareas MapReduce bajo demanda en conjuntos de recursos distribuidos e infrautilizados. Este entorno de procesamiento gestiona y asigna los nodos no dedicados utilizando HTCondor (para crear una red de equipos de escritorio empresarial dentro de la LAN, es decir, un pool oportunista). Adem´ as, se ha implementado un planificador ligero, que s´ olo considera el despliegue de contenedores dentro de la reserva oportunista. • En nuestro trabajo A Pluggable Authentication Module for Big Data Federation Architecture presentado en el 24º ACM Symposium on Access Control Models and Technologies. SACMAT, 2019, proponemos un modelo fiable para autenticar usuarios y xxi FERAS MAHMOUD NAJI AWAYSHEH servicios sobre una arquitectura de despliegue de BD federada. El objetivo principal de este modelo es proporcionar un enfoque de inicio de sesi´ on ´ unico (SSO) para la ´ ultima plataforma Hadoop 3.x. Para ello, se propone un modelo conceptual que combina las primitivas de control de acceso de Hadoop y el framework de Apache Knox. Este estudio presenta los primeros pasos para definir y formalizar una pasarela de servicio para una arquitectura de despliegue de BD federada (BDF). La pregunta clave que nos plantearemos para abordar el reto del control de acceso es c´ omo dise˜ nar un SSO abstracto que maneje el acceso a datos/servicios en una federaci´ on de Hadoop. Abordamos esta cuesti´ on mediante la definici´ on de una arquitectura de referencia de inicio de sesi´ on ´ unico (SSORA) para el desarrollo seguro de BDF. El trabajo presentado en este documento puede emplearse en un entorno de Hadoop federado en nubes de tenencia m´ ultiple BDaaS e IaaS, as´ ı como en centros de datos locales. • En el art´ ıculo Big Data Security Frameworks Meet the Intelligent Transportation Systems Trust Challenges presentado en el 18th IEEE International Conference On Trust, Security And Privacy In Computing And Communications/13th IEEE International Conference On Big Data Science And Engineering (TrustCom/BigDataSE), 2019, demostramos c´ omo muchos casos tecnol´ ogicos explotan la ciencia de datos y los frameworks de BD en los ´ ultimos a˜ nos. Se propuso un trabajo conceptual que integra los enfoques de seguridad de diferentes disciplinas en una arquitectura de referencia coherente, empleando el Sistema Inteligente de Transporte (ITS) como un caso de uso. Adem´ as, se present´ o una clasificaci´ on de tecnolog´ ıas, productos y servicios de BD para hacer frente a los retos de confianza de los ITS. En el estudio se propon´ ıa un nuevo marco de seguridad de varios niveles para validar la usabilidad del prototipo con el desarrollo de la inteligencia de negocio en el ´ ambito empresarial. • En nuestro art´ ıculo (en el ´ ultimo estado del proceso de revisi´ on), Next-Generation Big Data Federation Access Control: A Reference Model, enviado a la revista Future Generation Computer Systems, ampliamos la discusi´ on sobre la madurez y aplicabilidad de Hadoop 3.x para servir a diferentes mercados. Adem´ as, indicamos ideas sobre el control de acceso y los retos de acceso externo dentro del concepto de Big Data as a Service (BDaaS). Este estudio representa el primer paso en el campo acad´ emico hacia el fortalecimiento de las grandes auditor´ ıas de seguridad y privacidad de datos a nivel de servicio en arquitecturas federadas de despliegue con un entorno robusto de Gesti´ on de Identificaci´ on y Acceso (IAM) para la detecci´ on y prevenci´ on del acceso no autorxxii izado. Tambi´ en ofrece una visi´ on y una hoja de ruta completa para propagar el control de acceso efectivo a trav´ es de los modelos de BD de tenencia m´ ultiple, proporcionando informaci´ on sobre los ´ ultimos desarrollos y los retos abiertos en este campo. Esta investigaci´ on destaca, en primer lugar, la necesidad de un gestor de control de acceso robusto que maneje las operaciones de autenticaci´ on y autorizaci´ on dentro de una federaci´ on. A continuaci´ on, analiza los requisitos actuales de an´ alisis de seguridad y registros de auditor´ ıa de acceso dentro de cualquier arquitectura de despliegue. El art´ ıculo presenta el modelo FACRM (Federated Access Control Reference Model) que incluye todas las etapas principales y refleja los detalles del control de acceso dentro de los clusters de Hadoop, tanto de los modelos en cloud como de los modelos locales. Validamos la usabilidad de FACRM proponiendo un nuevo gestor BD federado. Nuestros resultados demuestran tanto la efectividad como la eficiencia de nuestro patr´ on de arquitectura para mantener la privacidad de datos y cl´ usteres y permitir un an´ alisis sofisticado de los registros de acceso. La eficiencia del gestor de acceso propuesto no se ha visto afectada por sobrecargas en el rendimiento. Nuestros resultados experimentales muestran s´ olo un 1% de incremento de tiempo por cada operaci´ on de lectura/escritura de 100MB en un WebHDFS. • Nuestro art´ ıculo en revisi´ on, Big Data, Apache Hadoop Stack, Resource Management, Infrastructure Comparison, enviado a la revista Future Generation Computer Systems (FGCS), presenta un estudio exhaustivo de los elementos arquitect´ onicos de los diversos entornos de procesamiento de BD y tambi´ en propone una taxonom´ ıa novedosa. Adem´ as, se discuten en detalle las caracter´ ısticas de los distintos modelos de despliegue de los frameworks de procesamiento de BD y de gesti´ on de recursos. Por ´ ultimo, se exponen los retos actuales, as´ ı como las orientaciones futuras para mejorar el estado actual de la infraestructura de los frameworks de BD. En este estudio, nos centramos en los elementos arquitect´ onicos de los frameworks de BD que utilizan diferentes entornos y discutimos sus caracter´ ısticas m´ as destacadas, centr´ andonos en los aspectos de gesti´ on de recursos de BD. Proponemos un criterio sobre c´ omo comparar la correlaci´ on/divergencia de estos entornos de ejecuci´ on con respecto a la prestaci´ on de servicios BD. • Adem´ as, este trabajo tiene por objeto identificar y comprender los conceptos que deben tenerse en cuenta en el desarrollo de los sistemas de DIA (Data-Intensive Application). La revisi´ on introduce las estrategias de optimizaci´ on descritas en la literatura reciente y xxiii FERAS MAHMOUD NAJI AWAYSHEH discute los temas pendientes y desaf´ ıos que surgen al paralelizar el an´ alisis extensivo de datos en estos entornos. Adicionalmente, esboza las tendencias futuras para la gesti´ on de los recursos de DIA y discute a alto nivel los an´ alisis de datos. Presentamos una taxonom´ ıa de los requisitos de implementaci´ on de los frameworks de procesamiento de BD, que cubre los diferentes objetivos de optimizaci´ on utilizando un enfoque de clasificaci´ on multidimensional. Estas dimensiones representan las bases sobre las que se basan en gran medida el rendimiento de los sistemas de aplicaciones intensivas en datos (DIA), es decir: a) recursos, b) seguridad, c) tareas y d) gesti´ on de datos. En base a la taxonom´ ıa propuesta, discutimos los temas pendientes y los desaf´ ıos planteados en el an´ alisis de datos utilizando frameworks de procesamiento de BD en diferentes entornos no tradicionales y esbozamos las soluciones correspondientes en la literatura con nuevas direcciones para futuras mejoras. Adem´ as, discutimos c´ omo difieren estos sistemas utilizando dos casos de uso basados en la ubicaci´ on del recurso. En particular, presentamos una clasificaci´ on de las implementaciones existentes utilizando entornos basados en LAN y WAN, centr´ andonos en la prestaci´ on de servicios de alta calidad (QoS) en cualquier entorno. Conclusiones Las arquitecturas Big Data (BD) tienen una larga tradici´ on de aprovechar las tendencias y tecnolog´ ıas de la comunidad inform´ atica en general. En esta tesis, realizamos un an´ alisis en profundidad de dos componentes principales de la pila de Big Data de Apache Hadoop, a saber, el gestor y planificador de recursos Apache YARN y el sistema de archivos distribuidos Hadoop. Este estudio considera tanto la escalabilidad como la posibilidad de mejorar el rendimiento y la productividad general, as´ ı como la privacidad de los datos almacenados a gran escala y de los recursos subyacentes como base de su investigaci´ on. Esta tesis ha logrado con ´ exito sus objetivos declarados al demostrar que es factible escalar de forma oportunista bajo demanda los recursos utilizando contenedores. Adem´ as, esta tesis ha defendido y probado con ´ exito la hip´ otesis de la preservaci´ on de la privacidad de BD mediante la aplicaci´ on de sistemas distribuidos de un esquema de control de acceso multiagente. La tesis investiga y evalua el rendimiento de los componentes propuestos y los compara con los originales de pila de Apache Hadoop 3.x, optimiz´ andolos sobre cl´ usteres de BD tanto basados en la nube como en instalaciones locales. En general, la investigaci´ on presentada en esta tesis responde a las preguntas iniciales del trabajo la investigaci´ on y allana el camino para una amplia gama de mejoras revolucionarias y tendencias futuras dentro de la pila Hadoop. xxiv Chapter 1. Introduction computation and data-intensive in nature. Furthermore, HTC jobs have, by nature, extremely short runtimes, usually in the millisecond range. • Volunteer and Opportunistic Computing. Volunteer Computing (VoC) is a form of network-based distributed computing, which allows public participants to share their idle computing resources and helps run computationally expensive projects. In general, VoC take advantage of resources donated by participated among spread computer grid or cluster by following the master-worker parallel computing model, which makes computing cycles to form a large-scale virtual supercomputer. The low-cost advantage of VC has made this platform attractive to many research scientists whose projects require considerable computing power, and are used mainly for loosely coupled (independent) processing tasks and committed jobs. • Containerization Technology. Containerization computing, in general, is an OS-level virtualization technique employed to deploy and run distributed applications without launching an entire virtual machine (VM) for each service. The basic idea behind it is that it enables multiple isolated applications to run on a single host and access the same OS kernel with the perception of its own process tree, users, and filesystem. As such, containers have very few overheads compared to VMs, with near-instant startup time and resource impact on the host system. However, unlike VMs, containers are not flexible when it comes to details such as the kernel version and instruction set and inherits those from the host. The increase in the popularity of containers can be attributed to their lightweight nature (the time to start a container is on the order of milliseconds). Moreover, containers also incur a lower performance overhead when compared to VMs. To virtualize the OS, a container runtime needs to be able to allocate resources to containers and isolate the view of the system from within the containers: leverage Linux kernel. 3 FERAS MAHMOUD NAJI AWAYSHEH 1.1.1 Used Frameworks and Technologies Apache Hadoop Apache Hadoop is a leading open-source implementation platform of frameworks that has evolved to become the BD defacto stack and ecosystem of technologies. Hadoop was founded and powered by the Apache Software Foundation. It has been widely used in both the industry and academia to store and process massive data sets. When it was first realized, Hadoop only ran the MapReduce framework to process the data stored in the Hadoop Distributed File System (HDFS). This architecture then evolved when Hadoop 2.x came up with a new framework and resource manager, Yet Another Resource Negotiator (YARN), which provides the ability to run non-MapReduce jobs such as Spark, Flink, Giraph, Storm, Hive, and HBase coprocessors. Apache Hadoop 3.x is the latest version and offers many new features. These features include: (i) Advanced HDFS with erasure encoding, which reduces the storage overhead, maintaining the same level of data recoverability; (ii) support of long-running applications and an enhanced YARN timeline service; (iii) better integration with container-based environments; (iv) the improvement of the horizontal cluster scalability, by natively supporting a federated architecture; and (v) the use of backfilling techniques, i.e., opportunistic containers to improve system utilization. Our goal is to utilize these new features to develop a flexible, dynamic, and adaptive BD runtime environment. Hadoop abstracts computing resource management, task scheduling, and data management, while maintaining a satisfactory level of security and isolation. The Hadoop stack is typically deployed as part of a large-scale BD platform to support commodity hardware and accommodate different processing frameworks. It is utilized to handle data management and access to the Hadoop ecosystem using a master/slave architecture. The large community behind Hadoop has been working to improve its stack to meet the increasing demands and requirements of BD. The new features shift proves the maturity and applicability of Hadoop 3.x to serve different markets, thus, making it a prominent paradigm that combines large-scale computing nodes to build an analytical environment, e.g., BD processing and storage. Apache Hadoop Architecture It is a cluster resource-management platform that is responsible for scheduling users’ application tasks, implementing security controls, and managing the computing resources, as well as providing the high availability features of Hadoop. This new architecture removes the old JobTracker (in Hadoop v 1) from managing resource usage across applications, which 4 Chapter 1. Introduction removes the single point of failure and enhances the scalability, thus allowing it to run other applications apart from MR ones. YARN uses a global Resource Manager to receive and run applications on the slaves, and a Job History Server to provide information about completed jobs. On the slave side, the NodeManagers (previously known as Task Tracker in Hadoop v1) provides information about the node status and capacity; (iii) An execution framework (e.g., MR), which runs per application ApplicationMaster to manage the different jobs. The ApplicationMaster asks for resources from the ResourceManager, which, with the information provided by the NodeManagers, provides the resources in the form of containers. The ApplicationMaster runs the application in those containers, controlling its behavior, and re-launching failed tasks as needed. HTCondor HTCondor is an open source that has been empowered by the University of Wisconsin–Madison as a high-throughput computing framework for batch services and coarse-grained distributed parallel computing of intensive tasks. It can be used to manage the workload on a dedicated cluster of computers or to farm out work to idle desktop computers —so-called cycle scavenging. HTCondor can seamlessly integrate both dedicated resources (rack-mounted clusters) and non-dedicated desktop machines (cycle scavenging) of opportunistic computing into one computing environment. HTCondor supports the standard MPI as well as its master/worker library for extremely parallel tasks on massive collections of distributively owned heterogeneous computing resources. HTCondor architecture is composed of three main components: (i) a central manager runs both a Collector and Negotiator daemon; (ii) on the execute nodes, one or more machine runs a Startd daemon; and (iii) one or more machine runs a Schedd daemon on the submit nodes. Docker Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications that use OS-level virtualization to deliver software in packages called containers. In its core, it has evolved into a comprehensive standard for portable services and applications. Docker relies on core Linux kernel container primitives and abstracts them into a user-friendly API. It, thus, allows the developer to create an isolated container of any service that acts like a lightweight virtual machine, which shares the same kernel as the host operating system (OS). This container can be turned into an image and shared with anyone running Linux using the Docker hub. 5 FERAS MAHMOUD NAJI AWAYSHEH The Docker framework consists of the Docker Engine, a portable, lightweight runtime and packaging tool with a workflow for building and containerizing applications, and Docker Hub, a cloud service for sharing applications and automating workflows; Docker enables apps to be quickly assembled from components and eliminates the friction between development, QA, and production environments. As a result, IT can ship faster and run the same app, unchanged, on laptops, on data center VMs, and on any cloud. Experiment setup Aiming to implement and validate the thesis proposed frameworks and solutions we enrolled in installing and configuring different Hadoop prototypes and clusters over both virtual and bare-metal infrastructures. The first prototype was a proof-of-concept model over virtual machines, as specified in Table 1.1. The second prototype was a homogeneous cluster (as shown in Table 3.1), which implemented a comprehensive evaluation and series of experiments over an on-premise infrastructure. In the third prototype, a collaboration with the University of Texas at San Antonio, TX (UTSA) took place to validate our access broker performance, as explained in Table 1.3. Recently, we were awarded a ten thousand US dollar grant from Google Cloud to implement a full running cluster to extend our work. Table 1.1: A homogeneous virtual cluster powered by Oracle VM VirtualBox 5.2 . Virtual Nodes Hadoop Daemon Hardware & Configuration 1 NameNode CPUs: Intel(R) Core(TM) i7-4770k @ 3.50GHz, RAM: 32 GB RAM DDR5 @ 2666MHz, 3 DataNode HDD: 2 TB, SSD: 512 GB Table 1.2: A homogeneous on-premise cluster formed by 5 HP Proliant DL 370 G6 servers. Node Number Hadoop Daemon Hardware & Configuration 1 NameNode CPUs: 2 x Intel Xeon E5506 @ 2.13GHz, RAM: 12 GB RAM ECC DDR3 @ 800MHz, 4 DataNode HDD: 2 TB HDD Common criteria: Hadoop 3.1.1 over 4 x Gigabit Ethernet ports. Table 1.3: A heterogeneous OpenStack cloud Hadoop cluster over webHDFS. Node Number Hadoop Daemon Hardware &Configuration 2 NameNode VCPUs: 8, RAM: 16GB, HDD: 160GB 3 DataNode VCPUs: 4 RAM: 8GB HDD: 80GB Common criteria: 1 gbps network connection, Ubuntu 16.04 LTS OS. 6 Chapter 1. Introduction 1.2 Motivation: Big Data Scalability and Security In this study, we are committed to designing, building, and evaluating an effective and efficient hybrid distributed computing (dedicated and non-dedicated resource) architecture within a heterogeneous cluster in both computing power and availability (opportunistic computing) environment to extend Hadoop’s Task scheduling applications in a variety of operating systems. Moreover, we will provide insights into the Identification and Access Management (IAM) challenges that are imposed by the upcoming releases on Hadoop 3.x. This thesis discusses the federated access control for the Apache BD stack, which includes all of the significant stages and reflects specifics in access control within Hadoop clusters of both cloud and on-premise deployment architectures. We are also committed to conducting extensive experiments and simulations to evaluate the proposed system. Similarly, we will characterize all improvements by the proposed new design in Hadoop’s scalability and security. The primary objectives of our study are: •Objective 1: To evaluate the current BD and Apache Hadoop framework deployment environments by comprehensively surveying the architectural elements of BD processing frameworks by gaining an insight into the open challenges and research trends; to identify the drawbacks of the current Hadoop platform in terms of elastic resource provisioning and data privacy by comparing and contrasting the features of these frameworks. •Objective 2: To design and implement a hybrid-distributed computing resource architecture to improve BD scheduling within both cloud and on-premise deployment architectures. •Objective 3: To discuss one of the most significant challenges of next-generation BD platforms, namely data privacy; to conduct a trustworthy and pluggable authentication module for BD external clients’ logins to the BD Infrastructure (BDI). •Objective 4: To experimentally evaluate Apache BD security frameworks’ usability using Hadoop 3.x. platform access control (including Apache Knox and Ranger) and edge data analytics security deployment using a robust light-weight access control framework. 7 FERAS MAHMOUD NAJI AWAYSHEH •Objective 5: To analyse and classify BD solutions and technologies for the benefit of a leading data streaming and edge application, Intelligent Transportation System (ITS) and propose a multi-tier ITS security framework to validate the usability of the solution. •Objective 6: To extensively evaluate the proposed frameworks and prototype performance and characterize the achieved improvements comparable to the Hadoop native model and its impact on the future of BD infrastructure. 1.3 Problem Definition Nowadays, industry and academia are driven by trends such as Big Data (BD), and their operations include accommodating high-performance and high-throughput applications to overcome challenges in multiple disciplines and areas. This wide range of application heterogeneity depends on computing resources to process tasks and deliver efficient services. Apache Hadoop is a prominent paradigm that combines large-scale computing nodes to build an analytical environment, e.g., BD processing and storage, on both local and cloud bases. This study aims to analyze and characterize the most critical factors of efficiency sustainable BD- deployment architectures. Namely, we enrolled in evaluating BD Hadoop-like scalability and security features, and designed novel solutions for its current limitations. Table 1.4 summarizes the challenges and issues we addressed through this thesis. 1.3.1 Research Questions The two key questions that this thesis discusses regarding optimizing BD Infrastructure (BDI) are: (I) How to optimize BD resource scalability with dynamic and elastic resource provisioning of low-cost capacity uplift on-demand to improve the overall performance; and (II) how to maintain BD clusters and data privacy within on-premise and cloud-based deployment architectures using a distributed light-weight access control broker. Beside the above-mentioned key questions, this thesis discusses the following questions with various insights into the latest ongoing developments and open challenges within this domain: • What are the main deployment architectures of BD frameworks, and what are their features for improving the state-of-the-art BD processing framework infrastructure? 8 Chapter 1. Introduction Table 1.4: The problems we are targeting with this thesis. Num. Problem Description Type 1 Low utilization of most modern commodity computers and clusters. Utilization 2The resources static partitioning within a physical confine of an enterprise between different resource managers. Flexibility 3Statically sizing the cluster on peak utilization and installing new servers to enhance the throughput when demand. Flexibility 4The increasing gap between computation and I/O capacity on high-end workstations for the scientific experiments and Big Data Analytics. Performance 5The dependency on multi-tenant systems (e.g., cloud computing), which raises many issues. For instance, security, data movement cost, and performance degeneration. Scalability 6Wasting many computing cycles for testing middleware and applications that are not yet in production. Utilization 7The need to enhance performance with minimal cost of deployment. Performance 8Running a new type of experiment on the same resources with minimal configuration, keeping it extensible to any prior design. Flexibility 9Ensuring users and applications interact securely with system core functionalities and guaranteeing appropriate access to data across the cluster. Security 10 Controlling the ability of an organization, individual, and system subcomponents to determine which data in a BD system can be shared with third parties. Privacy • How can we utilize current Hadoop implementation with cutting edge technologies to improve data-intensive computing performance? • What is the imposed impact of adding security features (i.e., access control) on Hadoop’s overall performance, and how can we unify the efforts towards a unified access model? • Can the proposed scalability and security features of this work be exploited to datastreaming models of IoT-to-Cloud applications, and how? 9 FERAS MAHMOUD NAJI AWAYSHEH 1.4 Methodology The main objective of our study is to design an efficient hybrid distributing system to improve Hadoop task scheduling and edge security in a heterogeneous cluster environment as well as formalizing the design of secure BD solutions within the Apache Hadoop stack using an access broker that aids security breach detection and digital forensic investigations. These goals have been achieved through the following phases. During the first phase, BDI literature was critically reviewed and analyzed through a series of theoretical and practical analyses of current paradigms and environments for implementing BD solutions to draft research gaps, alongside future trends. For the second phase, the existing Hadoop scheduler performance degradation in heterogeneous environments was identified along with the current resource management shortcomings to propose a dynamic and elastic resource provisioning prototype for BD processing frameworks . This phase included defining and examining the needed software tools and technologies, including HTCondor, Apache Yarn, MapReduce, and containerization technology (e.g., Docker). In the third phase, the current Hadoop 3.x platform limitation was characterized, relying solely on its primitive access control measurements for maintaining data privacy, the complexity of deployment, and the consummation of resources. This phase included designing and implementing a light-weight, distributed-access broker, and an examination of the required software tools and technologies, including Apache Ranger and Knox. During the fourth phase (the proposed systems and frameworks phase) included the implementing of the proposed systems and frameworks over both cloud and on-premise clusters and their effectiveness was demonstrated. This validation included intensively testing the proposed frameworks using a series of evaluations to practically assess their performance and robustness. During the fifth phase, learned lessons and checking mechanisms took place to modify the selected tools, edit the architecture design, and by default, update phases three and four. Next, access control approaches were deployed, and a thorough security analysis of large-scale edge nodes (data streaming-based) were conducted. Afterwards, in the sixth phase, we conducted a more challenging use-case by implementing an Internet of Things (IoT) cloud-based solution for the benefit of Intelligent Transportation Systems (ITS), namely, a modern connected vehicles approach, based on cutting-edge BD frameworks and technologies. 10 Chapter 1. Introduction During the final phase, we conducted an extensive evaluation of the proposed system and submitted the final architecture design; we then wrote up our thesis and conclusions. 1.5 Thesis Contribution This thesis has successfully achieved the targeted objectives listed in section 1.2 and has achieved the following contributions: 1. The first contribution of this thesis is the enhancement of BD state-of-the-art resource management by extending the literature review into a comprehensive survey of the architectural elements of various deployment architectures of BD-processing frameworks. A novel taxonomy is proposed to discuss, in detail, the features of the various deployment models of BD frameworks. The BD solution’s current challenges are presented along with the future directions for improving future BD-processing frameworks and implementations by comparing and contrasting different solutions. 2. The second contribution is the development of a running prototype that extends the Hadoop YARN resource manager with dynamic provisioning and low-cost resource capacity uplift on-demand. For this, we propose an enhanced MapReduced environment (EME), which supports a heterogeneous infrastructure. The EME architecture extends Apache Hadoop to an opportunistically containerized environment. Doing so enhances the system throughput by adding underused resources to a local or cloud-based cluster. EME’s scheduler relies on our novel OPERA framework (OPportunistic and Elastic Resource Allocation), which is a pilot-job paradigm of the Hadoop 3.x framework task execution. OPERA continues spawning Hadoop DataNodes, based on Docker containers as worker nodes. BD applications can then use these workers. OPERA is a standalone pluggable architecture that does not require making any modifications to the prior Hadoop design. In OPERA, an opportunistic pool (HTCondor-based pool) and a dedicated YARN cluster can collaborate to improve throughput, with the minimal cost of deployment. In its core, OPERA launches disposable containers among the idle servers (creating an opportunistic container-based cluster) and ensures efficient provisioning for the Hadoop dedicated cluster on-demand. 11 FERAS MAHMOUD NAJI AWAYSHEH 3. The third contribution proposes the first (to the best of our knowledge) single-sign-on (SSO) approach for the latest Hadoop 3.x platform. This achieved goal discusses one of the most significant challenges of next-generation BD federation platforms, namely Hadoop privacy, with a cutting edge access-control framework. A conceptual model is proposed to achieve this by combining Hadoop access control primitives and the Apache Knox framework. Moreover, we provide a framework called BD Federation Access Broker (BDFAB), which addresses the eight main security limitations of the current Hadoop primitive access control. A Federated Access Control Reference Model (FACRM), which aims to formalize the design of secure BD solutions within the Hadoop stack, is introduced. BDFAB is a lightweight framework with minimal performance overheads. Our experiment indicates that our solution will add only 1% for each 100MB read/write operation in a WebHDFS. Overall, our findings in this trend pave the way for a wide range of revolutionary and state-of-the-art enhancements and future trends within the Hadoop stack security. 4. The final contribution of this thesis is the designing of a multi-tier Secure Intelligent Transportation System (SITS) architecture, which comprises the functional components and frameworks of the Apache Hadoop security stack. This model aims to facilitate security pattern design and solution elections by emphasizing the security-by-design concept when constructing ITS systems. In this dissertation, we map the main security features (requirements and threats) of data streaming in a connected vehicle environment to a BD-specific solution domain. Further, we define the security components responsible for delivering reference modules, basic requirements, and central system characteristics of an ITS-to-cloud environment. By doing so, we aim to demonstrate how to use this model in the development of effective BD security solutions and evaluation frameworks of data streaming channels. 1.5.1 Case Studies In this section, we demonstrate the use-cases and innovative applications of our thesis, which are designed to face specific challenges when dealing with BD scenarios as follows: 1. Data-Intensive Computing with MapReduce: MapReduce (MR) has been presented as a programming model that relies on two simple primitives in functional programming languages (Map and Reduce) to simplify massive 12 CHAPTER 2 BIG DATA: RESOURCE MANAGEMENT AND DEPLOYMENT ARCHITECTURES The MapReduce framework has pioneered the new generation of BD processing frameworks. It has been presented as a parallel data processing framework, designed to handle the workloads of Data-Intensive Applications (DIA). Apache Hadoop, the prominent MapReduce implementation, has been originally designed to run on dedicated, homogeneous local-based clusters. In the last years, several deployment environments have been introduced and they become available with various architectures and configurations. This chapter presents a comprehensive survey, along with a novel taxonomy, for the architectural elements of different deployments of BD processing frameworks. In addition, we discuss in detail and compare these various deployment paradigms. 2.1 Introduction BD programming models like MapReduce (MR) were initially introduced by Google [5] for processing large data sets as web search. It has emerged as a significant and widely used framework for processing massive volumes of data in parallel and distributed systems, due to its generality, ease of use, scalability, fault tolerance, and flexibility to handle tasks in different environments. The most well-known open-source implementation of the MapReduce framework is Apache Hadoop [6]. In principle, Hadoop is designed to utilize clusters of commodity machines. Thus, many organizations have built their dedicated Hadoop cluster to handle their FERAS MAHMOUD NAJI AWAYSHEH BD operations (storage and analysis). Over the years, several approaches have been introduced to improve the efficiency and flexibility of the MR framework. These approaches have been focusing on three main aspects. First, optimizing the scheduling policies and implementing different scheduling techniques, to meet diverse data-intensive MR application requirements. This includes a large body of research, as for, pipelining [7], join processing and handling data skew [8], multi-threading systems [9, 10], iterative operations [11] and make span minimization for both offline and online scheduling [12]. Second, scaling the system resource capability (i.e., scaling horizontally and vertically), and enhancing data distribution mechanisms, like Gfarm [13]. Third, searching for new resource providers by adopting specialized hardware accelerators [14] or trying new environments, which represent the research scope of this study. In this survey, we focus on the architectural elements of the BD processing frameworks using different deployment environments and discuss their salient features by focusing on the resources aspects. We present a taxonomy of the implementation requirements of BD processing frameworks which covers the different optimization objectives using a multidimensional classification approach. These dimensions represent the basics on which the performance of Data Intensive Application (DIA) systems heavily rely, namely: (a) resources, (b) security, (c) tasks, and (d) data management. Based on the proposed taxonomy, we discuss the open issues and challenges raised in data analysis using BD processing frameworks in different non-traditional environments and outline the corresponding solutions in the literature with new directions for future enhancements. In addition, we discuss how these systems differ by using two use cases based on the resource location. In particular, we present a classification of the existing implementations using LAN-based and WAN-based environments, focusing on delivering high Quality of Services (QoS) in any environment. The remainder of this section is organized as follows. Section 2.2 provides the background of this article. Section 2.3 presents a taxonomy of MR operational environments, from both traditional and non-traditional configurations. A discussion on the convergence of the different deployment architecture is presented in Section 2.4. Section 2.5 highlights the emerging BD architectures and discusses various challenges and future research directions that need to be addressed within the next-generation BD platforms. We finally conclude in Section 2.6. 20 Chapter 2. Big Data: Resource Management and Deployment Architectures 2.2 Background In this section, we present a brief overview of the MapReduce framework and highlight the novelty of our survey with respect to other related surveys. 2.2.1 MapReduce framework MR has been presented as a programming model that relies on two simple primitives in functional programming languages (Map and Reduce) to simplify massive parallel data processing. In particular, Map tasks receive their input as key-value (k1,v1)pairs and return the results as intermediate key-value (k2,v2)that are grouped together by the framework and passed to a Reduce function for each key to generate the output. All input, intermediate, and returned data are maintained in file systems of different implementations. The architecture of the Apache Hadoop framework, the original implementation of MR framework, follows the master-slave model, where a single master is run to schedule tasks and to monitor their progress. This master starts several containers on the slave nodes for executing the map or reduce tasks (independent chunks in parallel), using large-scale committed nodes (i.e. dedicated tightly coupled cluster) and data is centrally available (pre-placed). Figure 3.4 illustrates the different layers and architectural design of some paradigms that implement MR services. It also highlights some of the primary abstractions compared to the native Hadoop deployment architecture. In particular, the Hadoop framework consists of three main components [15]: (i) The Hadoop Distributed File System (HDFS) [16] that handle data management and access, using a NameNode process running on the master and multiple DataNode processes running on the worker. HDFS uses data replication to achieve high data availability and reliability. (ii) Apache YARN [17], which is a cluster resource-management platform that is responsible for scheduling user’s application tasks, implementing security controls and managing the computing resources, besides providing the high availability features of Hadoop. This new architecture removes the old JobTracker (in Hadoop v 1) from managing resource usage across applications, which removes the single point of failure and enhances the scalability, thus allowing it to run other applications apart from MR ones. YARN uses a global Resource Manager to receive and run applications on the slaves, and a Job History Server to provide information about completed jobs. On the slave side, the NodeManagers (used to be known as Task Tracker in Hadoop v1) provides information about the node status and capacity. (iii) An execution framework (e.g., 21 FERAS MAHMOUD NAJI AWAYSHEH Figure 2.1: Desktop Grid, HPC, and Hadoop architecture and abstractions: Each approach has different resource management and communication capabilities with hitherto distinct resource type. 22 Chapter 2. Big Data: Resource Management and Deployment Architectures MR) that runs a per application ApplicationMaster, to manage the different jobs. The ApplicationMaster asks for resources to the ResourceManager, which, with the information provided by the NodeManagers, provides the resources in the form of containers. The ApplicationMaster runs the application in those containers, controlling its behavior and re-launching failed tasks as needed. 2.2.2 Related work There is an extensive discussion in the literature of BD processing frameworks. For instance, [18, 19] reviewed the state of the art for big data processing systems. Other studies [20, 21] analyzed the systems from perspective of the performance requirements for deploying data-intensive applications. Khezr et al. [22] discussed the differences among various implementations of MR in cloud environments. Moreover, Li et al. [23] illustrated the differences between MRv1 and MRv2 and addressed the Hadoop 2.0 improvements. This survey distinguishes itself by providing a comprehensive and thorough coverage for the prominent BD processing paradigms from the resource management perspective. We cover various configurations including a variety of items and techniques to compare, due to the massive difference in the resources type, e.g., dedication, heterogeneity, cost, connectivity, and scalability that has been adapted to handle specific data analytic verticals. To the best of our knowledge, no other study has considered this aspect at the same level of detail. 2.3 Taxonomy of MapReduce environments In this section, we present a taxonomy of MR implementation environments (MRIE) based on the computing resource types. These deployment environments are from both traditional and non-traditional configurations and paradigms that aims to deliver MR-based services and deal with the challenges of volume, velocity, variety, and veracity inherent in DIA. Figure 3.6 presents our taxonomy by organizing Big Data processing frameworks into six main categories. These categories are, further, defined and described in Table 1. In our taxonomy, we divide the cluster computing into bare-metal (physical) machines, which consist of either CPU or GPU clusters, and virtual machines (VMs), which in turn are divided into hypervisor-based and container based clusters (CBC). In addition, we categorize the cloud computing implementations separately from the local virtual clusters, even though they rely on the same technology (virtualization). However, by separating the local-based virtual clus- 23 FERAS MAHMOUD NAJI AWAYSHEH Figure 2.2: Taxonomy of MapReduce Implementation Environments (MRIE). 24 Chapter 2. Big Data: Resource Management and Deployment Architectures Table 2.1: Defining various categories of big data taxonomy. Cluster Computing A set of a commodity computing nodes connected through fast local area networks as a single system. Cloud Computing A shared pool of computing resources which enable remote access and are based on virtualization technologies. Supercomputing and HPC A set of high-end computing nodes connected through highspeed local or wide area networks to achieve massive computing power. Grid Computing A pool of computing resources from various locations working together to achieve a shared goal, and with non-interactive workloads. Decentralized Computing A distributed architecture where each machine is equally capable of servicing requests without the need for central coordination. Hybrid Computing An amalgamation of two or more paradigms to exploit the benefits of those paradigms with the aim of better performance or to lower the total cost. ters from the distance virtual clusters (Cloud-based), we can differentiate the technologies and resources that were used, i.e., computer networks, servers, storage, applications, and services. Thus, we are able to provide the agility required to analyze all MR implementations in this prominent model comprehensively. Besides, grid computing consists of both dedicated and non-dedicated (opportunistic resources) infrastructures. Further, the opportunistic solutions classified into two main categories, namely, Volunteer Computing (VC), also knows as Internet Desktop Grids (IDG), and Enterprise Desktop Grids (EDG). High Performance Computers (HPC) based deployments have been classified, depending on its resource locality, in local and distributed data centers. Meanwhile, decentralized approaches that have been presented in the literature can be categorized into two main pillars: Peer-to-Peer (P2P) computing and mobile computing-based architectures. Finally, we also consider hybrid approaches, which combine different environments in the same deployment, e.g., coupling CPU and GPU clusters. 25 FERAS MAHMOUD NAJI AWAYSHEH 2.3.1 HPC and Supercomputing The HPC paradigm is considered an essential environment for scientific Computing Intensive Applications (CIA) and massive-scale distributed tasks systems [24]. Hadoop and HPC paradigms shares some features and components in their design (see Figure 3.4) and might seem similar. However, they are adapted to solve very different problems and fulfill different workloads. Further, the complexity and characteristics of Hadoop framework are reasonably distinct from HPC applications as well. Consequently, both paradigms are architectured differently. In particular, supercomputing platforms typically support separate globally shared file systems such as NFS, SAN or Lustre1, and do not provide on-node persistent storage. While, on the other hand, Hadoop employs its own distributed file system and processes tasks locally to avoid contention for shared storage resources. HPC uses batch queue systems for the fair sharing of batch resources among different users with parallel distributed file system combined with high-performance interconnection for shared storage. Also, they provide low-level programming APIs that can achieve much higher efficiency. However, they lack fault-tolerant storage support for large-scale data sets. Hence, using HPC resources directly for the benefits of big-data applications will result in certain performance degradation. In principle, Hadoop has been mainly designed to solve DIA problems, with many loosely coupled tasks, unlike the tightly coupled (usually dependent) tasks that are natural of the supercomputers. In particular, Hadoop brings computation power to data (to minimize data transfer and improve data locality), running the HDFS daemons locally within a significant amount of disk-based space on each node. Thus, data in HDFS is physically distributed and replicated throughout the cluster. In contrast, many HPC clusters rely on diskless nodes and use a separate group of hardware as a data storage to provide file-level access. In its core, Hadoop presents a higher level of abstraction in terms of data management which limits the high latency in data transfer. In contrast to HPC, the task management in Hadoop consists of a single master per application, ApplicationMaster (AM), which communicates with many NodeManagers on the cluster nodes. The AM supervises all MR workloads. Thus, Hadoop manages failure more efficiently, as if an HDFS node fails, the AM can reassign the task to another node with a redundant copy of those data. Similarly, the failed tasks (Map or Reduce process) may restart on a new node, using task reassignment and resource recovery techniques. In general, the scale-up capabilities provided by supercomputing platforms attracted atten- 1http://lustre.org/ 26 Chapter 2. Big Data: Resource Management and Deployment Architectures tion to optimize the performance and keep the turnaround time to a minimum. This vertical scaling capabilities for computational power, also, enables using the already installed HPC infrastructures, rather than creating a new and costly Hadoop cluster. Several attempts and techniques have been proposed to merge the technical gap and cope with the inherited limitations between the broader HPC infrastructure and the MR framework. These techniques can be categorized into three main approaches: 1. Running DIA processing frameworks over HPC environments to support applications with both compute and data requirements and enhance supercomputers utilization. 2. Implementing MR extensions using the Message-Passing Interface (MPI) with interfaces and libraries to support key/value communication and in-situ data processing on supercomputing systems. 3. Besides the previous two on-premise categories, utilizing geo-distributed supercomputers was proposed as well. In this section, we analyze the characteristics and design decisions of deploying big data processing frameworks in HPC environment (see Table 2). MR over traditional HPC myHadoop [25] has been presented as an MR distribution in traditional HPC resources that allows configuring Hadoop, on-demand, without the need for root-level access to leverage the framework. It is a lightweight distribution. However, it showed much slower performance in executing MR tasks in comparison to the native Hadoop implementation. An extension of this framework has been adopted in HPCHadoop [26] that has been designed to run Hadoop on Cray X-series supercomputers. Another example is MARIANE [27] that offers ease of programming, synchronization and parallelization abstractions but does not support shareddisk file systems. Supercomputers had also harnessed many-core processors to scale their computing capacities vertically [28]. Sehrish et al. [29] attempted to address the gap among HPC data storage systems and data-intensive systems by implementing a data-centric scheduler that maintains data locality using the integration of data access semantics with the MR programming model. PortHadoop [30] proposed a direct data fetching between Hadoop framework and supercomputers via a parallel file system, and Mrap [31] extends the MapReduce framework to reduce the number of the pre-processing tasks. Apache Slider [32] de- 27 FERAS MAHMOUD NAJI AWAYSHEH ploys long-running distributed applications on a YARN cluster with elastic resource allocation on-demand. SAGA-Hadoop [33] has been designed to provide a uniform framework for managing and running a full Hadoop cluster in user space, on top of existing HPC resource management systems (e.g., Fork, SGE, and PBS/Torque). MR extension to MPI This approach aims to accommodate fast communication infrastructure and standard interface to facilitate the development of parallel and distributed application. Compared with Hadoop communication primitives, the performance of MPI communication primitives is high [34]. In particular, MR shuffles mechanisms considered as a system bottleneck from the basic communication level of remote interaction. Consequently, several approaches have been proposed relying on MPI techniques for implementing MR frameworks. For example, SMART [35] has been designed to process Terabyte-scale data sets on traditional MPI-based supercomputers using a parallel library that contains a lightweight implementation of MR functionality. Mimir [36] has been presented as a memory-efficient MR library for supercomputing systems over MPI. Guo et al. [37] presented a study that supports fault tolerance over large HPC clusters with failure detection and recovery plans. Lin et al. [38] presented an approach for integrating MPI into the current BD stack with the aim of addressing the metagenome reads clustering challenge, which holds both data and compute-intensive phases. Distributed HPC G-Hadoop [39] represents a prominent example that has been designed to support large-scale geographically distributed computing across different clusters. Similarly, Wang and Li. [40] investigated the scheduling of MR jobs over geo-distributed datacenters on heterogeneous networks with an adaptive heartbeat. GreenMap [41] introduced an energy-efficient embedding method as a use-case for MR-based virtual networks over heterogeneous datacenter networks. ChEsS [42] presented an approach for a dynamic jobs assignment on heterogeneous clusters by exploiting historical data for predicting the processing times with emphasis on data locality restrictions and the cluster processing capacities. Employing MR model for loosely coupled applications (compute-intensive) over distributed cyber-infrastructures using replica exchange was proposed in [43] to provide task-level parallelization and scalability. Further, spawning pilot containers to manage Hadoop MR/Spark clusters on HPC infrastructures on demand was manifested in [44]. In contrast, utilizing parallel storage system (e.g., Lustre) 28 Chapter 2. Big Data: Resource Management and Deployment Architectures Table 2.4: A Survey of MR distributions in Grid environment. Study or Authors Name Heterogeneity/Dedication Field of Contribution Advantages Limitations K Lee [90] Heterogeneous / Opportunistic Data Allocation based on session up time of the opportunistic resources -Reduction the service disturbance in Opportunistic environment using the resource session uptime not availability rate - Decrease the number of interrupted tasks - Single job (Workload) - Doesn’t support back up for the Sudden failure -In large VC resource pool it has limitation in monitoring/managing the resources Yuting Ji [91] Homogeneous / Opportunistic -Data Allocation -Task Scheduling -Fairness scheduling and Multi-job -No third part needed to manage resources - Do not take into account data locality and data placement -Not applicable for Heterogeneous participation ADAPT [92] Heterogeneous / Opportunistic Data Placement -MR with low data replication - improve the data locality and reduce the network traffic - End-to-end application performance - Focused on single job (Workload) -Doesn’t support task allocation to improve QoS Corona [93] Homogeneous / Dedicated Data Allocation - Better scalability and cluster utilization - Lower latency for small jobs - Ability to upgrade without disruption - Do not take into account data locality and machine capability - Doesn’t support undedicated machines HOD [94] Heterogeneous / Dedicated Data Allocation -Create a temporary Hadoop platform in the Grid - Auto-generates the appropriate configuration files for clients - Has the capability to distribute Hadoop to the nodes in the virtual cluster - High reconstruction overhead, fixed node number, and randomly chosen head node - Need a 3rd part to do node allocation (Torque resource manager) HOG [95] Heterogeneous / Opportunistic -Data Allocation -Data Placement - Has a scalable size, and has a static dedicated head Node - All data stored in the grid resources and replication schemes for data availability - Common lose nodes, and need to rebalance data frequently - Uses plain HTTP for communication between nodes G-Hadoop [39] Homogeneous / Dedicated -Data Allocation -Data Placement - An improved fault-tolerant data processing environment - Uses Gfram instead to HDFS - Target multiple distributed High End Computing (HEC) only - Relies on a centralized high performance networks with high bandwidth -Need 3rd part to manage resource (Torque) MOON [96] Homogeneous / Hybrid -Data Allocation -Data Placement - Replica on dedicated nodes can significantly enhance availability with low cost - long running tasks are executed on dedicated nodes -High QoS on Opportunistic resources using speculative task scheduling -3rd part needed to manage resource availability -Focused on single job (Workload) - Homogeneous environment -Doesn’t demonstrate to work on Internet Desktop Grid MRA++ [97] Heterogeneous / Dedicated -Data Allocation -Can be implemented in a low network bandwidth (such as Internet) -Different scheduling upon capability -Avoid unworthy task to be remote -Considers the heterogeneity of nodes during data distribution and task scheduling to gain a good balance of tasks -Not applicable for opportunistic environments -Ignored volatility of Data -Single job scheduling (Workload) -Do not take into account data placement (locality) 35 FERAS MAHMOUD NAJI AWAYSHEH 4. Gaining better Return on Investment (ROI) in the case of EDG. 5. Improving the ability to handle failures and reduce system management costs. Several approaches have been focusing on running DIA (MR-based) on Grid and DG. For instance, Lee and Figueiredo [90] suggested a data allocation scheme, based on session uptime of the opportunistic resources, by selecting a subset of the available workers in a volunteer pool of resources that is predicted to be available in the future. A similar approach is followed by ADAPT [92] which exploits the availability history to assign an estimated availability rate for each new participant. Then, this rate is used to predict the node future availability and data is sent based on the participant availability. In contrast, Ji et al. [91] proposed a new scheduler, called Opportunistic Fair Scheduler (OFS), that extends the Hadoop Fair Scheduler (HFS) [99]. This approach improves fairness and performance among multiple concurrent jobs in an opportunistic environment by learning node availability statistics and interruption handling within Hadoop. However, the free-to-join mechanism that is natural in the VM environment, causes a significant challenge regarding security to verify that malicious volunteers do not intervene the results of computations. Therefore, a model that characterizes the error rate of a MR application using the majority voting method was proposed by Moca et al. [100]. The proposed system relies on the BitDew-MR middleware [101, 102]. Besides, it intends to be appropriate for large scale and loosely coupled IDG. It had further been evaluated and compared with Hadoop [98]. In general, the Grid demands resource-aware schedulers (e.g. Fair Scheduler or Capacity Scheduler) for enhancing its performance. MRA++ [97] proposed an implementation with low bandwidth networks (such as the Internet) and considers the heterogeneity of nodes during task scheduling and data distribution to gain a fair balance of tasks. MOON [96, 103] has been presented as a hybrid configuration in which volunteer computing (non-dedicated) platforms are augmented with a set of dedicated workers to reduce the implementation cost. The main focus of this approach is to allocate a small set of dedicated nodes to volunteer computing systems. MOON adopts the LATE algorithm, a scheduler by Zaharia et al [104]. On the contrary, VMR [105] proposed an Internet volunteer computing system to execute MR applications as independent tasks. Another example for implementing MR programming over desktop grid distributed on the Internet was proposed by Google [106]. 36 Chapter 2. Big Data: Resource Management and Deployment Architectures Figure 2.3: Docker layered architecture and hypervisor vs. container virtualization abstraction. 2.3.4 Virtualization Technology The main focus of virtualization technology (VT) is to emulate the behavior of many execution environments into the same physical implementation using a hypervisor (e.g., VMware, KVM or Xen) [107]. Once a physical machine is virtualized, higher level services can be deployed as a Hadoop cluster. Virtualization techniques provide many advantages including: 1) Reducing operational costs (a single image of a system can be cloned). 2) Allowing the user to set up resources that are elastically sized (expanded or contracted) on-demand. 3) Providing economic cost-benefits by saving power, getting a better return on investments (i.e., physical infrastructure can reuse) and reducing capital expenses on infrastructure (especially in testing cases). 4) Providing an isolated environment for testing MR codes while improving the system’s reliability. On the other hand, solutions based on virtualization technology suffer from various performance overhead and limitations [108]. Lightweight virtualization The use of virtualization technologies has been restricted in HPC and data analytics platforms because of their inherent performance overhead. However, the advent of advanced virtualization solutions, known as container-based virtualization (e.g., Linux Containers, aka LXC), has 37 FERAS MAHMOUD NAJI AWAYSHEH Figure 2.4: Container vs. Virtual machines interest over time. lead to a growing attention in its ability to hold BD operations [109]. In principle, container virtualization is a kernel-level approach for deploying and running distributed applications in a sandbox environment without launching an entire VM for each application and task. This way, it does not require separate OS instances but multiple isolated environments, called containers, that are deployed on a single control host and access the shared OS kernel. Thus, by eliminating the hypervisor layer, container virtualization guarantees the resource share with higher efficiency and leading to near-native performance [110, 111, 112]. Containers relies on the cgroups (a Linux kernel feature to isolates the resource usage like CPU, memory, etc.) and namespaces functionalities, which are more efficient than VMs with very low overheads. Figure 2.3a shows the architecture of Docker, one of the most popular technologies for containerization, whereas Figures 2.3b and c plots the differences in the layered architecture of both container and hypervisor based virtualization. In practice, containers are proving to be an extremely valuable technology for service science in delivering reproducibility and continuous integration. Therefore, there is a trend towards using containers in the form of container-based clusters (based, for example, in Mesos, Apache Myriad,Docker Swarm,Google Kubernetes or CoreOS Fleet). Figure 2.4 shows Google’s Web search trends for ’virtual machine’ and ’Docker container’. The search for virtual machines and containers have started to go side by side shortly by the middle of 2016 after which Docker containers search trends started to overtake that of virtual machines. This reveals how container-based technologies, e.g., Docker containers, are getting more attention from Internet users, compared to the traditional virtualization technologies. Some research efforts started to adopt this approach as a promising framework for Hadoop. For example, XConveryer [113] has been presented as a Hadoop implementation based on kernel-level virtualization facilities to reduce job competition and eliminate the rescheduling 38 Chapter 2. Big Data: Resource Management and Deployment Architectures caused by another virtualization. Xavier et al. [111] and Chung et al. [114] studied the performance impact of the isolation of container-based systems for both computer-intensive and data-intensive workloads. Rey et al. [115] proposed a simulator for testing and deploying MR applications using Docker with system fault-tolerance scenarios. In practice, containerbased platforms are gaining momentum and have high potential for leveraging the DIA and BD operations. Some studies [116, 117] indicated that it is promising that LXC would be the future cloud and BD analytics further handling increasing memory requirements in dataintensive parallel programs [118]. However, prior to replace conventional hypervisor-based virtual machines with containers, it is crucial to address some concerns. For instance, security characteristics of container implementations that share the OS kernel with a deep level of authorization (usually root access). This could imply much more significant vulnerabilities and increase the potential propagating of malicious activities. Also, containers are stateless; after the container exit or die, the internal state is lost, so launching a new container requires it to be installed from the hub. A solution can be found in implementing a checkpoint mechanism that stores the persistent state of the container in a file system. Furthermore, other solutions include implementing a relaxed policy, by holding the container into a predefined time and waiting time for a process before exiting, in other words, to trigger speculative container. 2.3.5 GPU computing GPUs (Graphics Processing Unit) have been originally designed for graphics processing with large data sets and complex computational intensive jobs. It has gained much attention due to their ability to speed-up response times when compared to traditional CPUs. Thus, there was increasing interest toward leveraging the General-Purpose GPUs (GPGPU) and GPU- accelerated systems as a scaling-up mechanism to increase computational efficiency, save energy, and exploit data parallelism [119]. On the other hand, GPU programming can lead to unnecessarily highly complex programs that suffer with data-intensive workloads because of the weak memory transfers (in-disk data movement between CPU’s main memory and the local memory of the GPU) and the absence of direct access to files on the host OS file system. Additional challenges include the low level nature of their libraries and the synchronization problem of managing GPUs and CPUs. To address these issues, several research efforts suggested different solutions that can be categorized as follows: •Minimizing data transfer through the main memory. Chen and Agrawal [120] proposed 39 FERAS MAHMOUD NAJI AWAYSHEH an approach for optimizing the shared memory by using a small programmable cache on the GPUs to enhance the system utilization. Other approaches [121, 122] focused on deploying new protocols to reduce data transfer time in the reduce phase by using I/O oriented scheduling to minimize idle I/O time. •Hide the programming complexity.Mars [123] presented an approach for hiding the programming complexity of the GPU. MR-Graph [124] has been presented as a framework that allows its users to implement their applications more flexibly. •Using GPU Clusters.GPMR [125], MGMR [126] and GCMR [127] are examples of systems that have been proposed to process large-scale datasets on GPU clusters. Moreover, D. Loghin [128] proposed to enable the GPU to process multiple ¡key, value¿ pairs in parallel. •Combining the CPU and GPU in a hybrid system. Chen and Agrawal [129] proposed two approaches: the first one in which the the map processes are shared out between the CPU and the GPU, and a second one that executes the map task on one device and the reduce the other. Jiang, et.al. [130] developed two systems (MGMR++ and PMGMR) to combine CPU and multi-GPU, where if data size is larger than the aggregate momory of the GPUs, CPU memory is exploited to continue the execution of MR processing. 2.3.6 Decentralized Environments The great success of MR framework attracted both data and distributed system engineers to deploy it in emerging environments such as mobile computing or P2P. In contrast to centralized computing, the typical architecture design for Hadoop, both P2P and mobile computing are decentralized approaches where no single server node is responsible for all data and task allocation. Thus, adopting such environment is challenging, as well as promising. Peer-to-Peer (P2P) computing In principle, the design characteristics of the P2P model conflict with a fundamental assumption of the architectural design of the MR framework, which relies on a central management of computing resources using a master/worker strategy. In particular, P2P assumes that all nodes (peers) has equal privilege using a decentralized model. In general, deploying dataintensive applications in the context of P2P environments can introduce several advantages 40 Chapter 2. Big Data: Resource Management and Deployment Architectures Table 2.5: MapReduce in P2P environment A typical P2P environment features are: Why MR tasks on P2P environment? • Non-dedicated (Nodes and connection). • Heterogeneous capabilities (Lowend mostly). • Mainly used for loosely-coupled CI workloads. • Elastic, Auto-scale and fault tolerance (Replication) environment. • Less manageability and system administration. • Low cost (aggregation of peer nodes). • Easy to install and scale up ondemand. • Natural mechanism for fail recovery with high loosely-coupled tasks. for MR-based systems. Table 5 summarizes some advantages and features of using a P2P environment for MR-based solutions. Several research efforts have been focusing on achieving a reliable MR-based execution over the P2P environment. For example, the PER-MARE project [131] proposed to implement MR over pervasive grids. It relied on porting the MR paradigm over a P2P distributed computing middleware, CloudFIT [132], by adapting Hadoop to include context-aware elements to achieve efficient service execution on the target environment. Further, supporting Dataintensive MR-based clusters on pervasive environments was reported in [133] by employing ZooKeeper as a light-weight resource collector. In this approach, context-aware scheduling has been used for dynamically supporting resources availability status in the Hadoop-like systems. Wang et al. [134] proposed to use a queue structure to buffer tasks on P2P networks. This approach eliminates centralization by distributing scheduling responsibility among the participated nodes. Furthermore, it tackles data locality concerns by assigning to local tasks a higher priority when taking executive decisions. 41 FERAS MAHMOUD NAJI AWAYSHEH Mobile computing In the last few years, the processing power of smart phones and small devices have advanced so rapidly. These computing capacities are now more connected than ever. In principle, the ubiquity of mobile phones demands a decentralized system to exploit their potential and maximize its efficiency. In principle, synergising the computing of the massive number of small computing devices represent an emerging and promising new research domain. In particular, the deployment of MR implementations on mobile devices is considered as a special scenario that required the integration between two main technologies, namely, the ubiquitous computing and ad-hoc networks. However, in practice, mobile-based data analytics is facing many inherent resource constraints. For instance, the frequency of network disconnection is much greater than the one in traditional computer networks. In addition, there are still severe power restrictions that limit the life expectancy of the smart phone batteries. Other issues include the asymmetric communications costs, size of storage space and privacy. In principle, this environment can be characterized by the following primary features: 1. The volatility of the components, because participation is non-dedicated (mostly opportunistic) and device memory status fluctuates, which raises the availability issue. 2. The component’s heterogeneity, whose capabilities can vary on different characteristics (both software and hardware). 3. The possession of the components where participation is mostly donated (volunteer). Obviously, protecting the privacy of individuals is also a main concern. 4. Connection status, because devices can change their network connection, switching from a fixed network connection to a mobile Internet, e.g., wireless to 4G. Misco [135] has been proposed as a MR polling-based framework for implementing applications on mobile platforms. It comprises a Misco Server that keeps track of applications and input/output data and Misco Workers to process the individual map and reduce tasks returning the results to the server. On the other hand, Hyrax [136] is a Hadoop distribution that supports cloud computing on Android smart phones. Finally, George et al. [137] proposed implementing Hadoop MR framework over a mobile distributed file system, while Huang and Wu [138] proposed using heterogeneous mobile devices and a wireless router. 42 Chapter 2. Big Data: Resource Management and Deployment Architectures 2.3.7 Hybrid environments Hybrid computing system can be described as a set of heterogeneous computing paradigms that are connected in an amalgamating platform that is, typically (but not necessarily), attached to a unified computational pool of resources. In principle, the main goals of hybrid architectures are: (i) minimizing the capital expenditure on large private infrastructures, (ii) avoiding the static partitioning of computing resources and infrastructure silos, and (iii) reducing operational costs. Scaling Hadoop MR using cloud bursting by coupling internal cloud to external cloud was the aim of BStream [139]. In its approach, BStream integrates stream-processing (using Apache Storm) with batch processing to realize inter-cloud MR by enabling the execution of the reduce operation in the external cloud using pipelined uploading. MOON [140] has been presented as a hybrid resource architecture implementation, in which a set of volunteer (nondedicated) computing nodes supplements dedicated MR systems on-demand. Kijsipongse et al. [103] discussed the challenges of allocating a small set of dedicated nodes to BOINC volunteer computing system. Aries [141] has been presented as an approach for coupling the features of both low-power servers and high-performance ones in order to provide competitive performance and energy efficiency as well. The main target of this approach is to maximize the use of idle CPU, memory and network resources in microservers, using a fine/coarse granularity of resource management abstraction. In contrast, Nebula [142] is a distributed edge cloud infrastructure that has been designed to efficiently exploit the edge resources from both dedicated and non-dedicated servers. G-MR [143] has been presented as an optimized framework that executes MR jobs in a hybrid Grid (as arising in cloud-of-clouds scenarios) using geo-distributed clusters. It uses data transformation graphs to find the optimal execution paths among edge nodes. The work by Tang, B., et al., in [144] proposed a hybrid environment that combines EDG and cloud instances. Their system HybridMR, employed a hybrid distributed file system and an adaptive scheduler that takes into account the performance differences between the system nodes. Table 6 presents a comparison of different hybrid architectures and their key attributes. In principle, the key advantage for designing platforms that support resources management in hybrid environments can be summarized as follows: 1. The flexibility to adjust the computation capabilities on-demand and elastically. 2. Self-service functionality to meet the increasing demand for computing environments. 43 FERAS MAHMOUD NAJI AWAYSHEH Table 2.6: Comparison of key attributes of Hybrid architecture Hybrid Technique Ease of deployment Flexibility/ Selfservice Scalability Security Fault tolerance Data transition Cost efficiency Startup latency On-premise with Cloud Moderate Static Scalable Moderate High High Efficient High Centralized cloud with edge-cloud Complex Dynamic High scalability low High High Efficient High On-premise with EDG Moderate Static Limited Trustworthy Moderate Moderate Efficient Low Private with public cloud Simple Dynamic High scalability Moderate High High Efficient Moderate Cloud/local with IDG Complex Static upon participation Low, vulnerable Low Very High Efficient High 3. Economic savings for meeting peak demands without increasing the TCO. 4. Improving the overall performance by minimizing the job queuing, enhancing the throughput to the available resource amount and reducing the turn-around time. 5. Strengthening the system scalability by executing beyond the cluster capability with an auto-scale approach. The main concerns are the high concurrent access to massive data sizes and several security threats. Some of the bottlenecks are due to the limited network connection, processing across different administrative domains, and the variety of computing resources. Also, the high startup latencies, force to wait for the entire system to be allocated in the resource pool. 2.4 Convergence of the paradigms To analyze and evaluate these paradigms, we grouped them into two use cases, based on the resource location, namely, LAN-based (Intranet) and WAN-based (Internet) target networks. First, LAN-based implementations include: (i) computing clusters (Actual and Virtual), (ii) 44 Chapter 2. Big Data: Resource Management and Deployment Architectures Figure 2.5: Overview of BD deployment architectures challenges and trends. 51 FERAS MAHMOUD NAJI AWAYSHEH diversity of underlying resources (hardware, network, etc.). An implementer should consider the abstraction layers contributing to the Big Data stack to facilitate the adaptation of resources (network, storage, servers), data (file systems and databases), runtimes (frameworks), and applications. Changes could be required all over the layers in some scenarios, for instance, in IDG where nodes are highly heterogeneous and non-dedicated over geo-distributed locations using low bandwidth networks. Another example can be found in the distributed paradigms, e.g., P2P and mobile computing with decentralized management and low-end nodes. Resource brokering and start-up latency Resource brokering refers to dynamic relocation of available resources within the environment to optimize the cost and performance of an application at any time. This challenge also includes managing the underlying physical resources and monitor the resource (compute and storage) utilization and availability. In volatile and resource shared configurations, predicting the node availability for task allocation can be challenging since it requires sophisticated provisioning mechanisms of both static and dynamic techniques. On the other hand, start-up delay may happen due to two factors. First is data materialization, where the input data must be placed on the computing node before starting the process. This assumption could result in high latency due to the limited capacity of the network link in some architectures. Second, resource materialization, by registering all computing nodes in a single resource pool within a hierarchical clustering. So, the scheduler maps the available computation to applications/task desire to consume them and delay may occur by resource provisioning or processes deployment. Handling the platform security Having and maintaining a highly controlled management of the data, nodes, and processes deployed on all the machines is critical in designing a BD system. The fundamental abstraction of traditional BD architectures is directed to on-premise clusters. In such scenarios, faults are less harmful because most of the nodes are trustworthy and can run flawlessly for extended periods. Still, having high-reliability results to avoid potential misuse and malicious corruption is required for other configurations and paradigms as they seem to be more vulnerable. Result verification, as for result certificate, random sampling and majority voting techniques may seem unnecessary in a native Hadoop cluster. However, deploying an MR implementation in an unreliable environment (e.g., volunteer or Edge/Fog mobile computing), demands valida- 52 Chapter 2. Big Data: Resource Management and Deployment Architectures tion schemes for the results due to these environments vulnerability and volatility [145, 146]. Also, processing results can be secured via encryption. Fault tolerance and failure detection Traditionally, in Hadoop, detecting failures in machines and processes is based on heartbeats. Each slave node sends a static heartbeat every 3 seconds (this parameter can be configured). The master node performs checks on the expiry time report (timeout) of heartbeats every 200 seconds by default. When no heartbeat is delivered from a slave node for ten minutes (three timeouts), such node gets identified as a failed machine, and the master node triggers the failure handling and recovery processes. However, detecting the failure of sensitive tasks using this mechanism can return with a delay. Replacing heartbeat with an instant messaging mechanism to speed up task scheduling was proposed in [147]. Moreover, checkpointing may be considered an active failure handling technique in which the system is to restart from an early state point in case of failure [148]. Yet system-level checkpointing is considered as a heavy-weight approach for MR applications [37]. Mitigating the system complexity In theory, enterprises make the choice on how and what resources to use for certain job demands. They may trade-off between using existing infrastructure (adapting a supercomputer for instance) or picking from a new best-in-class solution. However, this raises a compatibility issue, especially across the datacenter. This concern makes it challenging to pick and configure environment components and leverage all its features. Unfortunately, the complexity is not only due to the issue of compatibility, but also other challenges include navigating through logistics behind the system connectivity like long-term maintenance and management. One step towards addressing environment complexity is auto-managed architectures by the orchestration of its component which lowers system administration cost. Another solution would be utilizing containers to provide a compatible runtime environment across any platform. Trade-off resource location In the comparison of the two previous cases in section 2.4, LAN-based approaches meet the MR prime assumptions on the characteristics of the environment like dedication, homogene- 53 FERAS MAHMOUD NAJI AWAYSHEH ity, and high connectivity. Meanwhile, WAN-based approaches are more dynamic, scalable and yield cost benefits, with variety in the environmental trust and reliability. 2.5.2 Emerging environments In practice, BD computing infrastructure is expected to continue growing and evolving to meet the requirements of large-scale data systems and applications. In this section, we provide some suggestions on some computing environments that can play a significant role in future architectures. Embedded systems and Microservers The concept of fusing multiple embedded processors environments, including sensors into BD infrastructure, will emerge to accommodate the tightly coupled (usually dependent) dataintensive tasks. This trend is driven by the advent of microservers architectures, which have become increasingly pervasive. Modern microserver technologies, e.g., ARM2and Intel Atom3, continue to improve their computational capabilities steadily, and are gaining momentum on being adopted in BD architectures [141]. Due to this, it is claimed that the next wave in the computing era will go beyond the realm of the conventional servers and desktop computers, gearing towards the use of more collaborative low-end servers, near-user edge devices, which will be responsible for a significant amount of storage and processing [149]. Many recent works have investigated this context over embedded low power processors such as [150]. Hashem and Ibrahim [151] concluded that BD solutions in such deployment architectures are in its infancy, but is becoming a practical field. Still its reduced memory, low I/O and memory bandwidth, and software immaturity may cancel the lower-power advantage of microservers. These are open challenges that needs to be addressed with future implementations. Edge data analytics In the last years, the use of computing nodes located at the edge of the networks has accelerated (e.g., fog and mobile edge computing), leading to new forms of heterogeneous computing models. Two factors have influenced this trend. First, the significantly increased number of 2https://www.arm.com/ 3https://www.intel.com/content/www/us/en/products/processors/atom.html 54 Chapter 2. Big Data: Resource Management and Deployment Architectures end-users whom attach their devices to the cloud. Second, data processing is becoming more delegated from the clouds to the edge. These claims are evident with the advent of smart environments that are equipped with distributed sensors, which gather heterogeneous data at the edges of the networks. Exploring data runtime at the edge of the network, near the source of the data, hold a lot of potential. First, decreasing the volumes of data that must be transferred (confine traffic), and, hence, reducing the high latency in transmission costs. Second, enabling the optimization of a wide range of technologies to provide high-level abstractions for BD processing. Third, enhancing the interactive cloud applications that appeal to the end user’s devices for closer execution, especially in wireless and mobile ad-hoc network connectivity that tends to be latency-sensitive. However, decentralized cloud models are not appropriate for widely stateless services with limited data transmission, such as the Web. It is also challenging to analyze batch data that originates in the cloud. These issues can be labeled as open challenges to address with future implementations. Container-based mobile-fog architectures It is anticipated that running BD tasks using containers on the mobile base stations is an interesting and promising trend. This is especially true for those who are still hesitating to distribute sensitive data over the mobile ad-hoc environment to enable achieving the IoT/BD vision. Also, using decentralized fog computing to work in conjunction with centralized architectures would facilitate more use of distributed computing. There are some general discussions on combining Docker and Android applications since they already run as containers on top of Linux. [152] describes how to run Docker on ARMv7 (the most widely used architecture in mobile devices) based devices. In addition, a recent study, investigated the effects of OS-level virtualization solutions on HPC performance [153]. Besides, aiming at accelerating and securing data exchange among nodes in this environment, specific data exchange channels that established by the nodes wishing to complete their data sets can be created ondemand privately. These private channels can be launched on an end-to-end for massive data transformation as an adapted application socket. 2.6 Summary Growing interest in applying MapReduce-based implementations in various paradigms and configurations have given rise to numerous adoptions of large-scale data processing environ- 55 FERAS MAHMOUD NAJI AWAYSHEH ments. These environments include but are not limited to Cloud Computing, Supercomputing, Decentralized Computing and Grid Computing. Thus, they must be considered based on their impact on performance, cost-effectiveness, scalability, resource utilization, overheads and, finally, heterogeneity in both the application and infrastructure. Herein, we have answered three fundamental questions related to the success of porting MapReduce implementations to the broad scope of deploying architectures. First, what are these paradigms and what are the challenges/potentials of their adoption? Second, given the dramatic differences among these environments, what are their essential characteristics and how can we compare and classify them? Finally, what are the current challenges and future directions of BD deployment architectures? Our contributions are, therefore, three-fold: Firstly, introducing a novel classification taxonomy that groups data processing frameworks based on their environments, with emphasis on the resource perspective. The challenges, central issues, potential effects of adopting these environments, alongside the solutions are then proposed. Secondly, this work has exhaustively analyzed and compared the targeted platforms with Apache Hadoop, which is the leading open source MapReduce implementation. A significant part of this effort is due to missing standards in comparison to large-scale data processing environments, and the wide variety of different technologies of BD domain. The needed tables, figures, terminologies, and factors upon which/how to analyze and compare these paradigms, also, presented with a high-level discussion. Finally, based on the study observations, the current BD computing challenges with several potential future research directions have been suggested. We hope that this article help on guiding further researches to intersect and integrate BD and data-intensive operations with non-traditional solutions. A key goal is to create a convergence of abstractions of different approaches to promote better optimization of resource selection in different environments with reliable, low-cost services. Further, providing guidance on choosing the best platform to optimize the performance of various data-intensive applications in various environments. 56 CHAPTER 3 BIG DATA SCALABILITY AND PERFORMANCE IMPROVEMENTS Aiming at enhancing the MapReduce-based application’s Quality of Service (QoS), many frameworks suggest a scale-out approach, statically adding new nodes to the cluster. Such frameworks are still expensive to acquire and does not consider the optimal usage of available resources dynamically. This chapter introduces a novel framework to address this issue by extending Hadoop YARN resource manager with dynamic provisioning and low-cost resources capacity uplift on-demand. We propose an Enhanced Mapreduce Environment (EME), and OPERA scheduler to support heterogeneous environments by extending Apache Hadoop to an opportunistically containerized environment, which enhances system throughput by adding underused resources to a local or cloud-based cluster. 3.1 Introduction In recent years, under the explosive increase of global data, there has been an increasing emphasis on Big Data, business analytics, and smart living and work environments. Despite the success of large-scale commodity clusters like Apache Hadoop, this continuous data stacks require computational power far beyond the capability of the cluster workstations [154] in the high season intervals (i.e. when massive amount of jobs are submitted to the cluster). Na¨ ıve solutions may propose to add new computing nodes and scaling-out the tasks to distributed FERAS MAHMOUD NAJI AWAYSHEH systems, like in hybrid cloud computing. Hence, two major concerns need to be addressed. First, it could be necessary additional investments on infrastructure (increasing the Total resources Cost of Ownership (TCO)), or paying to rent cloud instances. Second, the cost of data movement to and from the cloud over the Internet, which can be expensive and timeconsuming. As a comprehensive BD analytics platform, Hadoop has become the de-facto technology for storing and processing data-intensive applications (DIA) [52] and large-scale data analytics. These processes mainly use parallel data tasks operating, based in the MapReduce (MR) paradigm [5]. Thus, many frameworks aim at proposing scalable methods to support existent MR-based applications by enhancing the throughput using different techniques, while keeping in mind the QoS and the cost-benefit ratio. For instance, scaling Hadoop capacity horizontally and vertically (scale-up/out techniques), as in [155, 156] or adopting special hardware accelerators, as in [157] and [129]. Opportunistic Computing e.g., Enterprise Desktop Grids (EDG) could provide free compute cycles by harnessing idle CPUs in what is known as cycle scavenging technique [87], enabling the use of all available resources within the enterprise. Using this underused resources to extend the Hadoop cluster with low-cost, efficient and elastic desktop machines will improve throughput, making the most of the IT infrastructure. In exchange, such use would indeed increase the system complexity, so a powerful scheduler and resource manager would be required. Though, we argue that using cutting edge technologies like Linux containers can tackle that issue. In this chapter of the thesis, we present the EME prototype, short for Enhanced Mapreduce Environment and its novel dynamic and hybrid scheduler, ie., OPERA. EME extends Hadoop with an adaptive hybrid (dedicated and non-dedicated) heterogeneous task allocation and provisioning on-demand. Its architecture combines High Throughput Computing (HTC) and Docker containers with large-scale dedicated clusters, leveraging all available resources. This project aims for a new hybrid environment that can elastically tune the resources participation, optimizing the cluster throughput without the need to add new and costly machines or rent external cloud services. As a main component of the EME vision, OPERA takes advantage of leveraging the available and unutilized (ideal or lightly-used) capabilities within a physical confine of an enterprise. By scavenging these resources, OPERA keeps spawning Hadoop DataNodes, based on Docker containers as worker nodes. BD applications can then use these workers. OPERA is a 58 Chapter 3. Big Data Scalability and Performance Improvements standalone pluggable architecture that does not require making any modification of the prior Hadoop design. In OPERA, an opportunistic pool (HTCondor based) and a dedicated Yarn cluster can collaborate to improve throughput, with minimal cost of deployment. OPERA will launch disposable containers among the idle servers (creating an opportunistic containerbased cluster) and ensure efficient provisioning for the Hadoop dedicated cluster on-demand. OPERA, hence, provides a seamless bridge from the pool of resources available in HTCondor to the YARN tasks that want those resources. By deploying a pilot (disposable) Containerbased Cluster (CBC), i.e., a temporary lightweight layer on tops of HTCondor. 3.2 Background There have been some proposals going towards managing, processing and maintaining massive datasets in what is called data-intensive processing with MapReduce Applications (MRA). This section presents a brief background on MR programming model and the Volunteer Computing systems alongside with related work and our main motivation to start this project. 1. MapReduce model. Ever since its introduction, MR framework has grabbed much attention in its ability to cope with parallel computing applications using a parallel data approach to process large volumes of data (terabytes or petabytes in size), which are typically referred to as Big Data. Apache Hadoop, the MR open source implementation, was naturally designed to be easily scalable, but it was not designed to be auto-scale or elastic. Many studies have proposed a resizable compute capacity in both local clusters [158] and the cloud [62]. 2. Volunteer and Opportunistic Computing. Volunteer Computing (VC) is a form of network-based distributed computing, which allows public participants to donate their idle workstations and help to run computationally expensive projects [159]. Opportunistic Computing (OC) is a computer technique that make use not only of the resources available in the local machine or cluster, but can also opportunistically scale-out on other resources of the environment, including those on underused desktop computers, in a reliable and secure way [160]. Two major characters differ these paradigms. First, the resource ownership, i.e., VC take advantage of volunteer resources donated by participants while OC make use of untapped internal resources. Second, geographi- 59 FERAS MAHMOUD NAJI AWAYSHEH cal topology, where OC follows an intranet (LAN) topology, while VC mainly follows Internet protocols (WAN). Correspondingly, HTCondor [161] is an open-source cluster resource manager aimed at Distributed High Throughput Computing (HTC) on collections of owned resources (EDG). 3.2.1 Related work Many related studies in the literature classify the performance of MR data intensive computing into dedicated and non-dedicated resources. For instance, MRA++ [97] is a heterogeneousdedicated methodology example that proposed a solution by grouping the machines according to their computational capabilities, calculating the execution time, and distributing Map task according to these capabilities. This proposal holds some drawbacks. First, it is not applicable for opportunistic environments, and volatility of data is ignored. Second, it does not take into account data placement (locality). Further examples include homogeneous-non-dedicated methodology [91] and heterogeneous-non-dedicated methodology [92]. Apache Myriad [162] is a case for multi-tenant shared services clusters. Myriad is an open source framework for scaling the YARN cluster into Mesos, which allows to expand or shrink the capacity of the cluster managed by YARN in response to events, as per configured rules and policies. Though, it differs from our proposal in that it works only on dedicated resources, like on a typical Data Center. Correspondingly, some research using hybrid resource architecture has been carried out, where volunteer computing systems are supplemented by a set of dedicated nodes to reduce the cost. Such research includes MOON [163], which discussed the problem of how to allocate a small set of dedicated nodes to volunteer computing systems to offer reliable MR services on hybrid resource architectures, adopting the LATE algorithm [164]. However, MOON focused on a single job and worked on homogeneous environments only. Also, their solution needs a third part to manage the resource availability. By comparison, our study will follow hybrid resource architecture by adding some dedicated nodes to non-dedicated cluster in not only heterogeneous computing environment but heterogeneous operating systems as well. This will be achieved by using Docker based containers, which will allow us to build and distribute applications on heterogeneous nodes, thereby clearly differentiating our work from others. 60 Chapter 3. Big Data Scalability and Performance Improvements Figure 3.6: Framework sequence diagram 3.5 Experiment Results Docker provides a systematic way to automate the faster deployment of variety applications and libraries inside portable containers (isolated environment in operating systems kernel). Also, Container as a Service (CaaS) is considered as a particular case of IaaS without the hypervisor layer for better performance. Hence, EME proposes idle nodes as a viable way to deploy an opportunistic environment using disposable containers (deleted after executing the task) for provisioning the Hadoop cluster. On the other hand, HTCondor will provide a consistent environment that continuously schedules new containers when it is possible and quickly gives resources back to the user when required. In our proposed architecture, Docker will provide a runtime service that ensures three aspects. First, isolation between the MR-tasks and other resources operations with minimal configuration on the HTCondor pool. Second, secure containers deployment with lightweight virtualization that runs on near bare-metal performance. Finally, an extensible interface that copes with Hadoop Yarn, where no rewrite for the MR applications is required. For evaluating OPERA performance enhancement and overall throughput growth, we 67 FERAS MAHMOUD NAJI AWAYSHEH Figure 3.7: OPERA performance against native Apache Hadoop. Table 3.1: Hadoop cluster with two dedicated DataNodes and two opportunistic DataNodes Node Number Hadoop Daemon Hardware & Configuration 1 NameNode CPUs: 2 x Intel Xeon E5506 @ 2.13GHz, RAM: 12 GB RAM ECC DDR3 @ 800MHz, 4 DataNode HDD: 2 TB HDD Common criteria: Hadoop 3.1.1 over 4 x Gigabit Ethernet ports. compared the performance of MapReduce benchmarks on native Hadoop environments against the proposed one. In Figure 3.7, the X-axis represents the benchmark and stress testing of different tools. Y-axis represents the execution time (job completion time) over 40GB of data. The testbed was deployed over a physical cluster, as shown in Table 3.1 of Hadoop 3.1.1 platform. We can observe that OPERA achieved definite improvement with up to 74% for CPU bound jobs, as in the PiEst and up to 26% (with an average of 26%) regarding HDFS bound jobs, as in the Wordcount. The improvement varies within different benchmarks like Grep, Sort, Terasort, Randomwrite, and Teragen. We also observe that the performance gap widens positive linearly with the increase of the tested data set. To investigate this behavior, we benchmark the performance in terms of read and write I/O throughput on the OPERA environment normalized to the corresponding native Hadoop dedicated cluster. We use the Hadoop TestDFSIO benchmark, and the results are shown in Figure 3.8. The evaluation shows a performance improvement with an overall average of 22% (26% in the best scenario and 20% in the worse scenario). Moreover, for all benchmarks, as the size of input data increases, the performance gap widens in favor of OPERA. 68 Chapter 3. Big Data Scalability and Performance Improvements Figure 3.8: OPERA Result. 3.6 Discussion As Figure 3.1 illustrate, the framework can be divided into four main phases that can be classified as follows: 1. Job submission: The job/jobs are submitted to the Hadoop master by the users via a job submission manager. The job manager at the master will place these jobs into a global job pool (task queue), where tasks wait to be batched. 2. Task allocation: Yarn manages task allocation, status monitoring, and reallocation failure tasks at the dedicated environment. Each dedicated slave shall run a NodeManager and a DataNode daemon. Yarn will start an ApplicationMaster per job, which asks the master (ResourceManager) for resources. The ResourceManager will contact the NodeManagers, and will provide the required resources in the form of containers. The ApplicationMaster will run the jobs in the allocated containers till the cluster reaches a predefined threshold where resources are fully utilized, and no more tasks can be processes. 3. Cluster saturation: Under this circumstance, tasks start queuing at the job pool. The Yarn decision maker will use the global ResourceManager and will ask for an offer from the available (registered) resources at the opportunistic environment (i.e., in a pull approach). 69 FERAS MAHMOUD NAJI AWAYSHEH 4. Opportunistic resources Provisioning: At this point, the ResourceManager asks a special daemon (ContainerLauncher) to start containers (Docker) at the available opportunistic resources. These containers will run a NodeManager daemon. The new containers will refresh the ResourceManager offering these resources for the Application- Master, which only exist in the dedicated environment. Hence, the container launcher will create several Docker containers on the idle nodes for executing the independent task chunks in parallel. The ApplicationMaster will run these jobs in the allocated opportunistic containers, and the results will be sent back to the dedicated cluster via a result manager, which is in charge of result checking. Figure 3.6 shows a sequence diagram that explains the task execution phases in a sequence action timeline. OPERA is thus a second-level scheduler by separating concerns of resource allocation and task placement by employing a pilot-job abstraction. In definition, pilot-job is the concept of multi-level scheduling as manifested in the decoupling of workload assignment from resource management using the concept of intermediate container jobs. In this context, a pilot-job is the ability to utilize a client’s job as a container for a dynamically determined set of computing tasks. In particular, Figures 3.7 and 3.8 demonstrates its usability over data-intensive job execution with up to 74% performance enhancement compared to a native Hadoop cluster. 3.7 Summary Deploying a variety of computing frameworks and clusters on the same resources infrastructure was the main objective of many paradigms. Virtualization technology, computer utility, and cloud computing, to mention some. Those paradigms aimed at maximizing the efficient use of resources and minimize the associated deploying and operational costs. Sharing resources between deferent resource managers and service provisioning on-demand approaches was the subject of many other studies in the literature. So doing was motivated by improving the overall cluster utilization and avoiding statically partitioning resources and infrastructure silos among separate clusters and resource schedulers. Big Data analytics and data-intensive applications industry witness many enhancements regarding large-scale processing. Apache Hadoop, with its ecosystem, is the dominant platform and become a comprehensive OS-like platform. However, current implementations and resource managers are unable to employ lightly loaded resources within their controlled network, which is not yet fully exploited in the MapReduce state-of-the-art architectures. The 70 Chapter 3. Big Data Scalability and Performance Improvements research work described in this chapter fills a vital gap in understanding statically partitioning the infrastructures among different resource managers. Here we introduced the OPERA and EME, which aims at filling the increasing gap between computation and I/O capacity on high-end workstations. OPERA will help developers, resources providers, e-infrastructures, and scientific communities to overcome current challenges in the large-scale data analytics from both PaaS and IaaS levels. OPERA allows the coexistence of different resource managers and sharing computation among different resource managers. Also, it enables automatically adapting the cluster size to the resources demand. This hybrid architecture intends to (i) minimize the capital expenditure on large private infrastructures, (ii) removing the statically partitioning of computing resources (iii) improving DIA performance and (iv) to reduce operational costs. On the other hand, EME, the prototype blueprint, aims at improving data-intensive computing performance in both local and cloud-based clusters. EME offers a hybrid resource architecture (dedicated and non-dedicated) that supports heterogeneous capabilities by extending Hadoop’s cluster beyond its dedicated nodes, with elastic and low-cost resources ondemand. In particular, employing an opportunistically container-based cluster with auto-scale capabilities. EME will allow to automatically adapting the cluster size to the resources demand. This hybrid architecture aims to minimize the capital expenditure on large private infrastructures and to reduce operational costs. Additionally, it improves the MapReduce infrastructure throughput, performance, and QoS, helping to meet job deadlines. Even that our work is being developed with Hadoop Yarn as the supporting resource manager, but we believe that the ideas presented in this research can easily be adapted to other resource management frameworks, for instance, Apache Mesos and Docker Swarm. As it is usual in the literature, we will start prototyping EME in a virtualized cluster, and next, we test it in a bare-metal environment. The work presented in this chapter contributes to the state-of-art practice of Hadoop by guiding the decision on the enormous technological advancements of Hadoop federation use cases. We believe that both the findings and the approach presented in this chapter will appeal to BD practitioners and researchers from different disciplines. Besides, it will act as a catalyst in the initial study for all those researchers who are implementing BD solutions within any runtime environment. 71 CHAPTER 4 BIG DATA FEDERATION AUTHENTICATION AND AUTHORIZATION Privacy and security in a federation scale remain a significant concern among practitioners. Current Hadoop’s primitive access control has security concerns and limitations, such as the complexity of deployment and the consummation of resources. This significant challenge can be tackled using Access Control techniques. This chapter intends to propose a trustworthy model for authenticating users and services over a Big Data Federation deployment architecture. The main goal of this model is to provide a Single-Sign-on (SSO) approach for the latest Hadoop 3.x platform. To achieve this, a conceptual model is proposed combining Hadoop access control primitives and the Apache Knox framework. The paper provides various insights regarding the latest ongoing developments and open challenges in this domain. 4.1 Introduction Apache Hadoop, the prominent Big Data (BD) paradigm, has become a large-scale data analytic operating system. The large community behind Hadoop have been working to improve its ecosystem to meet the security increasing demands and requirements. The new features shift proves the Hadoop 3.x maturity and applicability to serve different markets. Enterprises across all major industries have adopted Hadoop for its capability to store and process an abundance of new types of data and leverage modern data architecture. With a broad spec- FERAS MAHMOUD NAJI AWAYSHEH trum of both structured and unstructured workloads, Hadoop abstracts the computing resource management, task scheduling, and data management, while maintaining a satisfying level of security and isolation. The Hadoop Distributed File System (HDFS) is typically deployed as part of a largescale Hadoop platform, to supports low-cost commodity hardware and accommodate different processing frameworks. It is utilized to handle data management and access to the Apache Hadoop ecosystem, using a master/slave architecture. The latest advancement in BD platforms leads to support of a clear separation of data management and its physical storage. Using multi namespaces in the form of federation architecture, Hadoop improves its scalability and isolation. In this section, we propose a mechanism to integrate Hadoop 3.x authentication schemes into Apache Knox [166] in a high-level abstraction. This presents a first work to define and formalize a service gateway for a BD federation (BDF) deployment architecture. The key question we will be asking for addressing the access control challenge is “How to design SSO abstract that handles Data/Service access in a Hadoop federation?” We address this question by defining a SSO reference architecture (SSORA) for the secure development of BDF. The work presented in this section may employ in a Hadoop federation environment across multitenant BDaaS and IaaS clouds, as well as on-premises datacenters. 4.2 HDFS federation HDFS [167] is composed of two primary daemons, (i) a single NameNode (NN) that is deployed at the cluster master node, and (ii) several DataNodes (DNs) running at the cluster slaves (usually one per-node). The NN runs the namespace process, which manages the file system information and regulates access to files using a traditional hierarchical organization. To enable universal block storage layer, Hadoop performed separation of namespace and blocked storage [168]. A federation BD environment, through multi-independent namespaces for block management and a shared block pool for data storage, improves scalability and isolation of Hadoop operations. So, by losing the tightly-coupled block storage and namespace, each DN registers with all the NNs in the cluster (raises authentication requirement). This allows to scale the NN horizontally and enable the aggregation of geo-distributed Hadoop clusters. This feature directly enhances throughput by adding more access enforcers (typically NNs in HDFS architecture), which improve read/write operations. 74 Chapter 4. Big Data Federation Authentication and Authorization 4.3 SSORA access pattern There is a necessity to create a common language tailored to build an efficient, elastic and autonomous access control reference model for BDF. This reference model will not only define patterns that can result in the dynamic optimization of accelerating access enforcement, but it will keep access discussions to a minimum as well. Here, we present a HDFS federation SSO Reference Architecture (SSORA), a sequential pattern-based access control for a federated SSO model. This will aid in clarifying the required tools/mechanisms to implement a SSO architecture for Hadoop 3.x clusters. SSORA affords a binding among the external clients and the Hadoop services in a federated Hadoop platform. It enables the internal entities (e.g., NN and DN daemons) to verify these bindings through the use of a central policy authorization and several distributed policy agents. We will now discuss the formal definitions of SSORA model as shown in Figure 5.6 and specified in Table 1. SSORA Pluggable Module enables fast integration with architecture (i.e., allows to plug functionality without modification), it does not require making any modification of the 75 FERAS MAHMOUD NAJI AWAYSHEH Figure 4.1: SSO Reference Architecture (SSORA) and federation access pattern. prior cluster design. Before addressing the SSORA and federation access pattern, there are few definitions to guide and facilitate the discussion: • Apache Knox service is utilized as a unified access point of the federation service. • Hadoop daemons and services (internal communication) are authenticated using Hadoop core capabilities, i.e., Kerberos principals and their access granularity is managed using POSIX ACLs. • Knox authenticates clients (admins may set an LDAP group), and Apache Ranger [169] applies their access granularity. In a federation environment, it is often the case that a client of a particular HDFS cluster (e.g., NN1) wishes to utilize services offered by another administrative domain (e.g., NN2). In such cases, the user needs to be authorized by the central policy authority (CPA) to reach the remote domain. The necessary steps required for a given BDF to access the provided SSO federation are described subsequently (see Figure 5.6): 1. The Client asks to access the Hadoop cluster, interface with the cluster gateway (Knox) using his identity. If the external client wish to upload new data to the Hadoop data 76 Chapter 4. Big Data Federation Authentication and Authorization by abstracting the ticket exchange of different frameworks. This capability is resulting in a universal authentication platform that scales the access control process in a multi-tier architecture. Both Ranger and Knox daemons may represent the IAM. The gateway contacts CPA to validate the client session tasks and to set up his level access. A different access level may be attached to different users. In the previous example, client A has access at the low-level data access tier only while client 2 yield high-level data access. This BDI imposes fine-grained data access among the clients. In the earlier example in section 2.1, a client could have access to the archival data that allocated in NS1 (tier-3). Meanwhile, the current data manage its metadata at NS3 in tier-4, which required highlevel data access session. Without the access certificates, each entity would need to authenticate and authorize with other entities on its own. On the contrary, by employing the FACRM components, it only needs to combine a central authority that issues an access certificate (based on admin policies) that applies to every entity within variant access tiers. 4.5 Authorization Level Classification HDFS has supported a permission model that control distinct user classes with a restricted list of control roles in the ecosystem services. This way, security is sufficient with different levels of authorization access for each user-class that allow/deny the service-call based on the predefined levels of access. HDFS, therefore, enforces permissions during user connection to DNs (e.g., access file system) by the user class and then assign roles to secure files and directories. Additionally, HDFS operations rely on checking the user permission of all components of a path, which requires traversal access. Each user service-call that reaches HDFS has a two-part identity the user name and groups list. To allow a service-call, it demands that the owner has the required permissions, which granted by file/job ownership, group membership or other authorities (e.g., ACL). For instance, a file owner (creator by default) service-call will grant an inclusive authorization level of access (read, write, execute) if his UserID matches the owner permissions. Else if the user is not the owner but a member of the groups’ list, HDFS checks the authorities of that group as a non-owner class with a limited level of access (could be read-only). If a permissions check fails, the client operation fails as well. As missioned earlier, authorization control applies at the whole path components. Hadoop checks permissions hierarchically in HDFS files-level. Further, the path components can 83 FERAS MAHMOUD NAJI AWAYSHEH describe as (i) Parent: the parent directory of the requested path. (ii) Ancestor: the last existing element of the inquired path. (iii) Final: the final component of the requested path [171]. Meanwhile, directories paths are defined as sub-tree (directory and child sub-directories) path recursively. Changing the data owner requires administration authorization level access. This process can also set to a superuser upon a policy. However, a user may change the group and, still, be the owner of the data, if he is a member of the specified group. Next, we Define the different user-classes and their roles in a Hadoop cluster: •User: Regular system client with limited access level, only submit jobs and query results of his data access over a predefined availability zone (NN). The user may belong to one or more groups. •Superuser/owner: The user who creates the file (upload data) in the cluster and user with an authorization level of access to these files. The superuser may act on behalf of another user by impersonating (based on Kerberos credentials) their ID [172]. In general, many scenarios can be applied in this category. First, Hadoop cluster with a simple authentication policy (without secure mode), in this case, any user logs as a superuser (no IAM required) with a complete access level of authorization. Second, the user registers with the Kerberos authentication protocol in a secure mode. Data owners (the user who submitted the job) hold superuser privileges over their tasks within the cluster (e.g., he may cancel the job). However, the system admins may implement ACL at the authorization level to mitigate the security risks using the POSIX ACL model over both the files and directory using a single API gateway-access for all ecosystem components [171]. Even though, superuser does not control the underlying infrastructure but has limited control (based on the SLA policy) of select networking components (e.g., virtual networks) and configurations. •Administrator: The one who sets the policy for other users of the system. With administrative privileges, the admin has absolute power over the use of the services and components. The Hadoop administrator daily tasks include correctly setting the configuration files, implementing secure ACL and SLA policies, and managing the underlying resources. These underlying capabilities include hardware, network, and runtime environment with arbitrary software that includes operating systems (OS), virtual machines (VM) and containers. Delegations allow the administrator to give another user the ability to perform actions on their behalf. 84 Chapter 4. Big Data Federation Authentication and Authorization Table 4.1: Examples of authorization level classification. Role Example READ HDFS fs -ls <args> HDFS fs -cat/-get <file> HDFS dfs -count [-q] <paths> WRITE HDFS fs -put <dir> dfs -copyFromLocal <localsrc> intra-node disk balancing EDIT hadoop namenode -format Chmod/Chmown <file>, setPermission <path> delete <Path>, removeDefaultAcl. CONFIG Start/stop-dfs.sh hdfs dfs -setReplication [-R] [-w] setAcl, <numReplicas> <path> INTERNAL Heart beat, ApplicationMaster to NodeManager, NM to container. Data pipelining with Hive, HBase, etc. UNDERLY administrative commands edit etc/hosts, directory foo machines on/off, etc. •Daemon: The processes that started under Hadoop and run in the background to be functional. The main Hadoop Yarn and HDFS daemons are ResourceManager (RM), NodeManager (NM), NameNode (NN), and DataNode (DN). Besides, there can be secondary NameNode, standby NameNode, Job HistoryServer, etc. Each Hadoop command (operation) can belong to one role of the authorization levels listed in Table 4.1. For instance, when a user runs hadoop job -list it authorizes the connection requests at the READ authorization level. Meanwhile, an attempt with an unauthorized access level, e.g., hadoop job -kill jobid that does not belong to job owner (nor he is an admin) will be denied. A complete list of HDFS methods that may categorized based on our classification can be found in [173]. Besides, the relation between different levels of access and user-class in Apache BD cluster is illustrated in Table 4.2. It worth to 85 FERAS MAHMOUD NAJI AWAYSHEH mention that those roles are not alternatives for the general Hadoop file permission values (read, write, execute). On the contrary, those roles represent a categorization of the HDFS operations by aggregating them based on their role. This categorization aims at setting each operation/command to proper access level state. In an operational HDFS environment, any command may categorize to: •READ; permission is required to read or list the contents of DN, querying information, and check job status and results. •WRITE: permission is required to add data or append it to DN, submitting jobs to NN, and updating information in HDFS. •EDIT: permission is required to access data blocks, delete data, cancel a job, formate the NN, and perform data balance. •CONFIGURATION (CONFIG): permission is required to access runtime variables, paths, add/remove Hadoop features, change the scheduler (e.g., Fair), etc. •INTERNAL COMMUNICATION (INTERNAL): permission is required to access daemon to daemon communication, as for task updates and cluster resource status, etc. •UNDERLYING Capabilities: permission is required to access infrastructure variables, add nodes, OS, VM, Network, Hardware. We characterize the conceptual classes of Hadoop Yarn cluster users and the HDFS operation roles in a federation architecture. From these specifications, we try to characterize each service-call with constraints into five main classes to refer as authorization level classification. This categorization deliberates, indeed, as the foundation for future secure API design and standardization work. It also worth to mention that Hadoop 3.x advanced with intraqueue preemption that priorities applications and users limits on a queue (within the capacity scheduler [174]). 4.6 Related work Security of BD deployment architectures and Hadoop service trust have always labeled as a research concern. Several research papers discuss the Hadoop ecosystem privacy and access management [175, 176, 177, 178]. Although the access control requirements and privacy 86 Chapter 4. Big Data Federation Authentication and Authorization Table 4.2: The relation between levels of access and user-class Read Write Edit Configuration Internal Underlying User √ √ Superuser/Owner √ √ √ Administrator √ √ √ √ √ Daemon √ √ √ analysis of Hadoop frameworks have addressed in the literature [179, 180]. In [175] and [176] the authors formalize the access control features of Hadoop core capabilities, as well as other associated frameworks. They extend their work with HeAC [177], a multi-layer access control model that represents a role-based abstraction of both Apache Ranger and Sentry access control. A framework for data-intensive application fine-grained policy enforcement proposed in [181]. Standardizing the security development schema of secure systems was first reported in [182]. This unifies practices and languages for modeling security and access control among different implementers. A reference model for developing cloud applications was reported [183], besides, a survey that supports federated access control [184]. Barker, S. propose a meta-model and best-practices of access control modeling [185]. Both Barkers’ work and this research aim at unifying access control models by drafting a reference model. However, herein we address the modern Hadoop 3.x status given the broad diversity of existent access control uniformity associated with a federation environment. Also, this work is distinguished by addressing the HDFS federation access control challenges and maps cutting-edge frameworks to that problem domain. 4.7 Summary and Open challenges In this section, we present a BD Federation-oriented reference model for the secure development of access control solutions within Hadoop clusters. The proposed model is a generic high-level conceptual metamodel (called FACRM ), which aims at formalizing Hadoop 3.x core access controls capabilities and highlighting some of Hadoop’s top-level security projects. It, also, aims to successfully implementing a unified and secure BD solution over on-premises and cloud-based deployment architectures in favor of BD applications and frameworks. The 87 FERAS MAHMOUD NAJI AWAYSHEH FACRM supports myriad access control options across a variety of policies, users, and frameworks in pursuit of modern BD infrastructure. This study also represents an in-depth analysis of Hadoop IAM ecosystem and draft current access control limitations within a federation deployment architecture. We validate the use of our proposed RM using two use cases; SSO federation architecture and multi-tier access control architecture for the security of BD deployment. Finally, it categorizes the authorization levels that afford comprehensive coverage of Apache BD IAM and related manipulation languages. Leverage recent proposed independent management mechanisms of policies enforcement [186] to combine cloud and edge federations with role-based access control could label as future research. It is, also, expected to adopt the FACRM use cases to be implemented within our BD opportunistic and elastic resource allocation (BigOPERA) platform. BigOPERA architecture (its prototype proposed at [3]) combines the computing power of available (non-dedicated) high-throughput resources to Hadoop 3 dedicated cluster using Docker containers as worker nodes. Those non-dedicated containers tend to be more vulnerable, which require robust IAM approach to maintain security threats to a minimum. This work also, intends to propose a trustworthy and Federation-oriented model for authenticating users and services over a Hadoop 3.x. platform. The main goal of this model is to provide a SSO gateway based on Hadoop access control primitives and Apache Knox. A SSO architecture can be managed using Kerberos with Lightweight Directory Access Protocol (LDAP), which is enabled by setting Hadoop.security.group.mapping.ldap.url to true. Alternatively, implementing a single gateway that handles client access management behind a firewall can be achieved by employing Apache Knox. Knox will allow/deny users to access the ecosystem services before interacting with the Hadoop cluster. Following to user verification using Knox gateway, Knox will use its Kerberos principals to confirm, securely, with other Hadoop services and daemons. It is expected to adopt the SSORA within our BD opportunistic and elastic resource allocation (BigOPERA) platform. BigOPERA architecture (its prototype proposed at [3]) combines the computing power of available (non-dedicated) high-throughput resources to Hadoop 3.x dedicated cluster using Docker containers as worker nodes. Examples of different open challenges and research directions include: Scalable Authorization Despite the availability of several adapted security mechanisms and techniques that have been developed for BD security, more research activities are still needed to establish scalable security models and paradigms that must be driven by BD specifi- 88 Chapter 4. Big Data Federation Authentication and Authorization cations and requirements. Also, new security abstractions for BDF are still needed to simplify the task of identifying the unimproved gaps. Also, leverage recent mechanisms of policies enforcement [186] to combine BDF with ABAC [177] could label as future research. Fine-grained Authentication Management The need to develop active and dynamic models (policies and standards) for BDF is inevitable. The challenge here is to extend the previous approaches with new policy editing and presentation tools for flexible and extensible data access, i.e., policies that extend ABAC with stateful access sessions and mutable attributes (i.e., characteristics that change dynamically during the session). This extension is mainly invaluable to advance the authorization mechanisms of the multi-tenant data lake architecture as well as the latest BDF model. Tackling this issue can be achieved by deploying policy templates that extend the primary ACL (or any access decision enforcer) as a specialization of the XACML V3.0 standard. Data-centric security This requires restricting the BDF access to only those authorized by succinct gateway. However, the current state-of-the-art BD-based encryption technologies are around transparent data encryption. This takes place at the file-level (for data at rest) and does not protect data-in-transit or data-in-process (not even the metadata). Attribute-based Encryption (ABE) in conjunction with usage control approach and ABAC can be labeled as a future direction for this issue. It could provide a complete end to end encryption, i.e., including data traffic between the store and application. Providing new solutions in all those research directions will promote innovative BDF solutions with advanced security features. 89 CHAPTER 5 A UNIFIED BIG DATA FEDERATION ACCESS CONTROL AND AUDITING [5] 5.1 Introduction Apache Hadoop [6], the BD landmark, has become a large-scale data analytics operating system. The large community behind Hadoop has been working to improve its stack to meet the increasing demands and requirements of BD. Enterprises across all major industries have adopted Hadoop due to its capability to store and process an abundance of new types of data and leverage modern data architecture. With a broad spectrum of both structured and unstructured workloads, Hadoop abstracts the computing resource management, task scheduling, and data management, while maintaining a satisfactory level of security and isolation. The Hadoop distributed file system (HDFS) [187] is typically deployed as part of a largescale Hadoop platform to support commodity hardware and accommodate different processing frameworks. It is utilized to handle data management and access to the Hadoop ecosystem using a master/slave architecture. It is also successfully employed by several distributed systems and can be used by different resource schedulers as a data storage system, e.g., HT- Condor [188] and Spark [189]. IAM in the HDFS ecosystem can be defined as the set of tools and mechanisms that enables end users and applications to interact securely with system core functionalities, thus ensuring appropriate access to data across the cluster. This security FERAS MAHMOUD NAJI AWAYSHEH discipline can be separated into three abstraction layers: identification and access control, authentication, and authorization. As more services and users have joined the Hadoop federation portfolio in pursuit of a scalable BD hub, access control has become increasingly critical. One of the main obstacles in the development of an adaptive access control solution for BD platforms is the lack of a standard model to which access control rules and the associated enforcement monitor can be bound. A recent study [179] indicates that BD, as an emerging research trend, lacks standardized models for unifying user/application access to resources, services, and data. Moreover, Hadoop’s primitive configuration lacks any classification mechanism that improves metadata governance or facilitates auditing procedures. Therefore, formalizing the IAM features of Hadoop 3.x, in addition to emphasizing the complexity of securely utilizing their core functionality, is becoming a research interest. This trend serves as a form of knowledge capture by mapping current technologies of concern and formulating the latest Hadoop capabilities related to access control frameworks and audit log management. This paper highlights the need for robust access control that handles the authentication and authorization operations within a federation scale. The paper defines the associated requirements of secure BD runtime and management of the Hadoop HDFS federation. It therefore proposes a reference model (RM) that provides a basis for building an interoperable data federation scheme that includes all of the major stages and reflects specifics in access control within Hadoop clusters using modern open-source technologies. Furthermore, this paper explains how the proposed models can be implemented using modern BD infrastructure (BDI) to meet the increasing demand for scalable access controls and digital forensics (using access log analysis). The key question we will be asking to address the IAM challenge is as follows: “How can we create a dynamic reference model that is compatible with the foreseen BDI scenarios in a federated setting?” We address this question by employing the proposed RM in a novel access broker that provides a single sign-on environment. The proposed BD Federation (BDF) broker is an access control logic component to securely connect the external users with the Hadoop cluster gateway. The work presented in this paper may be employed in a Hadoop federation environment across multi-tenant BD clouds, as well as within on-premise data centres. An essential application of the proposed solution deals with security auditing and analysis of audit logs of BD operations. These log files contain detailed information about all access call activities regarding BD processes and infrastructure to be protected by centralizing the 92 Chapter 5. A Unified Big Data Federation Access Control and Auditing privacy and access management [175, 176, 177, 178, 199, 200, 201, 202, 203, 204]. The access control requirements and privacy analysis of Hadoop frameworks have been addressed in the literature [179, 180]. Recently, Gupta et al. [175] and [176] formalized the access control features of Hadoop core capabilities, as well as other security associated frameworks including Apache Ranger and Sentry. They extend their work with the HeABAC [177] model, a multi-layer attribute-based access control model [205, 206] that provides fine-grained authorization policies for Hadoop. Ulusoy et al. proposed an approach for fine-grained access control authorization for MapReduce systems in [181, 207]. Big data privacy issues are also well addressed, and novel solutions have been proposed in [180, 208, 209, 210], in addition to an SSO framework for Hadoop services in [1]. Colombo et al. conducted a comprehensive study of big data technologies, including access control requirements, state-of-the-art and future trends, in [211, 179, 178]. One of the earliest works by Kulkarni [212] targets widecolumn NoSQL databases which support content and context-based access control policies at different levels of the data model, such as row or column. Another work on Cassandra datastore [213] presents a cryptographic enforcement of RBAC policies. Predicate [214] and second level encryption [215] have been used for defining an efficient RBAC enforcement scheme operating within the Cassandra distributed architecture. Research has also been presented in the field of Data Stream Management Systems (DSMSs) [216, 217, 218], wherein a framework, called FENCE, has been proposed in [216], which supports continuous access control enforcement. Complex event processing (CEP) systems represent the evolution of DSMSs [219, 167], and have been used in contemporary applications including IoT and Smart Cyber-physical systems [220]. Researchers from the National Institute of Standards and Technology (NIST) [221] have presented a general access control model for BD processing frameworks which introduces the novel notion of chain of trust among entities to authorize access requests. Access control of data and resources from multiple sources within centralized computing systems has been a subject of intensive studies in the literature. Context-awareness using fuzzy logic conditions as access control approach has been proposed in [222] to address the dynamic outsourcing environment on the edge of the network. Aiming to protect the redundant data stored over the cloud, an approach by Zhou, Yukun et al. [223] supported flexible access control with revocation. Adopting a proxy re-encryption policy to update the process to the outsourced cloud was reported for BD deployments [224] to support ciphertext re-encryption. Controlling access to sensitive BD, e.g., healthcare records, using the quantum 99 FERAS MAHMOUD NAJI AWAYSHEH mechanical equivalent of digital signature was introduced [225], along with an unaddressed challenge of the data transfer process. Other than the implementations mentioned above, the BDs of time series (e.g., time-series databases) are required to be associated with an encrypted timestamp, and Noury, Amir, and Morteza Amini in [226] proposed an access and inference control model to enforce time and value-based constraints over the hierarchical time series data. Standardizing the security development schema of secure systems was first reported in [182]. This standardization unifies practices and languages for modelling security and access control among different implementers. A reference model for developing cloud applications was reported [183], along with a survey that supports federated access control [184]. Barker, S. proposed meta-model and best-practices of access control modelling [185]. Both the work of Barker and this research aim at unifying access control models by drafting a reference model. However, herein, we address the modern Hadoop 3.x status given the broad diversity of existent access control uniformity associated with a federation environment. Additionally, this paper distinguishes itself by addressing the HDFS federation access control challenges and maps cutting-edge frameworks to that problem domain. 5.3 Access control in HDFS A client needs to perform tasks through the NN as a central policy enforcer for the HDFS. The NN receives the client call and allows it to reach data files which are stored in local disks via the DN pool. HDFS applications need a write-once-read-many access model for files. Once a file is created and written, it cannot be modified without an authorization access level policy. A secure IAM model must ensure that entities (clients, processes, and daemons) are who they claim to be (authentication) and that they have permissions to perform the requested operation (authorization). 5.3.1 HDFS replica selection It is important to direct the reader’s attention to “how it works” before presenting the access challenges within the federation settings. The HDFS cluster responds to client calls via the closest block replica to the reader node, aiming to keep data movement and read latency to a minimum. Thus, the preferred replica is the one stored locally (if available) to the reader node or the replicas of the same rack to 100 Chapter 5. A Unified Big Data Federation Access Control and Auditing Table 5.1: HDFS data access priority scheme. Cluster Rack Node Path Priority Number Number Number Cluster 1 Rack 1 Node 1 Local First Node 2 Node 2>Rack 1 Second Rack 2 Node 3 Node 3>Rack 2>Cluster 1 Third reduce bandwidth consumption (see Table 5.1). If the HDFS spans multiple rack clusters, then a replica placed in the local rack is preferred over any remote replica [227]. The NN manages this fault tolerance operation by implementing a rack-aware policy (e.g., the first replica is placed on the local node, the second is located in a different rack, and the third one is stored on another node within the local rack). By analysing the DN length to the parent, the NN selects the replica placement path. Consider the example in Table 5.1 that assists in the further discussion concerning HDFS access control and HDFS Federation (section 5). A Hadoop application will use blocks locally within its current node. However, if the block has to be copied from a remote DN, it will calculate and pass the block to the clients in the order of proximity. Figure 5.3 demonstrates the HDFS authorization model pattern with an HDFS service call scenario. At first, Apache Yarn client make an HDFS call through the NN cluster as the service level access control. The NN checks the ACL, which had been set by the administrator, and the service call is either granted authorization to proceed with the operation or to deny it. Finally, the NN writes audit log information to a local file. System administrators must set this security mechanism for each Hadoop component and execution engine (Spark, Hive, HBase, etc.). Every ACL has one NN (and only one), while the NN could or could not have an ACL. In the last case, any service call made by the user that reaches the NN will gain access to DNs (the user still needs the ID and password for the external log). 5.3.2 Apache Hadoop federation access management A cluster with high-level data analysis, i.e., sequel operations, and different execution engines will contact its security module (local policy authority or access enforcer) to validate access control rules. Figure 5.4 illustrates a Hadoop Yarn cluster with several data access 101 FERAS MAHMOUD NAJI AWAYSHEH Figure 5.3: Authorization access pattern in a native Hadoop Yarn cluster. Figure 5.4: Access pattern in a multi execution-engine Hadoop cluster with no central policy service. requests managed by different BD execution frameworks. The cluster administrators need to separately create the ACLs by specifying authorization access based on the local policy authority (e.g., HDFS ACL, Hive ACL, etc.) for each framework [195]. The NN will perform a permission check before issuing any operation; those ACLs are located and defined in the $HADOOP CONF DIR/hadoop-policy.xml file. In this case, the request will reach the local authorization module that allows/denies the operation and writes its own logs to a local file. These individual access enforcers (see Figure 5.4), coupled to file permissions and different Hadoop framework orchestration, make it challenging and time-consuming to set a secure BD environment, not to mention the new BD federation features and multi-tenant BDaaS cloud deployment architecture. A solution relies on a cross-service authorization framework that provides a centralized policy authority to store and manage security policies for multiple ecosystem components. 5.3.3 Limitations of BD Federation access control The broad participation nature of both clients and execution frameworks that are associated with the Hadoop federation warns against security concerns. In addition to the complexity of settings, dynamically and elastically scaling client authorization and policy provisioning are challenging tasks. A central policy enforcer to manage the access discussions seems mandatory. This section outlines the inherited limitations of implementing HDFS access control in a federation setting. 102 Chapter 5. A Unified Big Data Federation Access Control and Auditing Restricting access to the data stored in HDFS requires ensuring an accurate level of access by both clients and applications to the ecosystem components. In this way, by enabling Hadoop secure mode, every client, service, daemon, and process (which we refer to as entities) running within Hadoop must authenticate its membership of the cluster. The Hadoop underlying authentication service is based on Kerberos encapsulation, a leading local area network certificate-based protocol. Kerberos is a three-way protocol that requires every task to be authenticated before accessing the data. Therefore, only verified HDFS DN could register with the NN, and every task must be authenticated via the three-way handshake process before resource acquisition. This approach can cause performance degeneration in distributed clusters (e.g., think of a MapReduce application with thousands of tasks). One solution to this problem is to complement Kerberos with Delegation Tokens (DT), a lightweight authentication process. With DT, a client or application is first authenticated with Kerberos, and DT is then applied for subsequent and iterative service calls. Thus, the cluster services and daemons are only authenticated with Kerberos, while the client’s subsequent service calls and job tasks will use the DT credentials to interact with the HDFS. The use of Kerberos and DT in secure HDFS federation authentication is described in Figure 5.5: 1. Clients (and every entity) are initially confirmed to contact the NN using Kerberos authentication, and each client receives a DT certificate from the NN server to access the HDFS DNs using block tokens (access tickets) for every block with which they must communicate. 2. The client uses the access ticket for subsequent service calls, instead of using Kerberos. Furthermore, the distributed tasks use that DT certificate on behalf of clients to securely reach the NN at runtime. 3. The client and the distributed tasks can access the HDFS DN using the granted access tickets, which declare that the caller has the stated access rights to the data blocks within the job submission. A single-sign on (SSO) architecture can be managed using Kerberos with the lightweight directory access protocol (LDAP), which is enabled by setting Hadoop.security.group.mapping.ldap.url to true. Alternatively, implementing a single gateway that handles client access management behind a firewall can be achieved by employing Apache Knox. Knox will allow/deny users to access the ecosystem services before interacting with the Hadoop cluster. Following user 103 FERAS MAHMOUD NAJI AWAYSHEH Figure 5.5: A simplified diagram of the HDFS federation authentication mechanisms. verification using the Knox gateway, Knox will use its Kerberos principals to securely confirm access with other Hadoop services and daemons. 5.3.4 Problem definition The previous example demonstrates a single client contacting the NN, while several authentication mechanisms must be sequentially acquired for each Hadoop entity (daemon, client, and task). The DT ticketing process considerably decreases the amount of authentication requests; however, we argue that a federation Hadoop cluster can process the login requests of thousands of entities within a short period. A federation operation may require authorization checks for different components of the path: not only the final entity (as for a multi-tier federation architecture) This serialization of authentication before issuing the task will degenerate the system throughput in a large-scale data cluster and promptly become a bottleneck. This bottleneck may involuntarily cause a distributed denial of service attack within a federation environment. In addition, information logs are stored and managed locally (by NNs) without any classification mechanism that improves metadata governance or facilitation of auditing procedures. Relying on Hadoop IAM as demonstrated in figures 5.4 and 5.5 could present the following underlying limitations: 1. Access control complexity: Hadoop core IAM requires a client to go through multipermission stages for each service that it is willing to contact. This results in additional 104 Chapter 5. A Unified Big Data Federation Access Control and Auditing time and bandwidth consumption in a federation setting. Additionally, the fact that Kerberos/DT tickets are time-limited means that we need to re-authenticate the entities based on the given maximum lifetime. A client must request a new DT and pass it to the running process. 2. Long-running services: Due to token expiration time, supporting long-running jobs beyond the token maximum lifetime is a difficult task (e.g., aggregating logs) [228]. This involves a continual reauthentication process that requires cancelling all running tasks in order to start a new session. The new features of Hadoop 3.x need to include an adaptive mechanism for each expired token to continue to support the long-lived YARN applications service [229]. 3. Communication orchestration: There could be thousands of node-to-node communications for a job, resulting in the same magnitude traffic without a centralized (third-part) orchestration service that enforces authorization policies in a fine-grain model to guarantee data security across the Hadoop cluster. 4. Data integrity: The communication channels between services still need to be secure; there is no end-to-end data encryption. This issue indicates that tokens need to be encrypted over the network (SSL/TLS may be utilized). Sniffing (sniffing attack) tokens are sufficient to incorporate an authorized entity, thus prompting a vulnerability to threaten the HDFS data. 5. Node orchestration: Time needs to be roughly uniform across cluster nodes; else, the time-limited tokens will not work. Additionally, any compromised entity may manipulate the local time to infinitely extend the ticket lifetime. 6. Audit log management: It is difficult to analyse or test against the security configurations of each entity within a federation cluster. Different NNs separate log categories from regular processing logs and store them in separate locations with varying policies of persistence. 7. Security auditing: It fails to cope with modern auditing demands of large-scale distributed clusters, as in a federation. Any secure IAM model should not only secure the access control but should be able to perform security auditing at the service level: for instance, incident reporting, behavioural analytics, and regular risk assessment of the cluster entities. 105 FERAS MAHMOUD NAJI AWAYSHEH 8. Access control scalability: Adding new security features, cluster entities or clients, as well as updating policies, could require a complicated (and time-consuming) process that must be configured carefully. This model might be acceptable for a relatively small setup, but not for a federation infrastructure. 5.4 Federation access control reference model A service-oriented metamodel for access control support in BD federation platforms is presented in Figure 5.6. The Federated Access Control Reference Model (FACRM) is a set of architecture components that are associated with the security development of BD environments. FACRM also addresses many technical aspects that optimize context-specific design, which need to be clarified at different granularity levels. The FACRM is characterized by (i) ease of distributing secure access at scale, (ii) accelerated policy spawning and provisioning, (iii) providing ease-of-use horizontal scalability, and (v) flexibility for adapting to the service provider requirements and demands. Some highlighted elements will be discussed in Section 5.7. Next, we describe the FACRM components as listed below: IdentificationAccessManagement(IAM) Maintains the access control status of system entities within three layers of defense: ID gateway (allowed to reach the cluster), authentication (identify verification; allowed to contact the underlying services), and authorization (which access rights and permissions are held). a- GatewayManager: a registration authority for external login and all REST APIs. It represents the first IAM stage for verifying client service calls. It could employ either simple user name/password or a third-party framework, namely Apache Knox. By leveraging Knox as the cluster access point and URL gateway, it enforces access discussions behind the infrastructure firewall. Hence, failed requests neither reach the Hadoop daemon nor operate on its entities (e.g., NN and DN). In this scenario, Knox is composed of three main components to validate the access of several connections: i- UserID: client identification obtained via profile (name/password) and Hadoop can set the group mapping service [230]. However, resolving URL access via groups is managed via LDAP with simple password authentication using JNDI API. 106 Chapter 5. A Unified Big Data Federation Access Control and Auditing Figure 5.6: Federated Access Control Reference Model (FACRM) for Apache BD stack. 107 FERAS MAHMOUD NAJI AWAYSHEH ii- SupportComponentUI: Knox provides WebSSO capabilities to the Hadoop cluster. It is therefore essential to support different system component UIs and to link them to the end user. Examples include Apache Ambari UI for cluster development and orchestration and the Ranger admin console for setting/modifying policies. iii- TokensExchange: maintains a secure interaction among different frameworks and clients by providing a universal authentication platform that abstracts token exchange within federated Hadoop clients. b- Authentication: the second stage of access control, which uses the client identification to authenticate the job service calls (after validating the client access to the cluster in the previous stage). The process takes place by specifying the core-site.xml in the Hadoop configuration files through enabling the hadoop.security.authentication feature. This configuration can be either simple or Kerberos authentication. In a multi NNs environment, like a federation environment, Kerberos manages the DNs authentications by defining the entities which are allowed to communicate with the HDFS manager. c- Authorization: the final stage of access control that sets each client permissions within the cluster entities. By default, this service is disabled; admins, however, can enable it using the Hadoop core capability in hadoop.security.authorization within the core-site.xml file. This includes the basic set of entity permissions using the SLA. An additional level of access control granularity can be acquired using HDFS POSIX ACL. For instance, ACL supports entity authorizations such as file-permission (read, write, execute). When the client creates a new file or sub-directory, it will automatically inherit the ACL permissions of the parent directory. However, clients are asked to gain separate authorization for each service. Correspondingly, client authorization (fine-grain access control) may be managed separately via different access control vendors, such as Apache Ranger and Sentry. Ranger provides dynamic data masking (in movement) for several frameworks of the Hadoop stack (e.g., HBase, Storm, Knox, Solr, Kafka, and YARN), while Sentry supports the Impala SQL query engine. The next section will demonstrate how ACL and Ranger/Sentry roles may be used interchangeably in a Hadoop cluster. WebConnection: every client log has only one gateway, while the gateway manages several log connections. CentralPolicyAuthority (CPA): a policy-based authority that keeps spawning access certification (tickets) for IAM and monitoring user access. It represents the central process of the IAM that releases access tickets and auditing functionalities. These tickets map each 108 Chapter 5. A Unified Big Data Federation Access Control and Auditing show that the time increases by only 1% for each MB using the secure approach. Figure 5.9 also shows the time needed to perform WebHDFS calls (read/write) over different data points (data chunks between 100 MB and 500 MB). Table 5.4: Access Control impact on Read performance with Sample Standard Deviation (SSD) and Transfer Speed (TS) 100MB 200MB 300MB 400MB 500MB TS Mean Median SSD* Native WebHDFS 23.64 47.45 69.63 94.23 120.62 25 MB/s 71.11 69.63 38.08 BDF Access Broker 25.07 49.36 72.05 98.1 127.85 26 MB/s 74.49 72.05 40.26 Table 5.5: Access Control impact on Write performance with Sample Standard Deviation (SSD) and Transfer Speed (TS) 100MB 200MB 300MB 400MB 500MB TS Mean Median SSD* Native WebHDFS 16.55 33.9 48.7 65.9 84.43 42 MB/s 49.9 48.7 26.54 BDF Access Broker 21 43 61.8 83.69 107.2 - 63.34 61.8 33.71 A box and whisker chart in Figure 5.10 shows the distribution of data into quartiles, highlighting the mean and outliers. Our experiment shows the box and whisker plot medians, interquartile ranges, and ranges of the secure and non-secure approaches. This experiment aimed to identify covariates that could influence the length of time taken to perform a read/write call by using the box and whisker plots to allow visual comparison of the median and spread. Areas of potential interest are highlighted for future prospective work. The whiskers extend from the box to the highest and lowest values, and our experiment shows that no outliers exist. Also, Figure 5.11, shows that the relationship between the two variables is positive linear. 5.6 Access Audit Log Management and Analysis NN, as a data lake gateway, writes access audit log information to local files after each successful/failed access call. These access log files generally contain information regarding the user and the data the user accessed. Typically, Hadoop creates logs after each user read/write call using Apache Log4j files [232], i.e., a Java library. This detailed log information is managed locally by each Hadoop component and provides a useful accounting process (e.g., timestamp and IP address) that logs all operations. The log files may serve multiple purposes, such as debugging operational issues and regulatory compliance. They also provide security 115 FERAS MAHMOUD NAJI AWAYSHEH ((a)) WebHDFS Read ((b)) WebHDFS Write Figure 5.9: Performance analysis of WebHDFS operation within different file sizes ((a)) WebHDFS Read) ((b)) WebHDFS Write Figure 5.10: A box and whisker plot displays a performance comparison of BDF broker against native (non-secure) Hadoop implementation ((a)) WebHDFS Read ((b)) WebHDFS Write Figure 5.11: Graph of the relationship between secure and non-secure WebHDFS rates 116 Chapter 5. A Unified Big Data Federation Access Control and Auditing capabilities to execute forensics from an access audit perspective (e.g., user logs over HTTP). In particular, access audit logs are valuable pieces of information for conducting security auditing and analysis of the Hadoop cluster with high operational resolution. However, analysing the collected YARN and HDFS logs generated by applications of many distributed components (locally at each daemon) is a difficult and insufficient task. Each Hadoop daemon creates its own output log messages and manages them in a local directory (on the node on which it is running). Hadoop Archives may be employed to reduce the number of small files and thus the stress on the NN [233]. However, it is still difficult to perform security analysis or digital forensics over a large-scale Hadoop federation model that could include dozens of NNs and hundreds of DNs with broad user participation. Another way to reduce the complexity of the distributed log file analysis is by utilizing log aggregation: for instance, YARN log aggregation, a management process that fuses different log files from various sources in a centralized repository to facilitate the analysis of the collected logs. This feature is disabled by default; by enabling it, the log files of different daemons will be allocated to a centralized directory (e.g., HDFS). However, even using this feature, the large amount of aggregated data in Hadoop federation architecture will lack governance requirements, like file tagging, labeling, and classification. It will be stressful for investigators to examine such pieces of information, and it can easily frustrate them. The proposed access broker not only provides fine-grained access control but also a centralized auditing approach (see Figure 5.12). By employing the Ranger Audit Server, the BDF access broker will aggregate all access logs into a centralized repository (RDBMS, HDFS, or Log4j). The log aggregation service will regularly check the running tasks and start to aggregate and transfer the logs to a centralized repository (typically HDFS). Subsequently, access audit logs can be allocated by other digital forensics tools for any visualization or search tool for further investigation. Moreover, server audit logs provide valuable information to identify and repair system vulnerabilities. Consider the following scenario that illustrates how to investigate a security breach using the access audit logs by storing and analysing the access log data. A Hadoop system administrator notices a tenfold spike in the number of support tickets. Because the system utilization is high, due to the unusual ticket requests, clients start facing problems logging into the VPN. The admin must analyse the log data, since he suspects that he may be experiencing a distributed denial of service (DDoS) attack. The questions that he must answer are: “how many connection requests have been delivered in the past few 117 FERAS MAHMOUD NAJI AWAYSHEH Figure 5.12: A conceptual BDF access broker log management model hours?”, “where are the requests coming from?”, and “what types of connections are they (authorized or not)?” The analysis includes investigating how and when the network traffic changed. Doing so requires engaging in three steps to transform the logs into useful figures, namely, loading, refining, and visualizing the data, in the search for useful information, as follows: • Loading log data: Utilizes Apache Flume [234] to stream large amounts of log data from the VPN server into the HDFS. The log records contain a timestamp, IP address, country, and indicator about whether the connection was successful or not. • Refining log data: A storage management layer must be employed to enable a relational view of data without affecting the data format. This layer aids in browsing the log data (making sure it has been loaded correctly). Apache HCatalog, i.e., Hadoop catalogue, may be utilized to provide a metadata layer and rest interface for Hadoop data. Next, the admin needs to write them onto any data analytics framework for review (visualization tool). An Apache Pig script may be used to push the latest log data to the visualization tool. • Visualizing log data: The admin interfaces the visualization tools, like ElasticSearch (a 118 Chapter 5. A Unified Big Data Federation Access Control and Auditing real-time search engine and analytics tool), and Microsoft Excel (using open database connectivity). ElasticSearch provides high-level visualization to identify the moment when the network traffic increased, where it came from, and whether or not it was authorized in order to confirm his hypothesis about the DDoS attack. More detailed maps may be created using the Excel Power View functionality by linking the Apache Hive (the base of HCatalog) and Excel to determine whether there is cause for concern. The forensic report and the process output data are used to update the firewall to deny requests from the unauthorized IP addresses. To automate this update, the admin can use Apache Ozzie to schedule a job to automatically update his firewall every hour. This report can also be used for other forensics to respond to different security threats, prepare for compliance audits, and prepare behavioural analytics (for security patching). 5.7 Summary and Future directions Next-generation access control systems aim to become more scalable with even finer-grained authentication and authorization management [1]. However, given the emerging trends of the distributed, heterogeneous, and federated infrastructure associated with Hadoop 3.x architectures, the need for a lightweight security framework is inevitable. In this paper, we present a BD Federation-oriented reference model for the secure development of access control solutions within Hadoop clusters. The proposed model is a generic high-level conceptual metamodel (called the FACRM) that aims to formalize Hadoop 3.x core access control capabilities and highlight some of Hadoop’s top-level security projects. It also aims to successfully implement a unified and secure BD solution over on-premise and cloud-based deployment architectures in favour of BD applications and frameworks. The FACRM supports myriad access control options across a variety of policies, users, and frameworks in pursuit of modern BD infrastructure. Furthermore, this study presents an in-depth investigation of the Hadoop IAM ecosystem and draft current access control limitations within a federation deployment architecture. We validate the utilization of our proposed RM by implementing a proof-of- concept architecture for the security and privacy of BDF deployment. Our test conclusively confirms the effectiveness of the proposed access pattern performance and security. The general aim of this study is to develop an RM using open-source frameworks (e.g., Knox, Ranger) to promote the adoption of reliable access control mechanisms within the BD deployment architectures. It also aims to facilitate the security design of all clients, resources, 119 FERAS MAHMOUD NAJI AWAYSHEH applications, and networks in Hadoop-based BD processing environments. In this context, the proposed federation BD access control meta-model is a service-oriented architecture (SOA) that conforms to the best practices of independent vendors, products, and technologies. This SOA makes FACRM frameworks (a framework design based on FACRM) into SOA frameworks. However, FACRM frameworks are not necessary for BD frameworks only; it could be any framework or application that runs over the HDFS system, which is a large-scale distributed environment (platform). This environment is, thus, characterized by horizontal scalability, rapid provisioning of access control, ease of access, and security. Additionally, Our BDF access broker provides an attractive solution to the audit log problem that effectively addresses compliance requirements. To map the current Hadoop limitations (presented in Section 5.3.3) to the solution domain of this study, Table 5.6 represents these limitations as threats and links them with solutions. 120 Chapter 5. A Unified Big Data Federation Access Control and Auditing Table 5.6: Linking current Hadoop federation limitations to the proposed solutions Current limitations Proposed solution Description Access control complexity FACRM propose that policies are written once and applied many times. In Figure 6, the CentralPolicyAuthority (in green) allows the admin to set up a policy and distribute it to all nodes (using the Ranger agents), which are represented by the AuthorizationAgent (in light blue) attached to all of the services. Long-running services FACRM propose flexible time-based policies. The CertificateLifetime in the proposed reference model corresponds to the long-running services. These certificates are associated with the CentralPolicyAuthority and saved at the PolicyRepository to be updated automatically upon demand. Communication orchestration FACRM propose a thirdparty centralized access control. Security verification for all of the entities (users, nodes, and daemons) inside the Hadoop cluster and external clients. In Figures 7 and 8, it can be observed that the broker transfers the access discussion responsibility from the NN to the broker. Data integrity access control at the file level and service level (access call). A federation configuration requires authorization verification of the entire file path to create secure multi-tier federation architecture. Additionally, multi-layer control (authentication and authorization) occur at the beginning of operation (reading and writing to HDFS). Node orchestration FACRM provide access control using any approach. FACRM and BDF broker provide the base to support the multipart access control framework and technologies, e.g., RBAC, ABAC, etc. Audit log management utilization log aggregation using centralized auditing approach. Figure 12 illustrates how to employ the proposed broker with Ranger Audit Server for accessing broker log management. Security auditing proposal of an architecture pattern for BD governance. In Section 7, we proposed a scenario that transforms the logs into useful figures by loading, refining, and visualizing the data into incident and forensic reports using open-source frameworks. This section shows how to investigate a security breach using Apache Flume, Apache HCatalog, and ElasticSearch, among other tools. Access control scalability proposal of a novel BDF access broker. The main components of our proposed broker provide high scalability. In particular, Ranger provides centralized Hadoop security administration and management, while Knox streamlines security for services and users who access the cluster data and execute jobs. 121 FERAS MAHMOUD NAJI AWAYSHEH Overall, the primary benefits of the BDF broker architectural pattern can be summarized in four different categories: Enhanced security: A method to ensure that data is stored securely in BDF and BDaaS clouds using a robust access control mechanism. This involves using (i) Knox to expose REST and HTTP services without revealing the details of the underlying Hadoop cluster, and (ii) Ranger for fine-grain authorization over federation NNs. Centralized control: Using a single gateway with a distributed agent to prevent unauthorized access to the modern data lake. This also allows IT departments to set and enforce security policies regarding data usage, access calls, and resource utilization over secure channels. Facilitated auditing and analysis: A centralized repository for all access logs with a sophisticated governance and accountability approach (reporting and regulatory compliance). This approach enables threat prevention methods, e.g., behavioural analytics and threat intelligence. Consolidated governance pattern: A way to ensure and prove compliance with granular visibility and control to meet regulatory requirements, and to guide the efforts of admins to ensure that the system complies with all relevant regulations and standards (such as data residency) when using Hadoop 3.x. Blockchain technology can serve as a revolutionary solution, addressing current BD privacy concerns such as wire (end-to-end) encryption and decentralization data-driven cryptography. As an enabling technology, blockchain provides a sequence of block cryptography that stores all transactions, which has been established as a solution for the large-scale distributed agents of Bitcoin system security [235]. The core functionality of blockchain technology relies on providing robust cryptographic (each agent is assigned a private key, whereas a public key is shared with all other agents) proof for data authentication and integrity by providing a list of all transactions and a hash to the previous block. This list is verified by majority agreement of nodes (P2P network where the sender broadcasts it to all of the other nodes) that are actively involved in verifying and validating transactions [236]. The current Hadoop setup does not enforce access control by the DN to access its data blocks. Another issue remains in that both NN and DN generate a block access token using the same key. If an attacker leaked the key, he could generate a token and access any data blocks in the HDFS. Also, the leaked DT can be used to steal a large amount of data from HDFS, since it has the privilege to behave as the Hadoop client and to access all content 122 Chapter 5. A Unified Big Data Federation Access Control and Auditing which he is allowed to access. Any future BD Hadoop solution should consider the previous limitations on a federation scale. To this end, FACRM addresses all concerns mentioned above by defining a reference model for Hadoop federation; more particularly, it presents a meta-model that includes the main access control vocabulary and design elements, the set of configuration rules, and the semantic interpretation. Leveraging recently published management mechanisms of policy enforcement, e.g. [186], to combine cloud and edge federations with role-based and attribute-based access control [175, 177] could be considered in future research. Examples of different research directions include: •Hybrid access control solutions: The development in usage control for data privacy and security leads to integrating conventional access control approaches, e.g., ABAC, with other context-based encryption technologies. This integration could include functional encryption or other generalizations of identity-based encryption and attributebased encryption for protecting big data in the presence of mutable attributes, which may lead to general advancement in other fields, such as IoT. •Fine-grained Access Control: The need to develop active and fine-grained approaches (policies and standards) for BDF is inevitable. The challenge here is to extend the previous approaches with new policy editing and presentation tools (classification-based, prohibition-based, time-based, and location-based policies) for flexible and extensible data access. In particular, this includes policies that extend ABAC with stateful access sessions and mutable attributes (i.e., characteristics that dynamically change during the session). This extension is invaluable to advance the authorization mechanisms of the multi-tenant data lake architecture, as well as the latest BDF model. Tackling this issue can be achieved by deploying policy templates that extend the primary ACL (or any access decision enforcer) as a specialization of the XACML V3.0 standard. •Dynamic Access Control: More than ever, scalability and dynamicity of the BD deployment architecture in terms of user and node participation are vital for the secure delivery of security provisioning in a federation environment. There have been different adapted security mechanisms and techniques proposed to cope with this concern. However, more research activities are still needed to establish scalable security models and paradigms that must be driven by BD specifications and requirements. Also, new security abstractions for BDF are still needed to simplify the task of identifying 123 FERAS MAHMOUD NAJI AWAYSHEH the unimproved gaps. For instance, leveraging new mechanisms of policy enforcement [186] to combine BDF with ABAC [177] could be pursued in future research. •Stateful Access Sessions: This requires restricting the BDF access to only those authorized by the succinct gateway. However, the current state-of-the-art BD-based encryption technologies involve transparent data encryption. Federation environments track the participation states and characteristics of the clients and networks traversing them with mutable attributes (i.e., the values of the attributes change over time during an access session). This operation requires formulating policy templates on top of standards such as XACML V3.0 for dynamic authorization with stateful access sessions. This takes place at the service level (e.g., data access calls) and does not protect data-in-transit or data-in-process (not even the metadata). Attribute-based encryption in conjunction with the usage control approach and ABAC can be labeled as a future direction for this issue. Providing new solutions for all of these research directions will promote innovative BDF solutions with advanced security features. It is also expected that adoption of the FACRM use cases will be implemented within our BD opportunistic and elastic resource allocation (OPERA) platform. OPERA architecture (prototype proposed in [3]) combines the computing power of high-throughput resources available (non-dedicated) to the Hadoop 3 dedicated cluster using Docker containers as worker nodes. Those non-dedicated containers tend to be more vulnerable, which requires a robust IAM approach to minimize security threats. 124