Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
Edge Data Processing with Jetson Nano Part 3 - AI Integration Source: https://github.com/tspannhw/minifi-jetson-nano Part 1: https://www.datainmotion.dev/2019/07/edge-data-processing-with-jetson-nano.html Part 2: https://www.datainmotion.dev/2019/07/edge-processing-with-jetson-nano-part-2.html Cloudera Edge Management Top Level NiFi Flow Receiving MiNiFi Agent Messages Overview of our Apache NiFi Flow For Processing We format a new flow file to send to CDSW in JSON to the CDSW Job Environment We Run Apache MXNet 1.3.1 (Java) SSD Against the Web Camera Image Extract The Values From the FlowFile to Send to the Spark Job Our JSON Results From the Logs Log data has successfully arrived, consistent JSON rows are grabbed as they are written to the
Customers at times have users that utilized CDSW in the past but are no longer in the organization. Unfortunately there are limitations within CDSW to 1) Delete those users, and 2) Delete projects associated with those users. As of CDSW 1.6 administrators can only "disable" users. Deleting projects associated with the users is a bit convoluted but possible. This requires access to the underlying PSQL database within CDSW & Kubernetes. To accomplish the deletion of projects associated with a user (in this example let's say we are removing projects from /var/lib/cdsw/current/projects/projects/0/) you will have to create two queries to execute this. 1) Create query to find which users are banned/disabled within CDSW. # kubectl exec -it $(kubectl get pods -l role=db -o jsonpath='{.items[*].metadata.name}') -- psql -P pager=off -A -t -U sense -c "SELECT username FROM users where banned='t'" >> /tmp/list_usersdisabled.tx2) Cr
Ranger audit logs are stored in HDFS for long term storage, and can grow to a significant size after while. It might be useful to turn those logs into Hive tables using ORC as the backing store for compression and query speed. This will allow you to connect any external tool via ODBC to Hive and view your audit logs as SQL tables. Each plugin for Ranger that you have enabled will log to a different sub directory within /ranger/audit on HDFS: [hdfs@ip-10-0-1-75 ~]$ hdfs dfs -ls /ranger/audit/Found 2 itemsdrwx------ - hdfs hdfs 0 2019-10-10 14:19 /ranger/audit/hdfsdrwxr-xr-x - hive hive 0 2019-10-10 14:12 /ranger/audit/hiveServer2 And then within each of these, you will have a sub-directory for audit logs for every day: [hdfs@ip-10-0-1-75 ~]$ hdfs dfs -ls /ranger/audit/hdfsFound 16 itemsdrwx------ - hdfs hdfs 0 2019-09-25 09:55 /ranger/audit/hdfs/20190925drwxr-xr-x - hdfs hdfs 0 2019-09-26 00:00 /rang
IntroductionTransparent Data Encryption (TDE) encrypts HDFS data on disk ("at rest"). It works thorough an interaction of multiple Hadoop components and security keys. Although the general idea may be easy to understand, major misconceptions can occur and the detailed mechanics and many acronyms can get confusing. Having an accurate and detailed understanding can be valuable, especially when working with security stakeholders who often serve as strict gatekeepers in allowing technology in the enterprise.Transparent Data Encryption: What it is and is notTDE encrypts HDFS data on disk in way that is transparent to the user, meaning the user accesses the HDFS data encrypted on disk identical to accessing non-encrypted data. No knowledge or implementation changes are needed on the client side and the user sees the data in its unencrypted form. TDE works at the file path or encryption zone level: all files written to designated paths (zones) are encrypted on disk.The goal of TDE is to prev
This video describes how to configure HiveServer 2 HA and how Load Balancer works with HiveServer 2. Open the video on YouTube here
This article will explain how to setup a static edge node as an entry point to a Hadoop cluster deployed using Cloudbreak. This setup it's not supported by default, because it's not possible to join external vm's in a cluster deployed with Cloudbreak, but in the next article you will find the steps in order to do it. Cloudbreak is a manager/operator tool to deploy clusters that provides some extra features like scaling, start/stop resources etc in a simple UI. It's a good tool that is growing and sometimes could be a bit rigid and for some core changes on the cluster you will need to deploy a new cluster, for example to change the type of VM or change the HDP version etc. For this reason in our case we decided to setup a static IaaS virtual machine as edge node, that give us a single and immutable entry point to the cluster, this will never change even we will deploy a new cluster. With this and Knox server we have the ability to deploy a new cluster and then make the switch wi
This video is about Hive Session, the timeout values and their effect on the Hive Services load. The video covers the following topics: Understanding Hive session and operations. Timeout parameters for Hive session and operations. Effect of idle sessions. Tuning the timeout values. Open the video on YouTube here
Using NiFi REST API for unsecured cluster is straight-forward like below:[root@<nifi-host> ~]# curl -v -X GET http://<nifi-host>:<port>/nifi-api/flow/current-user* About to connect() to <nifi-host> port <port> (#0)* Trying <IP address>...* Connected to <nifi-host> (<IP address>) port <port> (#0)> GET /nifi-api/flow/current-user HTTP/1.1> User-Agent: curl/7.29.0> Host: <nifi-host>:<port>> Accept: */*>< HTTP/1.1 200 OK< Date: Fri, 30 Jun 2017 22:15:09 GMT< X-Frame-Options: SAMEORIGIN< X-Frame-Options: SAMEORIGIN< X-Frame-Options: SAMEORIGIN< Cache-Control: private, no-cache, no-store, no-transform< Server: Jetty(9.4.3.v20170317)< Vary: Accept-Encoding, User-Agent< Date: Fri, 30 Jun 2017 22:15:09 GMT< Date: Fri, 30 Jun 2017 22:15:09 GMT< Content-Type: application/json< Content-Length: 439<* Connection #0 to host <nifi-host> left intact{"identity":"anonymous","ano
Source Code: https://github.com/tspannhw/flume-to-nifi Consume / Publish Kafka And Store to Files, HDFS, Hive 3.1, Kudu Consume Kafka Flow Merge Records And Store As AVRO or ORC Consume Kafka, Update Records via Machine Learning Models In CDSW And Store to Kudu Source: Apache Kafka Topics You enter a few parameters and start ingesting data with or without schemas. Apache Flume had no Schema support. Flume did not support transactions. Sink: Files Storing to files in files systems, object stores, SFTP or elsewhere could not be easier. Choose S3, Local File System, SFTP, HDFS or wherever. Sink: Apache Kudu / Apache Impala Storing to Kudu/Impala (or Parquet for that manner could not be easier with Apache NiFi). Sink: HDFS for Apache ORC Files When completes, the Conv
Oracle SQL Developer is one of the most common SQL client tool that is used by Developers, Data Analyst, Data Architects etc for interacting with Oracle and other relational systems. So extending the functionality of SQL developer to connect to hive is very useful for Oracle users. I found this original article on oracle’s website and made some additions based upon the issues that I ran into. Here is the original linkOracle SQL Developer support for HiveHere are the steps that i followedStep1) For the latest version of SQL developer you would need JDK 1.8 so you would need to install that on your mac and also change the JAVA_HOME path so that it points to JDK 1.8.Download JDK 1.8Step2) Download the latest version of Oracle SQL developer for mac, from oracle and unzip itOracle SQL Developer DownloadMove the SQL Developer file to your application, so that it is available for you. Now when you try to open up Oracle SQL developer on mac, it may not open. For me it showed up in the tray, bl
One of the first cases we get to see with Hbase is loading it up with Data, most of the time we will have some sort of data in some format like CSV availalble and we would like to load it in Hbase, lets take a quick look on how does the procedure looks like:lets examine our example data by looking at the simple structure that I have got for an industrial sensor id, temp:in,temp:out,vibration,pressure:in,pressure:out 5842, 50, 30, 4, 240, 340First of all make sure Hbase is started on your Sandbox as followingCreating the HBase Table Login as Root to the HDP Sandbox and and switch to the Hbase User root> su - hbase Go to the Hbase Shell by typinghbase> hbase shell Create the example table by typinghbase(main):001:0> create 'sensor','temp','vibration','pressure' lets make sure the table was created and examine the structure by typinghbase(main):001:0> list now, exit the shell by typing 'exit' and lets load some dataLoading the Data lets put the hbase.cs
ENVIRONMENT and SETUPI did test the below solution withHDP-2.6.0.3-8Ambari 2.5.0.3To configure this environment, follow up the steps defined for HDP 2.5 (Zeppelin 0.6) - https://community.hortonworks.com/articles/81069/how-to-enable-user-impersonation-for-sh-interprete.htmlAs the Zeppelin UI -> Interpreter window has changed, follow this up.I. Default config looks like below: II. Do the following change:- edit the interpreter - change The interpreter will be instantiated from Globally to Per User and shared to isolated - then you will be able to see and select User Impersonate check-box - also removezeppelin.shell.auth.typezeppelin.shell.keytab.locationzeppelin.shell.principal III. Changed config looks like below:After Saving the changes and running below as admin%shwhoamiWe get
The key thing to remember is that in Spark RDD/DF are immutable. So once created you can not change them.However there are many situation where you want the column type to be different.E.g By default Spark comes with cars.csv where year column is a String. If you want to use a datetime function you need the column as a Datetime. You can change the column type from string to date in a new dataframe.Here is an example to change the column type.val df2 = sqlContext.load("com.databricks.spark.csv", Map("path" -> "file:///Users/vshukla/projects/spark/sql/core/src/test/resources/cars.csv", "header" -> "true"))df2.printSchema()val df4 = df2.withColumn("year2", 'year.cast("Int")).select('year2 as 'year, 'make, 'model, 'comment)df4.printSchema
PROBLEM: Oozie jobs gets stuck in PREP modeROOT CAUSE : Below are the possible reasons:1. Wrong Namenode host/port in job.properties2. Wrong Resource manager host/port in the configurations.If there are lot of jobs stuck in the RESOLUTION : 1. Stop Oozie server from Ambari.2. Backup Oozie DB is cluster is production.3. Remove entries for stuck jobs from below tablesWF_JOBSCOORD_JOBSWF_ACTIONS4. Start Oozie server
delete-scripts.zipAttached are scripts you can use for ORACLE, PSQL, and MYSQL for deleting users. Directions to how these scripts work are included in the script.Good practice is to make sure to backup your db before attempting to use and test these scripts.
httpfs is needed to support a centralized WebHDFS interface to an HA enable NN Cluster. This can be used by Hue or any other WebHDFS enabled client that needs to use a cluster configured with a High-Availability Namenode.The installation is a piece of cake:yum install hadoop-httpfsBut that's were the fun ends!!! Configuring is a whole other thing. It's not hard, if you know the right buttons to push. Unfortunately, the buttons and directions for doing this can be quite aloof.The httpfs service is a tomcat application that relies on having the Hadoop libraries and configuration available, so it can resolve your HDP installation.When you do the installation (above), a few items are installed./usr/hdp/2.2.x.x-x/hadoop-httpfs/etc/hadoop-httpfs/conf/etc/hadoop-httpfs/tomcat-deploymentConfiguring - The Short VersionSet the version for current with hdp-select set hadoop-httpfs 2.2.x.x-xFrom this point on, many of our changes are designed to "fix" the "hardcoded" implementations in the dep
This article is related to creating SNMP alerts through the custom script and how to troubleshoot. Install SNMP on sandbox or local environment.yum install net-snmp net-snmp-utils net-snmp-libs –y Change the script /etc/snmp/snmptrapd.conf file and include "disableAuthorization yes".# Example configuration file for snmptrapd## No traps are handled by default, you must edit this file!## authCommunity log,execute,net public# traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script colddisableAuthorization yes To understand why this change required, Refer to the Access Control section of this link. Copy APACHE-AMBARI-MIB.txt file to /usr/share/snmp/mibs folder. cp /var/lib/ambari-server/resources/APACHE-AMBARI-MIB.txt /usr/share/snmp/mibs Note: Ensure it has proper permission Startup a simple SNMP trap daemon to log traps to the /tmp/traps.log file for testing purposes.nohup snmptrapd -m ALL -A -n -Lf /tmp/traps.log & Invoke a test trap to ensure that the snmptrapd
1 OverviewIn this article I am going to talk about three main integration pieces between SAP and Hadoop. First I will cover the SAP integration products and how they can be used to ingest data into hadoop systems. Second, I am going to talk about SAP hana and how that integrated with hadoop. I will provide a overview of various methods that can be used to push/pull data from SAP Hana as well as aspects around data federation and data offload architecture. Third I am going to touch on topic around how SAP BI tools integrate with Hadoop and talk briefly about SAP Hana Vora.2 Hadoop using SAP Data Integration componentsSAP has three primary products around data integration. Based upon their integration pattern, here is a brief overview of these productsBatch processing SAP Data services aka BODS (Business Objects Data Services) is the batch ETL tool from SAP. SAP acquired this product as part of its Business Objects acquisition.Real time ingestion SLT (SAP Landscape Transformation) Repl
Short Description:This article will help to renew kerberos ticket with Falcon. ArticleIt has been seen that Falcon server fails to perform operations after kerberos credentials expire and following exception occur. Caused by: org.apache.hadoop.security.authentication.client.AuthenticationException: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt) To solve this issue, we must set following parameter in Falcon startup.properties through ambari-ui to revalidate kerberos credentials. Value for this properties is in seconds.Stop Falcon serverSet parameter : *.falcon.service.authentication.token.validity=<value in seconds>Start Falcon serverNote: This article is for version greater than HDP-2.5.* .
OBJECTIVE:Add more useful service-level metrics for NiFi in Cloudera Flow Management (CFM)/Cloudera Data Flow. OVERVIEW:The default install of early releases of Cloudera Flow Management (CFM) includes only a few basic metrics for NiFi in the Cloudera Manager dashboards. This article explains how to add several more service and host level metrics that improve the performance monitoring in Cloudera Manager 5.x or 6.x. PREREQUISITES:CFM (CDF) 1.0.1 or later and CM 5.16 or CM 6.2 or later ADDING NiFi METRICS TO CM Basic Metrics1. From the NiFi status page in Cloudera Manager, select “Chart Builder” from the “Charts” menu.2. Insert one of the following SELECT statements in the query text box: NiFi Memory SELECT total_mem_rss_across_nifi_nodes, total_mem_virtual_across_nifi_nodes WHERE category = SERVICE and entityName = $SERVICENAME CPU Rates SELECT cpu_user_rate_across_nifi_nodes, cpu_system_rate_across_nifi_nodes WHERE entityName = $SERV
When developing NiFi flows with python, it's sometimes a headache to build customized configurations for your processors. Every processor is different and has many different parameters to customize depending on your flows needs and requirements. To accelerate development, I use the development tools in my chrome browser to help accelerate development by extracting the config files from the rest calls the NiFi application makes. Open your browser and point it to your NiFi instances. Once in the UI right click on the gray bar and select "inspect".This will open up a development view of the UI. Next, click on the network tab to view and debug network activity. In this view, all network related traffic will be displayed here. Notice you can see all the rest calls that the NiFi is making behind the scene. This can be quite helpful when customizing processors. When you drag a processor on the canvas and parameterize it, a rest call is made that creates
Building Basic Flows with Nipyapi If building flows in NiFi wasn't easy enough, developers can use the Nipyapi library to build flows with python. With this model, one can programmatically build flows without having access to the canvas. This comes in handy when deploying highly configurable and repeatable flows. In this simple example below, we'll walk through using the python libraries to build a very simple flow whereby we use the GenerateFlowFile processor to write data to the local file system. Very contrived but one can get the picture of the flexibility afforded by the nipyapi libraries. For more information on the python libraries discussed here, please go to:https://nipyapi.readthedocs.io/en/latest/index.html First things first, you'll need to import the required library and classes for the example. from nipyapi import canvas,configfrom random import randrangeNext set the configuration details of your NiFi environment. Here, I'm setting the
Why Share a Hive Metastore? Many organizations are moving workloads to the cloud to take advantage of the flexibility it offers. A key to this flexibility is a shared, persistent repository of metadata and services. Ephemeral compute clusters scale up and down and connect to this shared service layer. All clusters and metadata services share a unified storage layer. These capabilities are at the core of Cloudera’s next-generation product, the Cloudera Data Platform. Can we deploy this architecture today, with Hortonworks Data Platform 3? A key piece to this architecture is sharing a single Hive Metastore between all clusters. Hive is HDP’s SQL engine. The Hive metastore contains the metadata which allows services on each cluster to know where and how Hive tables are stored, and access those tables. Let’s look at our options. Standalone Hive Metastore Service A standalone Hive Metastore Service could be installed on a node outside of t
To encrypt LDAP bind password in zeppelin Shiro configuration follow below steps:1. Removed system password line from the config (this line contained the password for the system user that is doing the LDAP lookups) 2. Added the following line in shiro.ini: ldapRealm.hadoopSecurityCredentialPath=jceks://file/home/zeppelin/conf/zeppelin.jceks 3. Run the following command as Zeppelin user on Zeppelin host: # hadoop credential create ldapRealm.systemPassword -provider jceks://file/home/zeppelin/conf/zeppelin.jceks #Entered password <test> Where <test> is my password 4. Confirmed that file has 700 attributes 5. Restart Zeppelin
Jdbc interpreter is will take default queue to run a job. To run the job in specific queue add the queue name in hive.url property in JDBC interpreter settings as shown below hive.url=jdbc:hive2://<zookeeper quorum>/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2?tez.queue.name=<Queue Name> EXAMPLE: hive.url= jdbc:hive2://c186-node2.-labs.com:2181,c186-node3.-labs.com:2181,c186-node4.-labs.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2?tez.queue.name=sai Where sai is my queue name. To check and confirm execute below query in zeppelin using JDBC interpreter and check-in Yarn Resource manager UI %jdbc(hive)show databases;use <database name>;show tables;select count (*) from <table name>;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.