Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
If you'd like to generate some data to test out the HDP/HDF platforms at a larger scale, you can use the following GitHub repository:https://github.com/anarasimham/data-genThis will allow you to generate two types of data:Point-of-sale (POS) transactions, containing data such as transaction amount, time stamp, store ID, employee ID, part SKU, and quantity of product. These are transactions you make at a store when you are checking out. For simplicity's sake, this assumes each shopper only buys one product (potentially greater than 1 in quantity)Automotive manufacturing parts production records, simulating the completion of parts in an assembly line. Imagine a warehouse completing different components of a car, such as the hood, front bumper, etc. at different points in time and those parts being tested for heat and vibration thresholds. This data will contain a timestamp of when the part was produced, thresholds for heat & vibration, values as tested for heat & vibration, quani
resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/bin/yum -d 0 -e 0 -y install mysql-community-release' returned 1. Error: Nothing to doAmbari got the error above.Try install mysql directly:[centos@zzeng-hdp-2 ~]$ sudo yum install mysql-community-releaseLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirror.web-ster.com * extras: mirror.hostduplex.com * updates: mirrors.sonic.netNo package mysql-community-release available.Error: Nothing to dohttps://bugs.mysql.com/bug.php?id=81037Try MySQL 5.7[centos@zzeng-hdp-2 ~]$ sudo rpm -ivh http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpmRetrieving http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpmwarning: /var/tmp/rpm-tmp.hGWJu5: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEYPreparing... ################################# [100%]Updating / installing... 1:mysql57-community-release-el7-8 ################################# [100
How HDFS Apply Ranger Policies Apache Ranger. Apache Ranger™ is a framework to enable, monitor and manage comprehensive data security across the Hadoop platform. The vision with Ranger is to provide comprehensive security across the Apache Hadoop ecosystem. With the advent of Apache YARN, the Hadoop platform can now support a true data lake architecture. Enterprises can potentially run multiple workloads, in a multi tenant environment. Data security within Hadoop needs to evolve to support multiple use cases for data access, while also providing a framework for central administration of security policies and monitoring of user access.Ranger Goals OverviewApache Ranger has the following goals:Centralized security administration to manage all security related tasks in a central UI or using REST APIs.Fine grained authorization to do a specific action and/or operation with Hadoop component/tool and managed through a central administration toolStandardize authorization method across all H
Moving to more advanced application of our basic monitoring flow. Picking up where we left off in the first part of this series: Monitor Temperature & Humidity Sensors with Apache NiFiNow that we have the ability to collect the sensor data using NiFi, we will want to be able to store and process the data using our HDP cluster. The resources at the sensor level would not be enough to provide deep analytics or long term storage. For this reason we can leverage NiFi's site-2-site protocol to send the sensor events directly to our HDF cluster for processing. Start of by adding a remote process group to your NiFi flow at the sensor end and feed the output of ExecuteProcess into this remote processor. Supply the URL of your HDF NiFi instance (same as you would type into browser to get to the design gui).Now move to your remote instance of NiFi on your HDF cluster and create a new input port. replace the execute process processor with the input port. Now when you start the processors on b
hive.aux.jars.path doesn't work if you set it as a Custom property on Ambari Hive configs like hive.aux.jars.path.Please set the property on command line using Hive CLI and beeline. Please specify the jar files on hive-env.sh file from Ambari UI. Example : hive-env tab: HIVE_AUX_JARS_PATH=/usr/hdp/lib/elasticsearch-hadoop-2.2.0-rc1.jarand restart Hive services.
Note - I did receive few complaints about this script that it's failing on new Ambari versions, It happened because of change in kerberos payload. I have modified the script and it works like a charm again for new versions. Please continue to provide me the feedback! 🙂Disclaimer - "Please do not use unless you know what u r doing! Test on Dev. cluster before using on production systems" 🙂Automated Kerberos Installation and Configuration – For this post, I have written a shell script which uses Ambari APIs to configure Kerberos on HDP Single or Multinode clusters. You just need to clone our github repository and modify property file according to your cluster environment, execute setup script and phew!! Within 5-10 minutes you should have your cluster completely secured by Kerberos! Cool isn’t it? Detailed Steps(Demo on HDP Sandbox 2.4):1. Clone our github repository Ambari server in your HDP ClusterNote - This script will install and configure KDC on your Ambari Server.git clone https
Use commodity hardware (Arduino Boards) to monitor temperature and humidity with NiFi.get the source to follow along on git: REPOIn this tutorial we will need some hardware: Arduino BoardDHT11 Sensor (DHT22 will work as well)Jumper wiresIn Arduino IDE select your board and port and enter the following code: #include "DHT.h"#define DHTPIN 2 // what digital pin we're connected to// Uncomment whatever type you're using!#define DHTTYPE DHT11 // DHT 11//#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321//#define DHTTYPE DHT21 // DHT 21 (AM2301)// Connect pin 1 (on the left) of the sensor to +5V// NOTE: If using a board with 3.3V logic like an Arduino Due connect pin 1// to 3.3V instead of 5V!// Connect pin 2 of the sensor to whatever your DHTPIN is// Connect pin 4 (on the right) of the sensor to GROUND// Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor// Initialize DHT sensor.// Note that older versions of this library took an optional third parameter to// tw
How HiveServer2 Apply Ranger Policies Apache Ranger. Apache Ranger™ is a framework to enable, monitor and manage comprehensive data security across the Hadoop platform. The vision with Ranger is to provide comprehensive security across the Apache Hadoop ecosystem. With the advent of Apache YARN, the Hadoop platform can now support a true data lake architecture. Enterprises can potentially run multiple workloads, in a multi tenant environment. Data security within Hadoop needs to evolve to support multiple use cases for data access, while also providing a framework for central administration of security policies and monitoring of user access.Ranger Goals OverviewApache Ranger has the following goals: Centralized security administration to manage all security related tasks in a central UI or using REST APIs.Fine grained authorization to do a specific action and/or operation with Hadoop component/tool and managed through a central administration toolStandardize authorization method acr
Version: HDF 3.1, HDP 2.6.4, PySpark 2.2.0, Python 2.7, Apache NiFi 1.5.I push my power data from a local Apache NiFi 1.5 server over Site-to-Site HTTP to a cloud hosted HDF 3.1 cluster. This cluster has a Remote Input that passes the information on to a version controlled Process Group called "Spark-Kafka-Streaming". Once inside, I set a schema name and data type then push the data to Kafka 1.0 hosted in HDF 3.1. The PublishKafkaRecord_1.0 settings are super easy. We use the JsonTreeReader and the supplied schema to read the JSON file into records. I chose to use the JsonRecordSetWriter to push JSON out. I could have easily done Apache Avro or CSV or another format. I chose JSON as it is easy to work with in Apache Spark and good for debug display.This method and code will work for several versions forward, but I cannot confirm for previous versions.This article is how to connect Apache NiFi with Apache Spark via Kafka using Spark Streaming. The example code is in
User and Groups significance in HDFSBefore we even start lets take a look back on how user and groups are handled in Linux. The key take away from the previous articles werelets Look at the various relationship that exists1. Every group has a group id.2. Every user has a user id3. In linux its not possible to have user without a group id.(by default when a user is created , it has a group with same name)4. A user can have one primary group and multiple secondary groups.5. A group can have multiple users.6. Authentication is done based on username and password.7. Authorization is done based on groups as unix follow POSIX permission for user : group : others8.A user cannot exist without a group.9. A group can exist without a user.10. A file can only have usernames and groups which are part of the Linux OS (Local or Remote service)11. A file ownership can never be changed to a non existent user ( Create a file and try chown XXXXXX fileName ).12. Linux is applying authorization policy
This is a detailed walk-through of configuring a service account in Google Cloud Platform and a cloud credential in Cloudbreak. Once these are done, Cloudbreak can spin up your clusters in GCP easily and quickly.High Level Steps Enable Compute Engine API in GCP projectCreate service account with required roles in GCP projectCreate credential for GCP service account in CloudbreakYou will need a GCP account that you have full rights to administer service accounts and a Cloudbreak instance. The Cloudbreak can be running anywhere, as long as it has network access to GCP. My example is running on an internal OpenStack cluster.Google Cloud Platform ConsoleLog into the GCP Console at https://console.cloud.google.comOn the main dashboard page, you will find the Project ID. You will need this to define your credential in Cloudbbreak in a later step.GCP - APIs DashboardGo to the Service Accounts screen by (1) clicking the menu in the top left, (2) hovering over APIs and Services, and (3) Cl
The two most important aspect of security is1. Authentication 2. AuthorizationAuthentication : the process of ascertaining that somebody really is who he claims to be. (who are you) Authorization : the process of verifying that you can access to something. (Are you allowed to access the resource)Lets take example of a user logging into a Linux machine (ssh / terminal login). One needs to authenticate himself username and password thus verifying he is the person who he claims to be . The same user might not be authorized to access a file as he dosent have enough permissions to read/write on the file.The idea can be extended to even other services like, one can login (authenticate ) into booking.com if he has a profile, but is not authroized to change the prices of the flights, only admins are allowed to do that. Hence authentication and authorization play a key role in determining the security aspects of a service.Lets see How authentication and authorization are implemented in L
ISSUE : In Ambari 2.4.x, Falcon Web UI is inaccessible(HTTP 503 error) and Ambari Service Check for Falcon fails: "ERROR: Unable to initialize Falcon Client object" Snippet of error from falcon logs2017-01-04 14:08:56,390 INFO - [main:] ~ Initializing graph db (MetadataMappingService:143) 2017-01-04 14:08:56,438 ERROR - [main:] ~ Failed startup of context org.mortbay.jetty.webapp.WebAppContext@96a75da{/,/usr/hdp/current/falcon-server/server/webapp/falcon} (log:87) Caused by: org.apache.falcon.FalconException: java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [com.thinkaurelius.titan.core.TitanFactory]. Caused by: java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [com.thinkaurelius.titan.core.TitanFactory]. Caused by: java.lang.reflect.InvocationTargetException Caused by: java.lang.NoClassDefFoundError: com/sleepycat/je/LockMode Caused by: java.lang.ClassNotFoundException: com.sleepycat.je.LockMode 2017-01-04
Installing Hue can be tricky as the latest version Hue 4.1.0 is available only as source code and Compiling it requires a lot of dependencies and development libraries for which there is very little information available on the InternetThe best document that I could find as reference was Hue 4.1.0 Installation Guide, though there are a few packages missing in the docAfter series of trial and error came up with the below steps to Compile / Install Hue successfully Install JDK, Hue dependencies, and development Libraries$ sudo yum -y update$ sudo yum install -y git gcc libxml2-devel libxslt-devel cyrus-sasl-devel cyrus-sasl-gssapi mysql-devel python-devel python-setuptools sqlite-devel ant gcc-c++ *sasl* krb5-devel libtidy openldap-devel wget libffi-devel gmp-devel java-1.8.0-openjdk Install Apache Maven from public Fedora repository$ sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo$ sudo sed -i s/\$releas
BackgroundAfter Kerberos HDP/HDF cluster, some native admin UI will return "401 Authentication required".For example, Ambari Infra Solr Admin UIThis is because the web UI is configured for SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) to extend Kerberos to HTTP. Client must have a valid Kerberos ticket and send by browser.Mac Kerberos Client ConfigurationKerberos software is installed by default in Mac OS, but need to add configure file to access your KDC server.$ sudo vi /Library/Preferences/edu.mit.Kerberos[domain_realm] .hortonworks.com = "HORTONWORKS.COM" hortonworks.com = "HORTONWORKS.COM"[libdefaults] default_realm = "HORTONWORKS.COM" dns_fallback = "yes" noaddresses = "TRUE"[realms]HORTONWORKS.COM = { admin_server = "ad.hortonworks.com" default_domain = "hortonworks.com" kdc = "ad.hortonworks.com" }Firefox Configurationtype about:configsearch negotiate-authOption1 Command Linecommand line to init a kerberos ticket$ kinit hadoopadmin@HORTONWORKS.COMhadoop
Issue: When running hive shell in a docker you will be getting a message "mbind: Operation not permitted" printed on the console but the operations will pass..Root Cause: mbind syscall is used for NUMA (non-uniform memory access) operations which is blocked by docker by default. But in hive opts there is an option which specifies '+UseNUMA'..Resolution:Go to Ambari -> Hive -> Configs -> Advanced 1) Remove '-XX:+UseNUMA' from 'hive.tez.java.opts'.2) Remove '-XX:+UseNUMA' from hive-env template.Hope this helps 🙂
Lets start with having a quick understanding of a file saved in Linux OS1. vim /etc/fstab to know the filesystem of the disk.2. create and save a file using vim. 3. filefrag -v filename Facts to appreciate. 1. Filefrag commands will give you an idea of how many blocks( OS blocks formed by grouping sectors) the file occupies. block is the minimum data that can be read by the OS . Data is fetched from hard disk in multiples of the blocks. 2. The blocks might not be contiguous( can you corelate something to HDFS).3. The filesystem has no idea about a record saved in the file or the format of the file. For the filesystem file is a sequence of bytes. 4. Number of blocks occupied on Linux FileSystem is filesize/filesystem block size , which mostly is file size/ 4096 for ext3/4. 5. Record is a logical entity which, only the reader and writer of the file and can understand. Filesystem has no clue about the same.6. We have standardized the process of identifying a record with file format
IntroductionThis post enumerates the steps necessary to setup Atlas development environment using IntelliJ on Mac and Windows.This setup uses the BerkeleyDB for backend and embedded Solr as index engine.Setup with other backend and index engine variations are similar but will involve additional setup.PrerequisitesThese should be present on your machine before you begin: Git for cloning repository. The command Git Shell is useful if you are switching between Mac and Windows.Maven for performing command line build.IntelliJ Community Edition or higher.BerkeleyDB as backend.Code Base SetupDownload code base from GitHub location. Clone it under c:\work\Apache\atlas on Window and ~/Apache/atlas on Mac.Change directory to the location above and initiate a build (using mvn clean install package).Deploy Directory SetupCreate a directory say Deploy (say c:\work on Windows or ~/work on Mac) with a structure below it: conf Copy atlas-application.properties, users-credentials.properties, policy-st
Summary: The release of HDF 3.1 brings about a significant number of improvements in HDF: Apache Nifi 1.5, Kafka 1.0, plus the new NiFi registry. In addition, there were improvements to Storm, Streaming Analytics Manager, Schema Registry components. This article shows how you can use ambari-bootstrap project to easily generate a blueprint and deploy HDF clusters to both either single node or development/demo environments in 5 easy steps. To quickly setup a single node setup, a prebuilt AMI is available for AWS as well as a script that automates these steps, so you can deploy the cluster in a few commands. Steps for each of the below option are described in this article:A. Single-node prebuilt AMI on AWSB. Single-node fresh installC. Multi-node fresh install A. Single-node prebuilt AMI on AWS:Steps to launch the AMI 1. Launch Amazon AWS console page in your browser by clicking here and sign in with your credentials. Once signed in, you can close this browser tab. 2. Select
In this article, we will have a walk through of integrating LDAP with NiFi Registry. The precondition for LDAP to work with NiFi-Registry is that SSL need to be enabled. This article also covers the "How To" enable SSL for NiFI Registry. For the sake of simplicity, I am using self signed certificates (JKS, using keytool). Steps for creating self signed certificates are as below :-Generate KeyStorekeytool -genkey -keyalg RSA -validity 3650 -alias <alias_name> -keypass <pwd> -storepass <pwd> -dname "cn=hostname, ou=home, o=ak, c=us" -keystore nifi_reg_keystore.jks Export a certificate with the public keykeytool -export -alias <alias_name> -file nifi_reg.cer -storepass <pwd> -keystore nifi_reg_keystore.jksGenerate TrustStorekeytool -import -noprompt -alias nr-c0 -file nifi_reg.cer -storepass changeitchangeit -keystore nifi_reg_truststore.jks Below, is a representation of the NiFi Registry UI with default http and anonymous user login. Now we will login to Am
From Ambari 2.4, there is a built-in service in Ambari called Ambari Infra, which is used to create infrastructure (Solr) for Ranger, Atlas or Log Search.In case of real time indexing or sub second responses is not a must, Ambari Infra Solr collections can be configured to store their indices on HDFS. In order to achieve that you will need the following steps:1. Create a folder on hdfs with the proper permissions:hdfs dfs -mkdir /user/infra-solrhdfs dfs -chown infra-solr:hdfs /user/infra-solr2. Edit solrconfig.xml of your collection where you want to use HDFS to store the indices, change the following section:<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"></directoryFactory>to:<directoryFactory name="DirectoryFactory" class="solr.HdfsDirectoryFactory"> <str name="solr.hdfs.home">hdfs://<namenode_host>:8020/user/infra-solr</str> <str name="solr.hdfs.confdir">/etc/hadoop/conf</str
In previous article of the sereies, Adding a New Telemetry Data Source to Apache Metron, we walked through how to add a new data source squid to Apache Metron. The inevitable next question is how I can enrich the telemetry events in real-time as it flows through the platform. Enrichment is critical when identifying threats or as we like to call it "finding the needle in the haystack". The customers requirement are the following The proxy events from Squid logs needs to ingested in real-time.The proxy logs has to be parsed into a standardized JSON structure that Metron can understand.In real-time, the squid proxy event needs to be enriched so that the domain named are enriched with the IP informationIn real-time, the IP with in the proxy event must be checked against for threat intel feeds.If there is a threat intel hit, an alert needs to be raisedThe end user must be able to see the new telemetry events and the alerts from the new data source.All of this requirements will need to be
PROBLEM: Created a Phoenix Table on top of existing Hbase table, the phoenix table is not working as expected or is not needed now, need to delete Phoenix table but not the existing Hbase table as it has valid data.CONSTRAINT : Simple dropping of table from Phoenix shell would delete Hbase table too. SOLUTION : Step 1: Delete Phoenix table entry from SYSTEM.CATALOG as follows :delete from SYSTEM.CATALOG where TABLE_NAME='table_name';Step 2 : Restart the region server which hosts SYSTEM.CATALOG to clear metadata cache which may still not allow creating same named table from Phoenix. Note : This approach may not work well if there are indexes or views on top of this table as we would end up corrupting catalog table.You may also try snapshotting existing Hbase table , dropping the table completely from Phoenix and then cloning / restoring the Hbase table from snapshot.
Short Description Storm Service Check fails with a Kerberos error after performing an Ambari upgrade in a cluster that had Metron installed. ArticleIn a cluster where Metron was removed before upgrading Ambari server, the following error can occur when performing a Service Check in Storm service: Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: The TGT found is not renewable at org.apache.storm.security.auth.kerberos.AutoTGT.populateCredentials(AutoTGT.java:1) at org.apache.storm.StormSubmitter.populateCredentials(StormSubmitter.java:3) at org.apache.storm.StormSubmitter.submitTopologyAs(StormSubmitter.java:748) at org.apache.storm.StormSubmitter.submitTopology(StormSubmitter.java:590) at org.apache.storm.StormSubmitter.submitTopology(StormSubmitter.java:239) at storm.starter.WordCountTopology.main(WordCountTopology.java:492) Caused by: java.lang.RuntimeException: The TGT found is not renewable at org.apache.storm.security.auth.kerberos.AutoTG
Apache NiFi provides a great depth of information about each component on the canvas. Stats are collected for the number of FlowFiles in, the number of FlowFiles out, how many bytes were read or written, how long it took, etc. However, these stats that are displayed here are all "stock metrics." These metrics are the same for each processor. There are times when we may want to expose other metrics for a custom processor.One way that we can do this in NiFi is through the use of counters. The counters are a lesser-known feature of NiFi, and until recently have been pretty limited in their usefulness. This is due to the fact that upon startup, NiFi sets all counters to 0 and as the system runs, these counters are monotonically increasing. They count how many times something has happened since NiFi started. To see these counters, we can go to the drop-down menu in the top-right corner of the NiFi UI and click "Counters."We then are provided with a list of counters that have been registered
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.