Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
Introduction to Application Timeline Server All the metrics of applications, either current or historic, can be retrieved from Yarn through Application Timeline Server. This will include pieces of information like the number of map tasks, reduce tasks, counters, etc. Application developers can publish the specific information to the Timeline server via TimelineClient in the Application Master and/or the application’s containers. The information is then queryable via REST APIs. The above said are the artifacts of the present application. Also, generic information of completed applications like queue-name, user information a list of application-attempts that ran for an application, information about each application-attempt can be stored in the Application Timeline Server. Let us delve into a live example of an Application Server. We are using HDP 3.1 cluster in this example. Note: The following is for Hadoop Version: The following is a demons
SynopsisThis tutorial will demonstrate using Spark for data processing operations on a large set of data consisting of pipe delimited text files. Delimited text files are a common format seen in Data Warehousing: Random lookup for a single recordGrouping data with aggregation and sorting the output3 Different techniques will be used to solve the above 2 problems and then compare how they perform against each other: Using RDD’sUsing DataFramesUsing SparkSQLThe purpose of this tutorial is to provide you with code snippets for the above 3 techniques and to demonstrate how RDD’s outperform DataFrames and SparkSQL for certain types of data processing. See below at the end of this article for all code. Also, these tests are demonstrating the native functionality within Spark for RDDs, DataFrames, and SparkSQL without calling additional modules/readers for file format conversions or other optimizations. For joining datasets, DataFrames and SparkSQL are much more intuitive to use, especial
Some customers who upgrade from CDSW 1.5.x to 1.6.x - 1.7.x will have deprecated CDSW jobs which use base image v7 which run containers as root. Base Image v8 now have enhanced security which disallow containers to be ran as root users, but rather as the cdsw user. It is generally advised to re create these jobs again using base image v8 but in certain environments this is not a feasible option. The following instructions will assist you in changing the CDSW base image for your jobs. In this case v7 → v8. To connect to the cdsw database, gain root on the master node and run kubectl exec -ti `kubectl get pods | grep Running | grep '^db' | awk '{print $1}'` -- psql -U sense Confirm the engine id select * from engine_images; Let's first explore which projects are using which engines. There are three tables involved: the "projects" table, the "engine_images" table, and the one that joins the two together, the "projects_engine_images" table. This
One Way Trust - MIT KDC to Active DirectoryMany security environments have strict policies on allowing administrative access to Active Directory. Some performance issues can also require that Hadoop cluster principals for Kerberos are not created directly in AD. To aid in these situations, it may be preferable to use a local MIT KDC in the Hadoop cluster to manage service principals while using a one-way trust to allow AD users to utilze the Hadoop environment. This tutorial describes the steps necessary to create such a trust.The following assumptions are made for this tutorial:An existing HDP clusterCluster has Kerberos enabled with an MIT KDCThe MIT KDC realm name is HDP.HORTONWORKS.COMThe MIT KDC server is named kdc-server.hdp.hortonworks.comThe AD domain/realm is AD.HORTONWORKS.COMStep 1: Configure the Trust in Active DirectoryCreate a KDC definition in Active Directory On the AD server, run a command window with Administrator privileges and create a definition for the KDC of the
This document seeks to explain the configuration steps required to access NiFi UI using Knox SSO and along with Knox proxy. This eliminates the need to access NiFi UI using the regular port 9091 on the NiFi node Configure Knox SSO for NiFi: Create the CA signed Knox certificate: Ensure that Knox certificate is signed with the same CA that NiFi certificates are signed. By default, knox creates a self-signed certificate which needs to be replaced by CA signed cert. Go to knox server and do the following: Copy the CA signed certificate from the knox host as gateway.jks in the knox keystore path. $ cp /etc/security/certs/keystore.jks /var/lib/knox/data-3.1.0.0-78/security/keystores/gateway.jks $ chown knox:knox /var/lib/knox/data-3.1.0.0-78/security/keystores/gateway.jks Knox certificate’s keystore password should match the knox master secret (let us say, it is Hadoop*123) Now, let us change the new knox certificate’s password
As the release of Spark 2.0 finally came, the machine learning library of Spark has been changed from the mllib to ml. One of the biggest change in the new ml library is the introduction of so-called machine learning pipeline. It provides a high level abstraction of the machine learning flow and greatly simplified the creation of machine learning process. In this tutorial, we will walk through the steps on how to create a machine learning pipeline and also explain what is under the hood in the pipeline. (Note: the code in this article is based off the technical preview ml library from Spark 1.6 and with minor change, they should run on Spark 2.0 as well)In this tutorial, we will demonstrate the process to create a pipeline in Spark to predict airline flight delay. The dataset we use contain the airline flights information from 2007 and 2008. We use 2007 data as the training dataset and 2008 data as the testing dataset. We will predict flight delay using 2 classification models, logis
Problem Description (The Crash) : During an HDFS rolling restart, the Standby NameNode (SBNN) failed to load the FsImage, causing the SBNN to crash and interrupting the process of rolling restart (that is actually good news). At this stage, the SBNN is down (if it is shown as “started” in CM, you can manually stop it via the CM Web UI), but the Active NameNode (ANN) is still active and operates the HDFS service properly. This means, The service is still up and the client can issue Read / Write requests over HDFS. Do NOT by any means try to restart the ANN. On the SBNN logs, the following stack trace can be observed: 2020-02-10 13:51:56,845 ERROR org.apache.hadoop.hdfs.server.namenode.FSImage: Failed to load image from FSImageFile(file=/data/nn2/dfs/nn/current/fsimage_0000000007432739660, cpktTxId=0000000007432739660)java.lang.NullPointerException at org.apache.hadoop.hdfs.server.namenode.INodeDirectory.addChild(INod
- We will need to make sure that we have the phoenix client packages installed in the host where we want to run the sqlline utility. If it is not installed then we can install it as following: yum install phoenix -y- Now get the value of "zookeeper.znode.parent" from the Ambari Metrics Collector configurations. In ambari we can get the value from : "Ambari Metrics" -> "config" -> "Advanced ams-hbase-site", Then search for "zookeeper.znode.parent" normally the value will be "/ams-hbase-unsecure" in the AMS configs.- Now we will need to use the "sqlline" utility to connect to it. Here "c6403.ambari.apache.org" is the AMS hostname running in embedded mode and the embedded zookeeper port is 61181/usr/hdp/2.5.0.0-1245/phoenix/bin/sqlline.py c6403.ambari.apache.org:61181:/ams-hbase-unsecure.NOTE: For Kerberized Cluster use the value of "zookeeper.znode.parent" may be "/ams-hbase-secure" so we can connect to it as following:/usr/hdp/2.5.0.0-1245/phoenix/bin/sqlline.py c6403.ambari.ap
With the release of Apache NiFi 1.10 (http://nifi.apache.org/download.html), a new feature is available whereby you can configure a Parquet Record reader to read incoming Parquet formatted files. Apache NiFi Record processing allows you to read and deal with a set of data as a single unit. By supplying a schema that matches the incoming data, you can perform record processing as if the data is a "table", and easily convert between formats (CSV, JSON, Avro, Parquet, XML). Before record processing was added to Apache NiFi, you would have had to split the file line by line, perform the transformation and then merge everything back together into a single output. This is extremely inefficient. With Record processing, we can do everything to a large unit of data as a single step which improves the speed by many factors. Apache Parquet is a columnar storage format (https://parquet.apache.org/documentation/latest/), and the format includes the schema for the dat
I have just started working on updated Apache Tika and Apache OpenNLP processors for Apache 1.5 and while testing found an interesting workflow I would like to share.I am using a few of my processors in this flow: https://github.com/tspannhw/nifi-attributecleaner-processor <- Just updated thishttps://github.com/tspannhw/nifi-nlp-processorhttps://github.com/tspannhw/nifi-extracttext-processor <- this needs a major version refreshhttps://github.com/tspannhw/nifi-corenlp-processorHere is the flow that I was working on.Step 1 - Load Some PDFsStep 2 - Use the built-in Apache Tika Processor to extract metadata from the filesStep 3 - Pull Out the Text using my Apache Tika processorStep 4 - Split this into individual linesStep 5 - Extract out the text of the line into an attribute ((^.*$)) into a sentenceStep 6 - Run NLP to analyze for names and locations on that sentenceStep 7 - Run Stanford CoreNLP sentiment analysis on the sentenceStep 8 - I run my attribute cleaner to turn those att
Introduction Image classification is a powerful tool that can be used to gather insight that is not contained in textual information like (titles, comments, tags, etc...). The objects in the image posted along with a tweet for example may have nothing to do with what was written in the post. In this exercise we will look at how a real time stream of tweets on any topic can be broken down and analyzed in order to classify the main object/subject of a photo by leveraging a deep learning model that has been deployed as a Rest Endpoint via CDSW. Requirements NiFi CDSW Twitter Developer Tokens - developer.twitter.com A topic of interest Setup To get started we need to get a model deployed in CDSW that will serve as our endpoint for predictions of our incoming images. In CDSW Create a project and then add the python code we will use to score any image URL: import jsonimport csvimport keras#import pandas as pandasfrom keras.applications
IntroductionRecently a customer asked me how to change destination of a connection which still contains data, but the destination is stopped. Using NiFi REST Api we can change the flow, here in this article I am trying to capture steps to update destination of a connection using REST API. The requirement around this was to push incoming data to different flows on a timely manner.Prerequisites1) To test this, Make sure HDF-2.x version of NiFi is up an running2) Minimum 3 processors are on the canvas with connection like below:3) Note the destination's uuid [In my case 'PutNext' processor's uuid]4) Note the uuid of the connection that has to be made to the 'PutNext' processor'GET'ing the details of connection1) Execute the below command on your terminal with uuid of the connection:curl -i -X GET http://localhost:8080/nifi-api/connections/dcbee9dd-0159-1000-45a7-8306c28f2786 2) Now Copy the result of the GET curl command and update the below section with uuid of the 'PutNext' processor."d
There are a number of technology trends today that organizations are thinking about to take their business applications to the next level. Cloud adoption and machine learning are two of these. However, one of the biggest changes we’ve observed at our customers is the drive to build and scale out streaming based applications. It’s a given that many organizations have legacy analytics systems that are built on traditional batch ingestion technology. Depending on the use case, that might be fine; but it’s clear that there are many advantages to considering the benefits of a real-time approach to data ingestion, processing, monitoring, and data analysis. Whilst we’re not suggesting that you completely ditch your batch processing systems (well not just yet!), here are some considerations regarding your existing applications that may be designed in this way: By the time you process the data and perform any analysis - is the data already out of date? What is the opportuni
Sometimes when we create our clusters, we use a small amount of Kafka brokers. After some time, there may be a requirement for adding more brokers, usually because of load, performance or high availability. In this article, we provide the considerations and steps to keep in mind after adding new brokers to HDP/HDF clusters. If there is one Kafka broker in a cluster and plans are to add more brokers for high availability, it's important to mention that Kafka has an internal topic called __consumer_offsets. This topic is created by Kafka internally to store the consumer's committed offsets. At this point, if there is only one broker, Kafka will, by default, create this topic using one single replica and 50 partitions. As a result, it's highly recommended to change the number of replicas for this topic when adding more brokers to the cluster. These numbers are handled by the following properties: offsets.topic.num.partitions: The number of partitions for the offset comm
To access the (remote) HDFS of a CDP Data Hub cluster with Spark from within a CML session, you need to provide the hdfs-site.xml and core-site.xml of that specific cluster by copying them into the /etc/hadoop/conf/ folder of your CML session. Below is some sample code that shows how to write data from your CML session to the remote HDFS and read it from there. This will automatically pull the required config files from a defined Data Hub cluster (REMOTE_HDFS_MASTER) and place it in the correct location of your CML session. # This example shows how to write a file to the (remote) HDFS of a CDP Data Hub cluster and read it from there.from __future__ import print_functionimport sys, re, subprocessfrom pyspark.sql import SparkSession#Set the user name which will be used to login to the HDFS Master.USER_NAME = subprocess.getoutput("klist | sed -n 's/.*principal://p' | cut -d@ -f1")#FQDN of the HDFS MasterREMOTE_HDFS_MASTER = '<REPLACE ME with FQDN of remote HDFS Ma
Hey Everyone, Column Masking and Row Filtering are powerful tools in CDP that admins can use to implement security rules without creating dozens of views that must be maintained over time. With Column Masking, admins can block or limit the extent of data specific users or groups are allowed to see. If instead an admin needs to limit the rows a user can see, (for example US users can only see data from the USA) Row Filtering can be used. In this video I walk through an example where we limit the amount of data call center employees are allowed to see. I'll show you how we set up these policies in Ranger and what effect it has on the user. More information: Documentation on CDP https://docs.cloudera.com/ More information on SDX https://www.cloudera.com/products/sdx.html
JDK/Python Changes Causing Ambari Server/Agent Registration IssuesRecent JDK and Python updates have introduced behavior changes that can affect the Ambari Server to Ambari Agent registration process. The Ambari Server and Ambari Agent use TLS to register with each other securely. Recent changes to JDK and Python have been made to increase security by eliminating the use of insecure cipher suites and protocols. These changes ensure that more secure protocols and cipher suites are used by the Ambari Server when setting up its TLS sockets, and as a result, require the Ambari Agent’s Python client to be configured to use later versions of the TLS protocol to communicate with the Ambari Server.You may be affected by these changes if you’ve recently upgraded your Python or JDK version and are noticing that your Ambari Agents are not heartbeating back to the Ambari Server and you see entries that resemble this in your Ambari Agent logs:WARNING 2018-04-24 16:35:10,989 NetUtil.py:124 - Server
Hey everyone, We have a new video for the SDX collection and this time we're talking about Attribute Based Access Control (ABAC). Cloudera Allows you to use ABAC on data access across the entire platform. ABAC allows you to Tag tables and columns and then set access policies based on those tags to allow specific groups or users to access that tagged data. In this video I'll show you how to setup ABAC in CDP using Atlas and Ranger. I'll walk through a couple examples to show you how ABAC can be safer and easier than implementing resource based policies. More information: Documentation on CDP https://docs.cloudera.com/ More information on SDX https://www.cloudera.com/products/sdx.html
When we face high CPU issues, the next step is to identify the application and the thread causing the same. This article explains how to identify the thread/s causing high CPU issues. In order to identify high CPU issues, the first thing we have to do is to identify the PID. This can be done by using a simple "top" command, so if you see a PID constantly using more than 70-100% CPU, then run the following command: top -H -b -n1 -p <PID> The command above will show us all the threads associated with that specific PID. The following is an example: [kafka@c489-node2 conf]$ top -H -b -n1 -p 25910top - 14:21:54 up 84 days, 12:32, 1 user, load average: 6.79, 6.62, 6.69Threads: 145 total, 0 running, 145 sleeping, 0 stopped, 0 zombie%Cpu(s): 18.3 us, 4.0 sy, 0.0 ni, 77.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 stKiB Mem : 20971520 total, 16874368 free, 1725732 used, 2371420 buff/cacheKiB Swap: 5242872 total, 5242872 free, 0 used. 17874368 av
In this article we’ll take an end to end look at the execution of a hive query. We will focus on the query execution in the context of both Hive on Tez, and Hive on Map Reduce. We will assume that our data includes customer data, so we will want to apply granular access control down to the column level, to secure PCI, and PII data. This means we will be using Hive in conjunction with Apache Ranger (the standard open source Apache project for securing data in Hive). Lets begin: 1) Client issues the SQL Query The query will be issued from a client such as a JDBC client, or Beeline. JDBC clients might include any of the standard BI tools such as Tableau. Beeline is the supported CLI for Hive 2 and 3, and it will also use a JDBC connection to connect to the remote Hive Server. The JDBC URL for these connections can be easily retrieved in CDP-Data Warehouse dashboard, as shown in the dashboard below: 
Exploring Apache NiFi 1.10: Stateless Engine and ParametersApache NiFi is now available in 1.10!https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316020&version=12344993You 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+GuidanceRelease Notes: https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version1.10.0Example Source Code: https://github.com/tspannhw/stateless-examplesMore New Features:ParquetReader/Writer (See: https://www.datainmotion.dev/2019/10/migrating-apache-flume-flows-to-apache_7.html)Prometheus Reporting Task. Expect more Prometheus stuff coming.Experimental Encr
Hey everyone, Cloudera Manager's look has been updated with the arrival of the Cloudera. Although CDP is largely configured and controlled through the Control Plane, there are still some options available to you in Cloudera Manager when working with an Environment or in a Data Hub cluster. This quick tour of the different views and menus will hopefully help you align yourself to the new layout. More information: More information on Data Hub https://www.cloudera.com/products/data-hub.html Documentation on Cloudera Data Platform https://community.cloudera.com/t5/Community-Articles/Cloudera-Data-Platform-documentation/ta-p/270222
Over the last fews weeks as customers have started to ramp up their usage of CDP cloud assets (like DataHub, Experiences, etc), I have observed many of the ways they are leveraging on-prem engineering assets (code) in the cloud. The concept of write-once-deploy-anywhere is fundamental to a well designed data strategy. It's NOT a sales pitch. It's a reality for enterprises who have invested in a Modern Data Architecture. However, unlike on-prem where storage and services are tightly coupled, CDP flips that concept on its head. We can now launch services independently and choose only the capabilities we need for the task at hand. For example, streaming use cases typically require NiFi, Kafka, and Spark Streaming. Each of those services would be separate DataHub clusters and scale independently. This article focuses on using PySpark to read from a secured Kafka instance. To be clear, this is one way (not the only way) of using PySpark
Target Audience: It is recommended for those who have some operational experience in Zeppelin. Intention of the article is to give a fair idea on key factors which plays significant role in zeppelin's stability and performance. Disclaimer: This article is based on my personal experience and knowledge. Don't take it as a standard guidelines, understand the concept and modify it for your environmental best practices and use case. A common question everyone has, How many users can use a single zeppelin instance? It may vary from 10 to 50 users, we can't provide a number as an answer since zeppelin is a Multi-purpose Notebook and used for variety of use case with different interpreters and interpreter modes. Below are the factors that needs to be considered while deciding how many users can share/use a single instance in an environment. Often, tweaking these factors can give lot of performance boost, try doing the below checks before considering to scaling out for more instances. For scali
Hi, How do I delete my account in this forum? I don't see any options to delete my account. thanks
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.