Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
OPC UA is a 100% open source protocol found in many industrial networks. Much like the Apache Foundation stewards the Hadoop project the OPC Foundation https://opcfoundation.org/ is the steward of the OPC UA standard. You can access the standard at https://opcfoundation.org/developer-tools/specifications-unified-architecture for the standard. In addition to the standard itself, the OPC foundation has released implementations of clients, data servers and discovery servers for OPC UA in Java, .NET, and C. The Java repo can be found here OPC UA servers. https://github.com/OPCFoundation/UA-JavaThe following Nifi Service & Processor bundle can be used to retrieve data from OPC UA severs. https://github.com/wadesalazar/NIFI-OPCUA Information on building the bundle will be provided in a separate article To use the service, start by dropping the GetNodeIds onto the palletMost OPC servers provide a properties dialog that provides the information necessary to configure the GetNodeIds proce
Hey Everyone, In this video, I'm going to show you how to run Data Engineering workloads on Cloudera Data Hub. First, we'll deploy a Data Hub cluster with Zeppelin and Spark. Then, I'll show you an example of a PySpark job accessing data on S3. After that, we'll run another PySpark job to access data in Hive. More Information More information on Data Hub https://www.cloudera.com/products/data-hub.html Documentation on CDP https://docs.cloudera.com/
Note: Cloudera does not support antivirus software of any kind. This article contains generic recommendations for excluding HDP components and directories from AV scans and monitoring. It is important to note that these recommendations do not apply to each service, and further, some services will have additional items to exclude which are unique to them. These details will be addressed in individual articles dedicated to the service in question. The three primary locations you will want to exclude from antivirus are:Data directories: These can be very large, and therefore take a long time to scan; they can also be very write-heavy, and therefore suffer performance impacts or failures if the AV holds up writes.Log directories: These are write-heavy.Scratch directories: These are internal locations used by some services for writing temporary data, and can also cause performance impacts or failures if the AV holds up writes.Consider excluding the following directories and all of
Preface Apache HBase is an established NoSQL storage system that has been proven out in sizable production deployments. Although HBase is a key value store, there is a high demand to access data more easily like in SQL. Apache Spark includes great support for basic filtering and insertion of data via SQL though it's SparkSQL offering. The HBase project provides integration with SparkSQL through the work of the HBase Connectors subproject. This article describes the required steps of accessing HBase stored data in SQL fashion. History Several integrations for accessing HBase from Spark have occurred in the past. The first connector was developed by Cloudera Professional Services, which was called Spark on HBase. A version of that early work was contributed to the upstream HBase projects as a feature that the community considered experimental. Cloudera included a derivative of this community version (called hbase-spark) in both CDH 5 and CDH 6. Around the same time, Hortonworks also cam
Problem DescriptionIn Impala, the following error occurs: [ip-10-45-1-222.ec2.internal:21000] default> drop database test cascade;Query: drop database test cascadeERROR: ImpalaRuntimeException: Error making 'dropDatabase' RPC to Hive Metastore: CAUSED BY: TTransportException: nullAttempting the same in Hive displays the following: 0: jdbc:hive2://localhost:10000/default> drop database test cascade;Error: Error while compiling statement: FAILED: SemanticException Unable to fetch table test_wide. null (state=42000,code=40000)0: jdbc:hive2://localhost:10000/default>CauseThis issue occurs when the table in the backend has some null values for a given table or database. You need to clean up those nulls for table names before re-trying the DROP table options. SolutionTo resolve this issue, do the following to remove the Null Entry from the back end database: Note: Ensure you take a Mysql backup. This solution is NOT recommended for production use.
In the use case solved for this webinar, I am a Streaming Engineer at an airline, CloudAir. I need to find, filter and clean Twitter streams then perform sentiment analysis. Score Models in the Stream to Act As the Streaming Engineer at CloudAIR I am responsible for ingesting data from thousands of sources, operationalizing machine learning models as part of our streams, running real-time ELT/ETL processes and building event processing systems running from devices, servers and edge nodes. For today’s use case, one of our Machine Learning engineers had given me a model that was deployed into one of our production Cloudera Machine Learning (CML) environments. I logged into Cloudera, found the model, tested it, and then extracted the information I need to add this model to our streaming ingest flow for the social media team. I have been given permissions to access the airline-sentiment workshop in CDP Public Cloud. I can see all the model
Hey Everyone, In this video, I'll show you how to use experiments in Cloudera AI. Experiments allow a user to run the same script with different inputs easily and compare metrics. This can be useful when performing hyperparameter optimization. In the video, I walk through an extremely simple example where we get the sum of numbers. Then, I run through an example that reflects a more real-world use case. More Information Cloudera Machine Learning - What You Should Know https://community.cloudera.com/t5/Community-Articles/Cloudera-Machine-Learning-What-You-Should-Know/ta-p/292935 More information on Cloudera AI https://www.cloudera.com/products/machine-learning.html Documentation on CDP https://docs.cloudera.com/
Create Kafka topic /usr/hdp/current/kafka-broker/bin/kafka-topics.sh --create --zookeeper `hostname`:2181 --replication-factor 1 --partitions 1 --topic kafka_hive_topic Create Hive table. (update the Kafka broker hostname below) CREATE EXTERNAL TABLE kafka_hive_table (`Country Name` string , `Language` string, `_id` struct<`$oid`:string>) STORED BY 'org.apache.hadoop.hive.kafka.KafkaStorageHandler' TBLPROPERTIES ("kafka.topic" = "kafka_hive_topic", "kafka.bootstrap.servers"="c2114-node2.labs.com:6667"); Download the sample json data. wget -O countries.json https://github.com/ozlerhakan/mongodb-json-files/blob/master/datasets/countries.json?raw=true Produce data into Kafka topic. cat countries.json | /usr/hdp/current/kafka-broker/bin/kafka-console-producer.sh --broker-list c2114-node2.-labs.com:6667 --topic kafka_hive_topic Describe table (to see additional Kafka specific columns) describe kafka_hive_table;+---------------+----------------------+-------------------
GOAL Migrate hive data and metadata Ensure that metadata is updated based on the target clusters Hive metastore versionI have used tpch data for demonstration purposesSteps (Performed on Old Cluster)Take a note of all the directories you need to copy from old to new cluster on HDFS [hive@xlnode-standalone datagen]$ hdfs dfs -ls /apps/hive/warehouseFound 1 itemsdrwxrwxrwx - hive hdfs 0 2017-03-01 23:31 /apps/hive/warehouse/tpch_text_2.db[hive@xlnode-standalone datagen]$ beeline -u "jdbc:hive2://localhost:10000/default" -n hive -p ''WARNING: Use "yarn jar" to launch YARN applications.Connecting to jdbc:hive2://localhost:10000/defaultConnected to: Apache Hive (version 1.2.1000.2.4.3.0-227)Driver: Hive JDBC (version 1.2.1000.2.4.3.0-227)Transaction isolation: TRANSACTION_REPEATABLE_READBeeline version 1.2.1000.2.4.3.0-227 by Apache Hive0: jdbc:hive2://localhost:10000/default> show databases;+----------------+--+| database_name |+----------------+--+| default || tpch_t
Hey Everyone, In this video, we'll show how to create and send streaming data from NiFi into Kafka. This has never been easier, thanks to the Cloudera. We'll show how you can generate mock engine data and stream it in real-time to a Data Hub cluster running Kafka. Once received, you can also see how the data is stored in Kafka using Streams Messaging Manager (SMM) as it waits to be processed by subscribers. More information: More information on Cloudera Data Flow https://www.cloudera.com/products/cdf.html More information on Data Hub https://www.cloudera.com/products/data-hub.html Documentation on CDP https://docs.cloudera.com/
This video describes how to register an HDP cluster in DataPlane: Open the video on YouTube here DataPlane is a portfolio of data solutions that supports the management in discovery of data (whether at-rest or in-motion) and enable an enterprise hybrid data strategy (from data center to the cloud). DataPlane is composed of a core platform (“DP Platform” or “Platform”) and an extensible set of apps (“DP Apps”) that are installed on the platform. Depending on the app which you plan to use, you may be required to install an agent into a cluster to support that app, as well as meet other cluster requirements. The following are documents for reference: Configure Knox Gateway for DataPlane Configure Knox SSO for DataPlane
kafka-python is best used with newer brokers (0.10 or 0.9), but is backwards-compatible with older versions (to 0.8.0). Some features will only be enabled on newer brokers, however; for example, fully coordinated consumer groups -- i.e., dynamic partition assignment to multiple consumers in the same group -- requires use of 0.9+ kafka brokers. Supporting this feature for earlier broker releases would require writing and maintaining custom leadership election and membership / health check code (perhaps using zookeeper or consul). For older brokers, you can achieve something similar by manually assigning different partitions to each consumer instance with config management tools like chef, ansible, etc. This approach will work fine, though it does not support rebalancing on failures. See <http://kafka-python.readthedocs.org/en/master/compatibility.html> for more details.Please note that the master branch may contain unreleased features. For release documentation, please see readthe
Short Description:This article covers how to run a simple producer and consumer in kafka-python (1.4.5) on Kafka 2.0.0, within a kerberized HDP 3.1.0 cluster.ArticleRunning a producer in a kerberized HDP 3.1 Kafka 2.0.0 environment using kafka-pythonCovering pre-requisitesValidating the kerberos setup of kafka on HDP 3.1Running a producer and consumer in kafka-python 1.4.5 on a kerberized kafka clusterPre-RequisitesYou are running a kerberized HDP 3.1.0 cluster with Kafka 2.0.0 installedYou are running one of the following python versions: 2.7 , 3.4 , 3.5 , 3.6 , 3.7Note that in the example from this article, I am using SASL_PLAINTEXT. You will need to modify some parameters if you are using SASL_SSL, as well as add some ssl producer/consumer parameters will need to be specified in your kafka-python code in addition.Please also take note of the current kafka-python compatibility notes:https://kafka-python.readthedocs.io/en/master/compatibility.htmlSteps We will first need to install th
Abstract This article objective is to explain how one can Enrich Ranger Request Context with additional data which can be very useful during policy evaluation. Problem Statement As you all know Ranger Tag based policies are very powerful in implementing data governance using ABAC model, one can define data attributes at Tag level within Atlas and use them during policy condition creation using JavaScript style execution engine, by default you can only access certain context level data like user, group, action, IP address and tag attribute values etc within this javascript logic, but these are not sufficient to define complex authorization policies you see in the enterprise, authorization polices may require additional data like project/usecase user is assigned to, external data which influences policy evaluation etc. How are you going to resolve these kind of situations?Solution This is where Ranger Dynamic Context hook comes handy, Ranger framework allow you to hook your own c
Note: This article was written as of HDF 2.1.2 release which is based off Apache NiFi 1.1.0.NiFi has several processors that can be used to retrieve FlowFiles from a SFTP server. It is important to understand the different capabilities each provides so you know when you should be using one vs another.Lets start with the oldest of the available processors: GetSFTPThe GetSFTP processor is the original processor introduced for retrieving files from a remote SFTP server. The processor has the following configurable properties:Things to know about this processor:1. Disadvantage: This processor does not retain any state. This means it does keep track of which files it has previously retrieved. So if property "Delete Original" is set to "false", this processor will continue to retrieve the same file over and over again.2. This processor is not cluster friendly, meaning in a NiFi cluster it should be set to run on "primary node only" so that every node in the cluster is not competing to pull t
Avro is a popular file format within the Big Data and streaming space. Avro has 3 important characteristics that make it a great fit for both Big Data and streaming applications. Avro files are self describing. Meaning the Avro files can be opened and the schema definition viewed as standard JSON or inspected programmatically by numerous applications. This makes your application code much less brittle as the schema information can be obtained from the incoming Avro file itself rather than manually defining them in your code.Avro can handle a wide range of data type natively. This includes things like complex types, Maps, Arrays, and even raw bytes.Avro supports schema evolution which can come in very handy in streaming systems where the data flowing through the system can change without notice. Now that all of the pros of Avro have been called out there is a problem. In reality we rarely encounter Avro files while ingesting/streaming data. Why is this? Mostly because storing data in th
The Extreme Gradient Boosting or Xgboost has received a lot of attention recently and has been the star of the show across many data science workflows and competitions on Kaggle. It is a decision-tree-based model that creates hundreds of “weak learners,” i.e. trees that do not overfit the data. The final predictions or estimations are made using this group of trees, thereby reducing overfit and increasing generalization on unseen data. For many machine learning use cases, especially in enterprises with exponential amounts of data, Xgboost is a great candidate for distributed ML model building, as it has been proven to scale well linearly along with the number of parallel instances. To achieve this, we can use DASK, an open-source parallel computing framework, inside of CML. While you can use other frameworks like Spark, we chose DASK because it's written natively in Python (Spark is written in Java) and doesn't have the overhead of running JVMs and context switch
The creation of large database schemas can be a very complicated task. In this article, I am going to share how I used NiFi to fully automate a monstrous task. For my project, I needed to create very large Avro Schemas, and corresponding Hive Tables for five or more Data Sources, each having from 400-500+ different CSV columns. Doing this manually would have been a nightmare just to manage the initial schema creations. Managing schema changes an even bigger task over time. My answer was the Schema Generator API using NiFi and Schema Registry. Please reference the following NiFi Template: Schema Generator API Demo Template Schema Generator API The above NiFi template provides the following capabilities: A NiFi API is capable of the following: Accepting POST for a new table, given the tables data columns and data types is in CSV Format Creating Schema Registry Entity (POST: create) Creating Schema Registry Avro Schema (POS
I recently ran into an issue with Zeppelin failing to restart all of a sudden. Upon further inspection, the log file never received any additional data as I tailed it. After looking in the log file for Ambari, I found that it was failing because of a missing interpreter.json file. 019-08-29 17:57:35,701 - get_user_call_output returned (0, u'{"RemoteException":{"exception":"FileNotFoundException","javaClassName":"java.io.FileNotFoundException","message":"File does not exist: /user/zeppelin/conf/interpreter.json"}}404', u'')2019-08-29 17:57:35,703 - Creating new file /user/zeppelin/conf/interpreter.json in DFS2019-08-29 17:57:35,704 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT --data-binary @/etc/zeppelin/conf/interpreter.json -H '"'"'Content-Type: application/octet-stream'"'"' --negotiate -u : '"'"'<a href="<a href="http://removedhostname.info:50070/webhdfs/v1/user/zeppelin/conf/interpreter.json?op=CREATE&overwr
Application deployment has been significantly proliferated by Kubernetes. However, true universal log capture with multi endpoint (downstream) support is lacking. Apache NiFi Stateless provides a possibility to bridge the gap between rapid application deployment and InfoSecs desire to continue to capture and monitor behaviors. What is NiFi Stateless? NiFi-Fn is a library for running NiFi flows as stateless functions. It provides delivery guarantees similar to NiFi, without the need for an on-disk repository, by waiting to confirm receipt of incoming data until it has been written to the destination (source NIFI-5922). Try it out Prerequisites K8s (local or cluster). In this demonstration, Azure Kubernetes Service is used. Some familiarity with K8s & NiFi Assets Used NiFi on K8s https://github.com/sunileman/AKS-YAMLS/blob/master/apache-nifi.yaml Any instance of NiFi will do here. It does not need to run on K8s. NiFi Regist
Spark job fails with below error when byte code for any particular method grows beyond 64KBspark.sql.codegen.wholeStage is enabled by default for internal optimization in Spark2 which can cause these kind of issues in some corner cases.Below is the detailed stack trace for your reference:org.codehaus.janino.JaninoRuntimeException: Code of method "processNext()V" of class "org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIterator" grows beyond 64 KBat org.codehaus.janino.CodeContext.makeSpace(CodeContext.java:949)at org.codehaus.janino.CodeContext.write(CodeContext.java:857)at org.codehaus.janino.UnitCompiler.writeShort(UnitCompiler.java:11072)at org.codehaus.janino.UnitCompiler.load(UnitCompiler.java:10744)at org.codehaus.janino.UnitCompiler.load(UnitCompiler.java:10729)at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3824)at org.codehaus.janino.UnitCompiler.access$9100(UnitCompiler.java:206)at org.codehaus.janino.UnitCompiler$12.visitLocalVariableAcce
I am running a free mongodb instance (DBaaS) on at mlab.com.From NiFi, I can read from and write to MongoDB very easily. It is a great way to pull data out of a large collection of MongoDB databases; in some startups or enterprises a lot of little MEAN apps have been written and have small silos of data locked in MongoDB datasets. These can be streamed into a data lake very easily with NiFi. Once stored in HDFS, the data can be accessed via SparkSQL, Hive, Zeppelin and other tools very easily.An example of a Twitter tweet as a JSON document in a MongoDB collection in a MongoDB database stored in an online NoSQL store.The nifi flow for storing to MongoDB is trivial.A simple flow to read MongoDB JSON records and land them as JSON in HDFS.Here is an example of another source to store to HDFS or MongoDB for example. We use a GetHTTP processor to access an SSL protected resource. There are a few options for storing something to MongoDB. You need to format the mongodb URI correctly
Overview This document provides instructions and background information on how to change the Service accounts in an HDP cluster that is managed by Ambari. Service accounts in Hortonworks Data Platform The Hortonworks Data Platform uses services accounts to provide a common user to perform cluster operations and hold ownership of files and folders for a given service. All major services are assigned services account. The Ambari web interface provides a list of service accounts used by a specific cluster. The table below gives a list of common service accounts. Hadoop Service User Group HDFS hdfs hadoop YARN yarn hadoop MapReduce mapred hadoop, mapred Hive hive hadoop HCatalog/WebHCatalog hcat hadoop HBase hbase hadoop Falcon falcon hadoop Sqoop sqoop hadoop ZooKeeper zookeeper hadoop Oozie oozie hadoop Knox Gateway knox hadoop In the course of a standard Ambari installation the service accounts are created in the local Linux systems and assigned the appropr
This is a short video tutorial to configure cross-realm trust between two secure (kerberized) clusters with different realm names. Cluster 1 (c1232) has the realm name SUPPORTLAB.CLOUDERA.COM and Cluster 2 (c4232) has the realm name COELAB.CLOUDERA.COM. This video explains the steps to set up a cross-realm trust in order to perform distcp operation. Open the video on YouTube here
Hi Everyone, Cloudera AI is just one of the many experiences you can use on the Cloudera. Cloudera Machine Learning allows teams to immediately deploy machine learning workspaces that auto-scale to fit their needs and auto-suspend to save costs by using Kubernetes. All of this is packaged into a portable experience that can be accessed by multiple team members easily to provide a consistent experience across an organization.In today's video, I'll walk you through the different high-level features in CML on CDP public cloud. More information: More information on Cloudera AI https://www.cloudera.com/products/machine-learning.html Documentation on CDP https://docs.cloudera.com/
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.