Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
Traditional Prometheus Architecture(Image Courtesy: https://prometheus.io/docs/introduction/overview/)Prometheus is great. It has a huge number of integrations and provides a great metric monitoring platform, especially when working with Kubernetes. However, it does have a few shortcomings. The aim of this alternative architecture is to preserve the best parts of Prometheus while augmenting its weaker points with more powerful technologies. The service discovery and metric scraping framework in Prometheus is its greatest strength, but it is greatly limited by its tight coupling to the TSDB system inside Prometheus. While it is possible to replace the TSDB inside Prometheus with an external database, the data retrieval process only supports writing into this one database.Maui ArchitectureThe greatest strength of Prometheus, the service discovery and metric scraping framework, can now be used within Apache NiFi with the introduction of the GetPrometheusMetrics processor. This proces
Ever wondered what Cloudera's Shared Data Experience (SDX) is? Want to know how SDX can help you or your organization? Well here's a video that will hopefully clear up some confusion and tell you about some of the powerful things SDX enables. Let us know what topics you care about and keep checking back as we will be posting new videos about CDP and more at least once a week.
Since getting started with Hadoop & ELK I have taken the original Hortonworks 5.x Elasticsearch and Kibana Management Pack for HDP 2.6.5 and upgraded it to ELK 6.3.2. During this project I also added Logstash, FileBeat, and MetricBeat. Next, I upgraded the Management Pack to work with HDP 3.x and HDF 3.x. In this article I am going to share with you all of the steps required to upgrade the ELK 6.3.2 Management Pack to latest, greatest versions of ELK 7.4.2. You can find all of the files in my GitHub repo: DFHZ ELK Mpack First, I create a known working test cluster making sure the 3.4-0 management pack is operational and my test environment is suitable. Commands for a single node HDF test cluster: # history 1 hostnamectl set-hostname elk.cloudera.com 2 yum install nano wget -y 3 nano /etc/sysconfig/selinux 4 nano /etc/cloud/cloud.cfg 5 nano /etc/hosts 6 reboot 9 wget -O /etc/yum.repos.d/ambari.repo http://public-re
New in Cloudera AI 1.2 we’re excited to announce support for hosting persistent web based applications and dashboards using frameworks like Flask, Dash and Shiny to share analytics results and insights with business stakeholders. Example Use case Here’s a quick example of how it works based on a use-case involving New York City transportation data: Part 1 of the analysis compares workday trip data to facilitate the appropriate choice of transportation (bike vs. car), given a time of the day and route (Analysis based on this blog post by “Todd W. Schneider”.) Part 2 of the analysis demonstrates outlier detection for trip durations, which might be interesting for internal audit purposes. This example uses the most recent data from Citibike and NYC TLC for-hire vehicle (FHV) data. Publishing the app Two pre-trained machine learning models (simple sklearn logistic regression models) are served by CML to be accessed by the application via API. As our fo
Apache NiFi flow to recursively call the HDFS Namenode WebHDFS API to track disk consumption per user across the cluster for graphing, monitoring, capacity planning and alerting. It can often times be hard to track the disk consumption per user on your HDFS filesystem. There isn't really a single command to tell you how much disk space a specific user is using across the filesystem (over many directories), nor can you easily track this over time to predict future consumption. This article attempts to solve both problems. Using a NiFi flow to recursively pull the status of each file stored on HDFS, and storing that in a database for visualising through Superset and/or Grafana. You can run REST queries against the HDFS active Namenode, and get a listing of all the files and directories at a specific location. Here is an example of query against the Namenode for '/user/willie': curl -s 'http://localhost:50070/webhdfs/v1/user/willie/?op=liststatu
I have written articles in the past benchmarking Hadoop cloud environments such at BigStep and AWS. What I didn't dive into those article is how I ran the script. I built scripts to rapidly launch TeraGen, TeraSort, and TeraValidate. Why? I found myself running the same script over and over and over again. Why not make it easier by simply executing a shell script.All scripts I mentioned are located here.Grab the following filesteragen.shterasort.shvalidate.shTo run TeraGen, TeraSort, and TeraValidate a determination of the volume of data and number of records is required. For example you can generate 500GB of data with 5000000000 rows. The script comes with the following predefined sets#SIZE=500G#ROWS=5000000000#SIZE=100G#ROWS=1000000000#This will be used as it only value uncommented outSIZE=1T ROWS=10000000000# SIZE=10G#ROWS=100000000# SIZE=1G# ROWS=10000000Above 1T (for terabyte) and rows 10000000000 are uncommented out. Meaning this script will generate 1TB of data with 10000000
/hbase , /hbase-unsecure , /hbase-secureThis is the root znode for HBase. Older versions used to have just /hbase while newer ones distinguish whether cluster is secured or unsecured. /hbase-unsecure/hbaseid UUID of the cluster. Also stored in /hbase/hbase.id file in HDFS. /hbase-unsecure/masterContains the active master server hostname.Written during master server startup. /hbase-unsecure/backup-mastersAll standby master servers are registered here /hbase-unsecure/meta-region-serverRegisters the hostname of region server which holds Meta table. /hbase-unsecure/rsActs as the root node for all region servers to list themselves when they start. It is used to track server failures. Each znode inside is ephemeral and its name is the server name of the region server. /hbase-unsecure/splitWAL The parent znode for all log-splitting-related coordination /hbase-unsecure/balancerStatus of load balancer enabled / disabled on cluster. /hbase-unsecure/region-in-transitionList of regions in tra
Apache Ranger is a framework to enable, monitor and manage comprehensive data security across the Big Data platform. Ranger allows you to centralize security administration to manage all security related tasks in a central UI or using REST APIs. You can setup fine grained authorization to do a specific action and/or operation with the platform's components/tools through role based and/or attribute based access control. Ranger also supports central auditing of all events across the cluster on access/edit/update/delete operations. Ranger has support for the following components through plugins: HDFS HBase Hive YARN KNOX Storm SOLR Kafka NiFi NiFi-Registry Atlas This article will provide an example of setting up Ranger database policies as well as column masking rules. The example will also show what happens when you have two tables, with one table having column masking rules applied for a specific user, and trying to join the two tables. Scenario: Two users: user_sales, user_hr Two t
INTRODUCTION With IoT growing at an exponential rate it is imperative that we continuously adapt our streaming architectures to stay ahead of the game.Apache Flink provides many great capabilities for stream processing that can be applied to a modern data architecture to enable advanced stream processing like windowing of streaming data, anomaly detection, and process monitoring to name a few. Something more important that any one tool; however, is the overall architecture of your solution and how it enables your full data lifecycle.In order to provide a robust solution you must take into account and make decisions that select the best tools for each part of your data's journey. Let's look at an example that will be growing rapidly over the next few years. Cellular IoT devices! In particular the IoT devices mad by particle.io. I will walk you through the end to end solution designed to: Deploy a cellular IoT device at the edge programmed to collect Temperature re
Objective of this article is to demonstrate how to rapidly deploy a demo Druid & LLAP cluster preloaded with 20 years (nearly 113 million records) of airline data ready for analytics using CloudBreak on any IaaS. Entire deployment is UI driven without the need for a large overhead of administration. All artifacts mentioned in this article are publicly available for reuse to try on your ownProlegomenonTime series is an incredible capability highly leveraged within the IoT space. Current solution sets offer non scalable & expensive or distributed processing engines lacking low latency OLAP speeds. Druid is an OLAP time series engine backed by a Lambda architecture. Druid out of the box SQL capabilities are severely limited and without join support. Layering HiveQL over Druid brings the best of both worlds. Hive 3 also offers HiveQL over Kafka essentially making Hive a true SQL federation engine. With Druid’s native integration with Kafka, streaming data from Kafka directly i
Exploring Apache NiFi 1.10: Parameters and Stateless Engine Apache NiFi is now available in 1.10! https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316020&version=12344993 You can now use JDK 8 or JDK 11! I am running in JDK 11, seems a bit faster. A huge feature is the addition of Parameters! And you can use these to pass parameters to Apache NiFi Stateless! A few lesser Processors have been moved from the main download, see here for migration hints: https://cwiki.apache.org/confluence/display/NIFI/Migration+Guidance Release Notes: https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version1.10.0 Example Source Code: https://github.com/tspannhw/stateless-examples More New Features: ParquetReader/Writer (See: https://www.datainmotion.dev/2019/10/migrating-apache-flume-flows-to-apache_7.html) Prometheus Reporting Tas
CDP has recently been introduced to the market, and we all want to learn about it, so I decided to contribute a bit. In this series of tutorials, I want to explain the basics of CDP Data Hub and provide some ease of automation. Indeed, the CDP control plane user interface provides a thorough workflow that automates the creation of main elements that ensures security, governance and scalability. As depicted above, these main elements are: CDP Environment: Cloud hosted (in your cloud) resources for CDP deployment CDP Data Lake: Host of CDP SDX, the shared service layer providing all security and governance CDP Data Hub cluster(s): where users run their workloads Note: CDP offers a lot more than these basic elements, and a lot more ways to configure them; this is a 101 tutorial and will not address all that CDP has to offer. For more information, visit the CDP documentation or product page. Instead, this tutorial series will teach you: How to create a CDP
Introduction Continuing my previous article on creating a CDP AWS environment, and a CDP data lake, this tutorial teaches you how to automate the creation of a simple data engineering data hub cluster. You'll notice that once a data lake is setup, launching data hub clusters is very easy! The cluster generated has the following properties: Template: CDP 1.1 - Data Engineering: Apache Spark, Apache Hive, Apache Oozie Nodes: 1 Master m5.2xlarge 3 Workers m5.2xlarge Here is the TL;DR: go to my github and run the scripts as instructed. Automation scripts Step 1: Create Data Hub Cluster cdp_create_dh_de.sh <prefix> Step 2: Verify periodically until cluster status is AVAILABLE cdp_describe_dh_de.sh <prefix> That's it!
IntroductionContinuing my previous article on creating a CDP AWS environment, this tutorial teaches you how to automate the creation of a datalake, including:Setting up proper roles and IDBroker mappings associated with your user and environmentCreating a datalakeSyncing users to FreeIPA Here is the TL;DR: go to my github and run the scripts as instructed. Automation scriptsStep 1: Create IAM and launch Data LakeCreate roles and mapping in your existing environment:cdp_create_group_iam.sh <base_dir> <prefix> <region> Create datalake:cdp_create_datalake.sh <base_dir> <prefix> Step 2: Verify periodically until datalake status is RUNNINGcdp_describe_dl.sh <prefix> Step 3: Sync free IPA userscdp_sync_users.sh <base_dir> <prefix> ConclusionThis was a short and sweet tutorial, more fun to come playing with data lake clusters and experiences!
Introduction Cloudera for public cloud has an amazing admin UI that drives you through a thorough wizards for setting up environment, data lakes, data hub clusters and experiences. Details of AWS pre-requisites can be found in CDP official documentation, but why use the easy button when you can leverage AWS and CDP cli and do it the hard way?My thoughts exactly. Here is the TL;DR: go to my github and run the scripts as instructed. AWS minimal requirements for CDP environmentEven through cli, a lot of the configuration of a environment can be automated, including:Network (VPCs, routing, gateways, etc.)Security GroupsFree IPA instance(s)However, you will need to set this minimal set of elements to get an environment ready:In AWSPublic/Private keys (not automated/demonstrated here)S3 BucketAWS RolesAWS policiesIn CDPCredential (not automated/demonstrated here)To better understand how roles, policies and bucket interact, you can refer to this diagram:In this
A few years ago I switched to using VS Code as my main code / text editor. I find it meets all my personal code development needs. With the release of the new BYOE functionality in CDSW 1.6 and CML, you can now use VS Code to remotely edit (and debug) Python, R and probably Scala code too. Plus you can also run and edit Jupyter Notebooks, all inside VS Code. This is a quick how-to to get it working. Getting ConnectedTo start, you need to set up the Remote Editing feature for your CDSW/CML cluster. You must download the CLI client and add an SSH public key. The next step is to authenticate and connect to the CDSW server using the CLI client from your local machine.One you are connected, you should see something like this:$ cdswctl ssh-endpoint -p ml-at-scale -m 4 -c 2Forwarding local port 7847 to port 2222 on session bhsb7k4eqmonap62 in project jfletcher/ml-at-scale.You can SSH to the session using ssh -p 7847 cdsw@localhostNow you need to add an entry
Most of online article already specified the code and submission command for Spark connecting Kafka in kerberos environment. Here we talk other issues you probably encountered when doing debugging, which are of the kind of easily ignored. I experienced and be tortured, but no pain no gain. Here records them and hope do help to you.The environment is HDP 2.6.1.0 with FreeIPA kerberized, Spark 1.6.3 and Kafka 0.10.1 The test code I borrowed from below link, but added lines enabling it running in kerberized.https://github.com/eBay/Spark/blob/master/examples/src/main/java/org/apache/spark/examples/streaming/JavaDirectKafkaWordCount.java package spark.example;import java.util.HashMap;import java.util.HashSet;import java.util.Arrays;import java.util.regex.Pattern;import scala.Tuple2;import com.google.common.collect.Lists;import kafka.serializer.StringDecoder;import org.apache.spark.SparkConf;import org.apache.spark.api.java.function.*;import org.apache.spark.streaming.api.java.*;import org.a
At times customers want to change the default docker bridge network. Perhaps their monitoring software utilizes that range for example. The following illustrates the default IP range for docker0 # ip a show docker05: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group defaultlink/ether 02:42:be:4d:f3:e7 brd ff:ff:ff:ff:ff:ffinet 172.17.0.1/16 scope global docker0valid_lft forever preferred_lft forever CDSW does not use the docker0 bridge within CDSW and this interface is down. To change it however a customer may create a daemon.json file in order to create a custom docker0 range. Documentation on that is enclosed below. - https://docs.docker.com/v17.09/engine/userguide/networking/default_network/custom-docker0/ /etc/docker/daemon.json{"bip": "192.168.1.5/24","fixed-cidr": "192.168.1.5/25"} Thereafter you would stop docker on all nodes and ensure the Docker daemon is up and ifconfig shows the right val
Many customers have a high number of CDSW Models they wish to deploy in their environments. Some customers have a large number of model requests coming in which would exceed the default 30 second timeout limit of these models. According the CDSW Documentation, Model Replicas are described as "The engines that serve incoming requests to the model." Models are single threaded and can only process one request at a time Replicas are utilized for models to ensure some level of load-balancing, fault tolerance, and serving multiple requests. There is a maximum deployment of 9 replicas per model. This UI limit within the model can be circumvented by scaling the model manually through Kubernetes commands. NOTE: Please perform these at your own risk. One can attempt the following to scale up their model deployment. Find model deployments. - kubectl get deployments -all-namespaces Scale select deployment. - kubectl scale deploymen
Introduction In this article we’re going to look at Logistic regression which is a technique widely used in industry to solve binary classification problems. Unlike the linear regression model, which is used to make predictions on the numerical target variable, logistic regression has the ability to deal with discrete valued outcomes. For example, a numerical target variable might involve predicting house prices, whereas a discrete valued outcome might involve predicting who would win in the next presidential elections. Logistic regression is most commonly used in solving binary classification problems, such as tumor detection, credit card fraud detection, email spam detection, and so on. How the logistic regression model works The logistic regression model makes use of the sigmoid function (also known as the logistic function) to measure the relationship between input variables and the output variable by estimating probability scores of the outcome. Unlike li
Step by step guide - Shell action in oozie workflow via HueStep1: Create a sample shell script and upload it to hdfs [root@sandbox shell]# cat ~/sample.sh#!/bin/bashecho "`date` hi" > /tmp/output hadoop fs -put sample.sh /user/hue/oozie/workspaces/ [root@sandbox shell]# hadoop fs -ls /user/hue/oozie/workspaces/-rw-r--r-- 3 root hdfs 44 2016-02-15 10:26 /user/hue/oozie/workspaces/sample.shStep 2: Login to Hue Web UI and select Oozie editor/dashboardStep3: Goto "Workflows" tab and click on "Create" buttonStep 4: Fill in the required details and click on save buttonStep 5: Drag shell action between start and end phaseStep 6: Fill in the required details about shell action and click on "Done" buttonStep 7: Submit your workflowYou will see that your job is in progressOutput 1Output 2
Introduction In this article we’re going to look at linear regression, which is a technique for estimating linear relationships between various features and a continuous target variable. Linear regression provides the ability to measure a correlation between your input data and a response variable. We’ll illustrate this concept with a simple example. Suppose you have collected data for employees’ years of experience and their corresponding salaries. To understand the distribution of this data we can generate a plot as shown in Fig 1. You can see that there’s a linear relationship between years of experience (x) and salary (y). This correlation allows us to build a linear regression model that outputs a salary given years of experience. Fig1 : Points plotted using training examples (years of experience, salary) Let’s look at the internals of a linear regression algorithm. The algorithm will fit a line in the form of y = β0 + β1x to your data. Here we
Overview As you may or may not know, Nifi-Registry 0.2.0 (included in HDF 3.2) allows the storage of versioned flows in a git repository. @Andrew Lim wrote a great article on how to configure this storage for nifi-registry as you can see here: https://community.hortonworks.com/articles/210286/storing-apache-nifi-versioned-flows-in-a-git-repos.html I thought I'd give a few pointers on how to do it in HDF 3.2, following these four simple steps: Step 1: Setup your git repository Step 2: Clone repository on HDF server Step 3: Configure nifi-registry via Ambari Step 4: Restart nifi-registry Step 1: Setup your git repository This step is essentially exactly what was highlighted by Andrew. Create a new repository Create a token Go to to GitHub’s “Developer settings” and create a new “Personal access token”, as follows: Step 2: Clone repository on HDF server Connect to the server running nifi-registry on your hdf cluster. Make sure that git is in
This article shows how to setup and secure a SolrCloud cluster with Kerberos and Ranger. Furthermore it outlines some important configurations that are necessary in order to use the combination Solr + HDFS + Kerberos. Tested on HDP 2.3.4, Ambari 2.1.2, Ranger 0.5, Solr 5.2.1; MIT Kerberos Pre-Requisites & Service Allocation You should have a running HDP cluster, including Kerberos, Ranger and HDFS. For this article I am going to use a 6 node (3 master + 3 worker) cluster with the following service allocation. Depending on the size and use case of your Solr environment, you can either install Solr on separate nodes (larger workloads and collections) or install them on the same nodes as the Datanodes. For this installation I have decided to install Solr on the 3 Datanodes. Note: The picture above is only showing the main services and components, there are additional clients and services installed (Yarn, MR, Hive, ...). Installing the S
Problem Statement : when using a local repository, installation fails due to empty baseurls being written to the Ambari repository (even though local repository baseurl values were provided). The installation fails with below error :stderr: Traceback (most recent call last): File "/var/lib/ambari-agent/cache/stack-hooks/before-INSTALL/scripts/hook.py", line 37, in <module> BeforeInstallHook().execute() File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute method(env) File "/var/lib/ambari-agent/cache/stack-hooks/before-INSTALL/scripts/hook.py", line 33, in hook install_packages() File "/var/lib/ambari-agent/cache/stack-hooks/before-INSTALL/scripts/shared_initialization.py", line 37, in install_packages retry_count=params.agent_stack_retry_count) File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__ self.env.run() File "/usr/lib/ambari-agent/lib/resource_management/core/environm
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.