Skip to main content

Posts

Showing posts from September, 2019

Resizing AWS ESB

   11   lsblk    12   df -H    13   lsblk    14   sudo growpart /dev/xvda 0    15   sudo resize2fs /dev/xvda1    16   lsblk    17   sudo growpart /dev/xvda 2    18   lsblk    19   df -H    24   lsblk    25   xfs_growfs /dev/xvda2   https://hackernoon.com/tutorial-how-to-extend-aws-ebs-volumes-with-no-downtime-ec7d9e82426e https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html growpart /dev/xvda 2 CHANGED: partition=2 start=4096 old: size=20967391 end=20971487 new: size=2097147870 end=2097151966 lsblk NAME     MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT xvda     202:0     0 1000G   0 disk   ├─xvda1 202:1     0     1M   0 part   └─xvda2 202:2     0 1000G   0 part / df -H Filesystem       Size   Used Avail Use% Mounted on devtmpfs         34G     0   34G   0% /dev tmpfs             34G     0   34G   0% /dev/shm tmpfs             34G   27M   34G   1% /run tmpfs             34G     0   34G   0% /sys

Powering Edge AI for Sensor Reading with RPI and Breakout Garden (EFM, NiFi, MiNiFi Agents)

Powering Edge AI for Sensor Reading with RPI and Breakout Garden (EFM, NiFi, MiNiFi Agents) Hardware Component List: Raspberry Pi 3B+ BMP-280 Temperature, Pressure and Altitude ST7735 0.96 SPI Colour LCD 160x80 MAX-30105 Oximeter and Smoke Sensor Sony Playstation 3 EYE USB Web Camera Software Component List: Raspian Python 3.5 JDK 8 Java (Soon Upgrading to JDK 11) Apache NiFi 1.9.2 MiniFi Java Agent 0.6.0 Cloudera Edge Flow Manager Apache Kafka 2.2 Summary Potential Use Cases:   Tracking Environment in a facility that includes webcam detection, temperature, pressure and smoke. Our Raspberry Pi 3B+ has a Breakout Garden Hat with 2 sensors and one small display. The display is showing the capture image and is constantly updating.  We currently run via nohup, but when we go into constant use I will switch to a Linux Service to run on startup. The Python script initializes the connections to all of the sensors and then goes into an

OpenSSL / SSL Hosting in NiFi

1. Host a Web Page (index.html) via HTTP GET with 200 OK Status 2. Receive POST from that page via AJAX with browser data 3. Extract Content and Attributes 4. Build a JSON file of HTTP data 5. Store it To accept location in a phone or modern browser you must be running SSL. So I added that for this HTTP Request. Use openssl to create your 2048 RSA X509, PKCS12, JKS Keystore, Import Trust Store and import in browser Your web page can be any web page, just POST back via AJAX or Form Submit. <html> <head> <title>NiFi Browser Data Acquisition</title> <body> <script> // Usage window.onload = function() { navigator.getBattery().then(function(battery) { console.log(battery.level); battery.addEventListener('levelchange', function() { console.log(this.level); }); }); }; ////////////// print these var latitude = ""; var longitude = ""; var ips = ""; var batteryInfo = &qu

Backup and Restore NiFi Registry Templates

Backup and Restore NiFi Registry Templates Example Backed Up NiFi Flow Excerpt {   "bucket" : {     "createdTimestamp" : 1566430253392,     "identifier" : "aaa50be8-b994-46b5-a0bb-be245c34b928",     "link" : {       "href" : "buckets/aaa50be8-b994-46b5-a0bb-be245c34b928",       "params" : {         "rel" : "self"       }     },     "name" : "IoT",     "permissions" : {       "canDelete" : true,       "canRead" : true,       "canWrite" : true     }   },   "flow" : {     "bucketIdentifier" : "aaa50be8-b994-46b5-a0bb-be245c34b928",     "bucketName" : "IoT",     "createdTimestamp" : 1566430269976,     "description" : "Created by MiNiFi C2 Flow Designer",     "identifier" : "56902ff0-62ac-4189-9684-7652