Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
Objective With the release of NiFi 1.8.0, flowfiles that remain on a disconnected node can be rebalanced to other active nodes in the cluster via offloading. Note: This tutorial assumes you have already setup a running NiFi cluster. The examples included are for a 2 node NiFi cluster.Environment This tutorial was tested using the following environment and components: Mac OS X 10.11.6 Apache NiFi 1.8.0Offload Nodes TutorialQueue FlowFiles First, generate some queued flowfiles: In the Global Menu at the top left, select "Cluster" to see the Cluster Management dialog: The queued flowfiles are distributed between both nodes in the cluster:Disconnect Node Select Disconnect for one of the nodes: The node is disconnected:Offload Node Select Offload () on the disconnected node. This will stop and terminate all processors and rebalance flowfiles to the other connected nodes in the cluster: Note: Offload would also stop transmitting on all remote process groups if they were in the fl
Hi Everyone, In this video I'll show you how to get started with Cloudera Data Warehouse in CDP public cloud. I'll walk you through activating an environment for use with the Data Warehouse experience, creating a Virtual Warehouse, and then loading in some data. After loading data in, I'll show you how to connect your Virtual Warehouse to Tableau. Although we're talking about Tableau specifically here, the same procedure can be replicated with other BI tools. More information: More information on Data Warehouse https://www.cloudera.com/products/data-warehouse.html Documentation on CDP https://docs.cloudera.com/
Summary Below is an entire summary of different verticals to be considered while securing an Enterprise HDP cluster: FreeIPA / Active Directory for Authentication LDAP - User/Group level Authentication for WebUI & JDBC connections Kerberos - Service level Authentication for Services & JDBC Note: FreeIPA has been recommended here as it is a single solution for LDAP Directory Server, MIT Kerberos, NTP, DNS, Dogtag certificate system, SSSD, and others.Alternatively, Microsoft’s AD (Active Directory) can be used as well Atlas for Data Lineage & Data Governance ( Data Classification, Data Masking - PII, & Data Security) Ranger for Authorization & Auditing Resource-Based security policies on HDP Services TAG Based security policies for data tagged using ATLAS KNOX - SSO(Single Sign-On) and Perimeter Security Encryption (performance impact needs to be considered) Ranger KMS - for Data on Rest Encryption TLS/SSL - for Wire Data Encryption Data Steward Studio - C
I needed to build a quick SQL table from a JSON. There's some online tools, but I'd rather Java this process.It works okay enough, now I am wondering if this would make a good Apache NiFi processorpackage com.dataflowdeveloper.processors.process;import java.util.Iterator;import java.util.Map;import com.fasterxml.jackson.core.JsonFactory;import com.fasterxml.jackson.databind.JsonNode;import com.fasterxml.jackson.databind.ObjectMapper;public class JsonToDDL { /** * * @param tableName * @param json * @return String DDL SQL */ public String parse(String tableName, String json) { JsonFactory factory = new JsonFactory(); StringBuilder sql = new StringBuilder(256); sql.append("CREATE TABLE ").append(tableName).append(" ( "); ObjectMapper mapper = new ObjectMapper(factory); JsonNode rootNode = null; try { rootNode = mapper.readTree(json); } catch (Exception e) { e.printStackTrace(); } Iterator<Map.Entry<String, JsonNode>> fieldsIterator = rootNode.fields(); whi
ObjectiveThis tutorial will walk you through the process of using the PyHive Python module from Dropbox to query HiveServer2. You can read more about PyHive here: PyHivePrerequisites You should already have Python 2.7 installed.You should already have a version of the Hortonworks Sandbox 2.5 setup.ScopeThis tutorial was tested using the following environment and components: Mac OS X 10.12.3Anaconda 4.3.1 (Python 2.7.13)Hortonworks HDP Sandbox 2.5PyHive 0.1.5StepsInstall PyHive and DependanciesBefore we can query Hive using Python, we have to install the PyHive module and associated dependancies. Because I'm using Anaconda, I chose to use the conda command to install PyHive. Because the PyHive module is provided by a third party, Blaze, you must specify -c blaze with the command line.You can read more about Blaze PyHive for Anaconda here: Blaze PyHiveWe need to instal PyHive using the following command: $ conda install -c blaze pyhiveYou will be doing this installation on your local com
This article walks you through the setup of a default 7 node CDP OpDB Data Hub cluster for running Operational workloads in the Public Cloud. In this article, I have used our internal Sandbox environment which was on CDP 7.0.2 release, in which the users are already set up and authenticated via Okta SSO. In this article, I am using AWS for Public Cloud. You can use Microsoft Azure as well. Support for Google Cloud Platform is currently targeted for later this year. Navigate to Okta, or your SSO provider home page, if enabled. Search for CDP Public Cloud tile:Or, click directly on the CDP Public Cloud tile Click Data Hub Clusters in the portal: Click Create Data Hub: Select the following options to create OpDB DataHub Cluster on AWS in the Sandbox environment. Feel free to enter your own Cluster Name under General Settings as shown below: Also, review the Advanced Options. You need not update anything under it, for this exercise. Note the S
Problem Description:Ambari-infra-solr is running fine but using a "ps" command shows a password like below. According to security policy, this is consider as security breach.The issue occurred because the value of property infra_solr_trust_store_password and infra_solr_key_store_password showing cleartext passwords in java Options.$ ps -ef | grep -i 'ambari-infra'1008 25938 1 21 07:25 ?00:00:11 /usr/jdk64/jdk1.8.0_112/bin/java -server -Xms1024m -Xmx2048m -XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 -XX:+CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50 -XX:CMSMaxAbortablePrecleanTime=6000 -XX:+CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintG
When using Ambari Metrics in Distributed Mode,after HDP-3/Ambari-2.7 upgrade, HBase metrics are not emitted due to an issue which will likely be fixed after Ambari-2.7.4. We will see similar kind of messages in AMS Collector Log.Error : 2019-06-10 02:42:59,215 INFO timeline timeline.HadoopTimelineMetricsSink: No live collector to send metrics to. Metrics to be sent will be discarded. This message will be skipped for the next 20Debug Error shows this :2019-06-14 20:35:29,538 DEBUG main timeline.HadoopTimelineMetricsSink: Trying to find live collector host from : exp5.lab.com,exp4.lab.com 2019-06-14 20:35:29,538 DEBUG main timeline.HadoopTimelineMetricsSink: Requesting live collector nodes : http://exp5.lab.com,exp4.lab.com:6188/ws/v1/timeline/metrics/livenodes 2019-06-14 20:35:29,557 DEBUG main timeline.HadoopTimelineMetricsSink: Unable to connect to collector, http://exp5.lab.com,exp4.lab.com:6188/ws/v1/timeline/metrics/livenodes 2019-06-14 20:35:29,557 DEBUG main timeline.HadoopT
Note: The ODBC connector is supported for Windows version of Tableau only. Download Hortonworks driver from the link belowhttps://hortonworks.com/downloads/#addons Chose Hortonworks ODBC Driver for Apache Hive (v2.1.10) from Hortonworks Data Platform Add-Ons section (Tested Windows 64 bit)Download and run/install the driver.Create a Data Source Name in ODBC Administrator: Open Data Sources (ODBC) from Control Panel/Administrative Tools.Highlight "Sample Hortonworks Hive DSN" from System DSN tab and click "Configure" buttonEnter the following info Host(s): <HOST_NAME>Port: <PORT>Database: DefaultMechanism: select "User name password" from dropdownUser name: <USER_NAME>Password: <PASSWORD>Delegation UID:Thrift Transport: select "HTTP" from dropdownClick on HTTP Options HTTP Path: gateway/default/hiveClick on SSL Options Check "Enable SSL" checkboxCheck "Allow Common name host name mismatch" checkbox - This option specifies whether a CA-issued SSL certificate
Apache Airflow is a popular environment for scheduling and monitoring workflows. Running workflows is useful in machine learning for automation of data acquisition or the building and monitoring of machine learning models. This tutorial will take you through the process of setting up Airflow as an Application in CML. This can be very useful in building out testing and prototype pipelines. It also provides a mechanism for calling chains of Models or Jobs. Create a new Python project in CML using a blank template:New Project Open up a Workspace and install Airflow, this can be scripted using the install instructions here. The following shell script and python scripts can be used to automate this process. The installation needs to be performed only once: install.py:import osos.system("./install.sh")install.sh:#!/bin/bash -xexport AIRFLOW_HOME=~/airflow# install from pypi using pippip3 install apache-airflow# initialize the databaseairflow initdb This will install the Air
Running custom applications in CDSW/CML With the recent addition of Analytical Applications, data scientists and data engineers can now deploy their own custom applications and share them with other users. Whilst simple applications may have all necessary code already baked into one script file, more complicated applications may require custom launchers, run flags that are set on execution and parameters that may be instance specific. In order to run these applications, we can leverage the Python subprocess module to run the commands that we would normally have manually entered into the terminal. Getting Started For this demonstration, I will show how to run Tensorboard and Hiplot, where both allow for the visualization of parameters from multiple runs of deep learning models. Both applications rely on a custom command to trigger them as standalone applications: tensorboard for Tensorboard and hiplot for Hiplot. Requirements CDSW 1.7.1 or later versions Python 3 en
IntroductionHive is one of the most common used databases on Hadoop, users of Hive are doubling per year due to the amazing enhancements and the addition of Tez and Spark that enabled Hive to by pass the MR era to a an in-memory execution that changed how people are using Hive.in this blog post, I will show you how to connect squirrel Sql Client to Hive, the concept is similar to any other clients out there as long as you are using the open-source libraries that matches the ones here you should be fine.PrerequisiteDownload Hortonworks Sandbox with HDP 2.2.4, Squirrel SQL ClientStep 1Follow the Squirrel documentation and run it on your Mac or PC.Step 2Follow the Hortonworks HDP Installation on VritualBox, VMware or Hyper-V and start up the virtual Instance.Step 3once you are HDP is up and running, connect it it using SSH as it shows on the console, once you are connected you need to download some JAR files in order to establish the connection.Step 4if you are using MacOS, simply while
Controlling the environment of an application is vital for it's functionality and stability. Especially in a distributed environment it is important for developers to have control over the version of dependencies. In such an scenario it's a critical task to ensure possible conflicting requirements of multiple applications are not disturbing each other.That is why frameworks like YARN ensure that each application is executed in a self-contained environment - typically in a Linux Container or Docker Container - that is controlled by the developer. In this post we show what this means for Python environments being used by Spark.YARN Application DeploymentAs mentioned earlier does YARN execute each application in a self-contained environment on each host. This ensures the execution in a controlled environment managed by individual developers. The way this works in a nutshell is that the dependency of an application are distributed to each node typically via HDFS.This figure s
Hey Everybody, Today I've got a continuation video about Attribute Based Access Control (ABAC) on CDP. ABAC allows you to Tag tables and columns and then set access policies for groups or users that will either grant or deny access to tagged data. At Cloudera Now Jonathan Hsieh showed us how to implement Column Masking with ABAC. So today I decided I would show you how to do the same thing. After that, I'll show you how security policies travel with the data; all because of SDX. If you haven't checked out the first video go watch that first here: https://community.cloudera.com/t5/Community-Articles/How-to-use-ABAC-in-CDP/ta-p/288056 More information: Watch Cloudera Now https://www.cloudera.com/about/events/cloudera-now-cdp.html Documentation on CDP https://docs.cloudera.com/ More information on SDX https://www.cloudera.com/products/sdx.html
What is Cloudera Data Warehouse?Cloudera Data Warehouse is an auto-scaling, highly concurrent and cost effective analytics service that ingests high scale data anywhere, from structured, unstructured and edge sources. It supports hybrid and multi-cloud infrastructure models by seamlessly moving workloads between on-premises and any cloud for reports, dashboards, ad-hoc and advanced analytics, including AI, with consistent security and governance. Cloudera Data Warehouse offers zero query wait times, reduced IT costs and agile delivery. See more information here Key Concepts:In the Cloudera Data Warehouse service, your data is stored in an object store in a data lake that resides in your specific cloud environment. The service is composed of:Database Catalogs: a metadata service associated to a CDP Data Lake which provides the data context for your defined tables and databases within the CDP Enterprise Data Cloud. Virtual Warehouses: compute resources running H
The purpose of this repo is to provide quick examples and utilities to work on a Spark and Hive integration on HDP 3.1.4 Prerequisites: HiveServer2Interactive (LLAP) must be installed, up and running Bash and Python interpreter must be available Ideally, for connections using HTTP transport protocol, in the Ambari -> Hive -> Configs, hive.server2.thrift.http.cookie.auth.enabled should be set to true Set hadoop.proxyuser.hive.hosts=* in the Ambari -> HDFS -> Configs -> Custom core-site section (core-site.xml, or mention at least the LLAP Hosts, HS2 Hosts and Spark client hosts separated by commas). Once the LLAP service is up and running, the next step for this setup requires the following properties to be configured in the Spark client: spark.datasource.hive.warehouse.load.staging.dir=spark.datasource.hive.warehouse.metastoreUri=spark.hadoop.hive.llap.daemon.service.hosts=spark.jars=spark.security.credentials.hiveserver2.enabled=spark.sql.hive.hiveserve
Implementing Streaming Use Case From REST to Hive with Apache NiFi and Apache KafkaPart 1With Apache Kafka 2.0, Apache NiFi 1.8 and many new features and abilities coming out. It's time to put them to the test.So to plan out what we are going to do, I have a high level architecture diagram. We are going to ingest a number of sources including REST feeds, Social Feeds, Messages, Images, Documents and Relational Data.We will ingest with NiFi, filter and process and segment it into Kafka topics. Kafka data will be in Apache Avro format with schemas specified in Hortonworks Schema Registry. Kafka Streams, Spark and NiFi will do additional event processing along with machine learning and deep learning. it will be stored in Druid for real-time analytics and summaries. Hive, HDFS and S3 will store for permanent storage. We will do dashboards with Superset and Spark SQL + Zeppelin. We will integrate machine learning with Spark ML, TensorFlow and Apache MXNet.We will also push back
Cloudera on Public Cloud makes being an administrator for a big data platform even easier, thanks to SDX. Watch me spend a day at a temp position for Aperture Cybertronics as their Data Admin. I'll quickly deploy clusters, grant access to users, and change performance parameters for the Aperture Cybertronics' staff. More information: More information on Data Warehouse https://www.cloudera.com/products/data-warehouse.html Documentation on CDP https://docs.cloudera.com/
Below are some examples of how you would achieve this: Case1: Restrict to users in a single group – In this example, only the users who are members of “scientist” group are only allowed to login to ranger admin. User search filter parameter would look something like this: (&(sAMAccountName={0})(memberof=cn=scientist,ou=groups,dc=hwqe,dc=hortonworks,dc=com)) Case2: Restrict to users in multiple groups – In this example, only the users who are members of either “scientist” group OR “analyst” group are allowed to login to ranger admin. User search filter parameter would look something like this: (&(sAMAccountName={0})(|((memberof=cn=scientist,ou=groups,dc=hwqe,dc=hortonworks,dc=com)(memberof=cn=analyst,ou=groups,dc=hwqe,dc=hortonworks,dc=com)))) Case3: Restrict to given list of users – In this example, only the users whose cn (or common name) starts with “sam r” are allowed to login to ranger admin. User search filter parameter would look something like this: (&(sAMAccount
Issue:Nodemanager log:FATAL nodemanager.NodeManager (NodeManager.java:initAndStartNodeManager(540)) - Error starting NodeManager java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no leveldbjni64-1.6.0.2.4.0.0-169 in java.library.path, no leveldbjni-1.6.0.2.4.0.0-169 in java.library.path, no leveldbjni in java.library.path, No such file or directory] Resolution:a) If you are using Ambari, by default the library files reported as missing in the above error should be present under /var/lib/ambari-agent/tmp/hadoop_java_io_tmpdirYou can find this location by running "ps -ef | grep -i nodemanager" on any of the hosts in the cluster where nodemanager runs successfully and look for this property "-Djava.io.tmpdir"If you have a different location other than the default then make sure the library files are present in that location or copy from another hosts.b) You can also check to remove noexec from /tmp as below and then start node manager via ambari cat /etc/fstabmount -o remo
Hi Again, Today's video is all about Cloudera Data Warehouse (CDW). CDW is one of the many experiences you can use on the Cloudera. Cloudera Data warehouse packages up the projects you may already know and use such as Impala and Hive into a service. This Service runs on Kubernetes giving it the ability to pause, resume, scale up, or down quickly and automatically. The Data Warehouse service allows you to quickly deploy new use cases with the right data at the right time to tackle hard problems while meeting your SLA’s. It does all of this with significant cost savings and little effort on your part. In this first video of the Data Warehouse collection we'll cover the different pieces of the service and layout of the UI. We'll show you the Data Analytics studio (DAS) as well to get you started querying your data warehouse. More information: More information on Data Warehouse https://www.cloudera.com/products/data-warehouse.html Documentation on CDP https://docs
HDFS Balancer is a tool for balancing the data across the storage devices of a HDFS cluster. The Balancer was originally designed to run slowly so that the balancing activities do not affect the normal cluster activities and the running jobs. We have received feedback from the HDFS community that it is also desirable if Balancer can be configured to run faster. The use cases are listed below. Free up the spaces from some nearly full datanodes.Move data to some newly added datanodes in order to utilize the new machines.Run Balancer when the cluster load is low or in a maintenance window, instead of running it as a background daemon.We have changed Balancer for addressing these new use cases. After the changes, Balancer is able to run 100x faster while it still can be configured to run slowly as before. In one of our tests, we were able to bump the performance from a few gigabytes per minute to a terabyte per minute.In addition, we added two new features -- source datanodes and block
This community article assumes that we already have CDH 6.x and Kerberos enabled, in case we have to install Kerberos, please use the document below: https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_sg_intro_kerb.html 1. Install a database In this case, we are using MySQL: https://docs.cloudera.com/csp/2.0.1/deployment/topics/csp-installing_mysql.html 2. Configure the database for schema registry and SMM https://docs.cloudera.com/csp/2.0.1/deployment/topics/csp-configuring-schema-registry-metadata-stores-in-mysql.html 3. Download Schema Registry and SMM parcels SMM https://www.cloudera.com/downloads/cdf/csm.html CSR https://www.cloudera.com/downloads/cdf/csp.html 4. Install the Parcels Install the services in this order: 1. Schema Registry 2. SRM (if no SRM installation, avoid this step) 3. SMM https://docs.cloudera.com/csp/2.0.1/deployment/topics/csp-get-parcel-csd.html 5. Distribute and activate the parcels. In Schema registry point “S
PROBLEMAfter restarting the Zeppelin service from UI I have the following situation: Zeppelin service runs fine – “green” in AmbariGoing to http://<ZEPPELIN_HOST>:9995 - I am gettingChecking out zeppelin-zeppelin-<ZEPPELIN_HOST>.log file I can seeINFO [2017-02-04 07:47:09,081] ({main}ZeppelinServer.java[main]:114) - Starting zeppelin server INFO [2017-02-0407:47:09,084] ({main} Server.java[doStart]:327) - jetty-9.2.15.v20160210 WARN [2017-02-0407:47:09,129] ({main} WebAppContext.java[doStart]:514) - Failed startup ofcontexto.e.j.w.WebAppContext@3b938003{/,null,null}{/usr/hdp/current/zeppelin-server/lib/zeppelin-web-0.6.0.2.5.0.0-1245.war}java.lang.IllegalStateException: Failed to delete temp dir/usr/hdp/2.5.0.0-1245/zeppelin/webapps atorg.eclipse.jetty.webapp.WebInfConfiguration.configureTempDirectory(WebInfConfiguration.java:372) atorg.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:260) atorg.eclipse.jetty.webapp.WebInfConfigurati
When an object gets created in Hive metastore, we expect to see the entry in Atlas almost instantaneously. Often times, might be because of disruption in availability of some of the core components on which Atlas is dependent on or the methodology that was used sometimes to create metastore objects(ex: Directly use metastore API to create Hive objects) where Atlas hook doesn't get invoked, we some times see missing tables in Atlas.This article aims at identifying the missing table entries in Atlas. Once the missing table entries are identified, we can post them to Atlas. The easiest method of doing that will be explained in a later article(Will update the reference link in this article when I am done writing the second article).Step#1: Identify the Hive tables from the metastore.There are multiple ways of gathering this information. The easiest way is to write an SQL over "hive" database to get all the information. In my example, the metastore is based on MySQL. From command line on H
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.