Skip to main content

Posts

Showing posts from March, 2019

Using Sensors At Scale on the Edge Part 1 : Apache NiFi : MiNiFi : CEM

Using Sensors At Scale on the Edge Part 1 : Apache NiFi : MiNiFi : CEM
In the next release I will be adding CEM.

This is an update to an existing flow that adds new features based on Apache NiFi 1.9.1.   We will also be migrating this to MiNiFi 0.6.0 C++ with Cloudera CEM.



*Will be updated with CEM and MFC++ Agent 0.6.0


Links:

https://community.hortonworks.com/articles/229522/iot-series-sensors-utilizing-breakout-garden-hat-p.htmlhttps://community.hortonworks.com/articles/232136/iot-series-sensors-utilizing-breakout-garden-hat-p-1.html 

Source:

https://github.com/tspannhw/cdsw-queries/tree/masterhttps://github.com/tspannhw/minifi-breakoutgarden




















Advanced XML Processing with Apache NiFi 1.9.1

Advanced XML Processing with Apache NiFi 1.9.1
With the latest version of Apache NiFi, you can now directly convert XML to JSON or Apache AVRO, CSV or any other format supported by RecordWriters.   This is a great advancement.  To make it even easier, you don't even need to know the schema before hand.   There is a built-in option to Infer Schema.


The results of an RSS (XML) feed converted to JSON and displayed in a slack channel.


Besides just RSS feeds, we can grab regular XML data including XML data that is wrapped in a Zip file (or even in a Zipfile in an email, SFTP server or Google Docs).

Get the Hourly Weather Observation for the United States

Decompress That Zip

 Unpack That Zip into Files

One ZIP becomes many XML files of data.


An example XML record from a NOAA weather station.


Converted to JSON Automagically



Let's Read Those Records With A Query and Convert the results to JSON Records


Read RSS Feed of Travel Warnings



In this one simple example, we are ingesting all of the …

A Look Around Apache NiFi 1.9.x

Apache NiFi 1.9 Deep Look
















YARN From NiFi

IoT Series: Sensors: Utilizing Breakout Garden Hat: Part 1 - Introduction

IoT Series: Sensors: Utilizing Breakout Garden Hat: Part 1 - Introduction An easy option for adding, removing and prototype sensor reads from a standard Raspberry Pi with no special wiring. Hardware Component List: Raspberry PiUSB Power CablePimoroni Breakout Garden Hat1.12" Mono OLED Breakout 128x128 White/Black ScreenBME680 Air Quality, Temperature, Pressure, Humidity SensorLWM303D 6D0F Motion Sensor (X, Y, Z Axes)BH1745 Luminance and Color SensorLTR-559 Light and Proximity Sensor 0.01 lux to 64,000 luxVL53L1X Time of Flight (TOF) Sensor Pew Pew Lasers!Software Component List: RaspianPython 2.7JDK 8 JavaApache NiFiMiniFiSource Code: https://github.com/tspannhw/minifi-breakoutgarden Shell Script (https://github.com/tspannhw/minifi-breakoutgarden/blob/master/runbrk.sh)Python (https://github.com/tspannhw/minifi-breakoutgarden/blob/master/brk.py)Summary Our Raspberry Pi has a Breakout Garden Hat with 5 sensors and one small display. The display is showing the last reading and is constan…