Archive

2016

FreeIPA and Hadoop Distributions (HDP / CDH)

FreeIPA is the tool of choice when it comes to implement a security architecture from the scratch today. I don't need to praise the advantages of FreeIPA, it speaks for itself. It's the Swiss knife of user authentication, authorization and compliance. To implement FreeIPA into Hadoop distributions like Hortonwork's HDP and Cloudera's CDH some tweaks are necessary, but the outcome is it worth. I assume that the FreeIPA server setup is done and the client tools are distributed. If not, the guide from Hortonworks has those steps included, too. For Hortonworks , nothing more than the link to the documentation is necessary (the original Hortonworks community article, archived): Ambari 2.4 Kerberos with FreeIPA (archived) Ambari 2.4x has FreeIPA ( Ambari-6432 ) support (experimental, but it works as promised) included. The setup and rollout is pretty simple and runs smoothly per Wizard. For Cloudera it takes a bit more handwork, but it works at the end also perfect and w...

Event Driven Design and Unified Data Platforms

This article explains the shift from CRUD centric development and siloed data stores to event driven systems and centralized data hubs. It shows why modern applications require schema on read, flexible ingestion and scalable distributed processing instead of tightly coupled monoliths. The content outlines how unified data layers and event streams support exploration, analytics and future proof architectures. Designing Modern Applications with Event Driven Systems, Centralized Data Hubs and Scalable Architecture By 2016 it was clear that building large applications required new architectural paradigms. Traditional CRUD based development and rigid schemas no longer fit the speed, volume and variability of modern data. Applications needed to respond to events, integrate heterogeneous data sources and scale across distributed environments. The shift was not driven by fashion but by the practical need to align architectures with business models, product requirements and ret...

Handling Corrupted Kafka Messages and Offset Recovery in Distributed Systems

This article explains how corrupted Kafka messages occurred in early Kafka versions, how offsets were stored in Zookeeper and how to manually recover a stuck consumer. It also puts the often cited KAFKA-2477 bug in context, shows how to inspect offsets using Kafka tools or Zookeeper and describes code based and operational strategies for skipping bad messages in older distributed log systems. Handling Corrupted Kafka Messages and Offset Recovery in Distributed Systems In older Kafka deployments, especially versions before 0.9, it was possible for a message in a topic to become unreadable due to corruption. Typical causes were faulty disks or networks, broken clients and third party frameworks that interacted with Kafka internals. Kafka had its own log bugs in that era too. One was KAFKA-2477 (affected 0.8.2.1, fixed in 0.9.0.0): a race between unsynchronized reads and appends on the leader's log could make a follower think its offset was out of range, so the repli...

Building Modern Hyper-Converged Data Platforms with OpenStack and Hadoop

This article explains how hyper-converged data platforms built with OpenStack provide a flexible and scalable foundation for Hadoop and streaming workloads. It covers the differences between static and on-demand Hadoop clusters, the role of HDFS on block storage, how network design and storage layout affect performance, and why in-memory layers like Alluxio can accelerate analytical and IoT workloads. The piece also outlines best-practice architectures for compute, storage, and networking in modern private and hybrid data platforms. Hyper-converged infrastructures have become a mainstream choice for enterprise data platforms. Back in 2016, many companies were already adopting HCI. Today, the trend has continued, especially as organizations need elastic compute and storage for Hadoop, Spark, and new streaming workloads. Hyper-Converged Data Platforms for Hadoop and Streaming Workloads Hadoop and modern analytical stacks benefit from flexible resource allocation, fast provi...

SolR, NiFi, Twitter and CDH 5.7

Historical note: this post is from 2016. CDH 5.7, the free Twitter streaming API and Banana are gone, so read it as a record of the approach, not as a current guide. Since the most interesting Apache NiFi parts are coming from ASF [1] or Hortonworks [2], I wanted to try the same on CDH 5.7, just out of curiosity. Here's my 30 minute playground, running in Google Compute Engine at the time. The NiFi flow, the Banana dashboard and the solrconfig.xml from this post are also in my NiFi-CDH-SolR repo on GitHub. On one of my playground nodes I installed Apache NiFi per mkdir /software && cd /software &&  wget https://archive.apache.org/dist/nifi/0.6.1/nifi-0.6.1-bin.tar.gz   && tar xvfz nifi-0.6.1-bin.tar.gz Then I've set only nifi.sensitive.props.key property in conf/nifi.properties to an easy to remember secret. The next bash /software/nifi-0.6.1/bin/nifi.sh install installs Apache NiFi as an service. After log in into Apache NiFi's WebUI, d...

Hive on Tez vs Hive on Spark on CDH, and What Is Legacy Now

Apache Tez was introduced as a faster, DAG-based execution engine for Hive and other Hadoop workloads, often noticeably faster than classic MapReduce in ETL pipelines. This article explains what Tez brought to Hive, how it fit into CDH-era deployments, and why the old practice of hand-compiling Tez against CDH 5.x is now a legacy pattern rather than a recommended approach. It also covers the Spark side: how Spark reads Hive tables today through SparkSession with Hive support, why that is not the same as Hive running on an execution engine, and the manual HiveContext workaround CDH 5.3 needed. Apache Tez was designed as a low-latency, DAG-based execution engine for Hadoop. It replaced many of the heavyweight MapReduce patterns used by early Hive deployments with more efficient execution graphs, reusing containers and avoiding unnecessary materialization steps. In practical terms, switching Hive from MapReduce to Tez often made ETL and reporting jobs noticeably faster on the sam...