Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
Affected versions:1.4.0, 1.4.1, 1.4.2, 1.4.3Symptoms: A Bundle is available in Datalake but the status is still Upload Failed. Following error is reported in the hst-server.log.2017-09-08 17:44:09,319 ERROR [pool-1-thread-1] UploadRunnable:236 -Error occurred during upload bundlecom.hortonworks.support.tools.server.SystemException:java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1column 10 atcom.hortonworks.support.tools.gateway.UploadRunnable.uploadBundle(UploadRunnable.java:182) atcom.hortonworks.support.tools.gateway.UploadRunnable.retryUploadBundle(UploadRunnable.java:201) atcom.hortonworks.support.tools.gateway.UploadRunnable.uploadBundle(UploadRunnable.java:176) atcom.hortonworks.support.tools.gateway.UploadRunnable.retryUploadBundle(UploadRunnable.java:201) atcom.hortonworks.support.tools.gateway.UploadRunnable.uploadBundle(UploadRunnable.java:176) atcom.hortonworks.support.tools.gateway.UploadRunnable.retryUploadBundle(UploadRunnable.java:201
Good design goes mostly unnoticed. If a user interface works well, you simply complete a task and move on to the next. That time when something doesn't work as expected, or you think why do I have to do it this way, is when the design becomes much more noticeable. The following is a look back over recent months at some notable UI/UX improvements making their way to Apache NiFi. They vary a lot in size and complexity, but overall they contribute equally to make NiFi better by design. This second edition is light due to a lot of contributor focus on NiFi sub-projects MiNiFi and Registry. There will be many new additions to the NiFi UI related to the NiFi Registry integration and those will be covered in separate articles. The previous (and first) edition highlighting recent NiFi UI/UX improvements from September 2017 can be found here.Available Cores In the UI there were several places where it stated "available processors" to indicate how many cores were available to NiFi. In thes
I wanted to see offer alternatives to running Deep Learning and Machine Learning locally and take advantage of some free hours of cloud time. It seems that it is trivially easy to integrate calling IBM Watson APIs for all your microservice needs. Apache NiFi makes it super easy and fun. Using out of the box processors, we can call the InvokeHTTP POST and GET REST APIs of the IBM Watson Platform for Natural Language, Visual Recognition, Personality Analysis, Language Translation and others. These use SSL, so you have to setup a simple StandardSSLContextService in Apache NiFi. Once you know the JVM you are running Apache NiFi with, it's trivial to grab the requirements for that. By default the password is the very secure, changeit. A Get REST CALL to NLP A Post to a Watson REST URL Some URLs and Calls curl -X POST --form "images_file=@mypic.jpg" "https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify?api_key={api-key}&version=2016-05-20"curl -X
IntroductionEDW (Enterprise Data Warehouse) is a traditional methodology developed and grown over past three decades, highly matured with its own best practices. Hadoop has emerged a decade ago but one of the fastest growing eco system. Merging these two systems without giving importance to details of both the worlds would easily make a scenario of not utilizing strengths of both and eventually lead to frustrations and failures. Most of EDW migration fails due to ignoring fundamentals of EDW and Hadoop.EDWAn Enterprise Data warehouse is set of tools and techniques to enable business to answer compelling questions about what happened. It enables businesses to view the facts of various business processes from a perspective of different dimensions. Example: What is profit generated out of customers from Texas during Christmas season on each year for the past 5 years.In the above profit is a fact or “some form of transaction”, customers, state Texas and Christmas season are dimensions. T
Happy Holidays! Apache NiFi makes it easy to build your own integration tests. So I am generating tests to test Turning On and Off My Christmas Tree Hat. I also testing taking a picture. My use case is to send an HTTP message to trigger a Raspberry Pi to turn on a physical device like a camera or light. This is pretty cool and secure with Apache MiniFi and Apache NiFi. A little Python script is all the code and that's basic example code. This code is a modified TensorFlow classify.py that adds turning on the Christmas Tree. So we turn on the tree and then take a picture with the PiCamera and then run it through a Tensorflow classifier. root@vid5:/opt/demo# cat classifytree.py# Copyright 2015 The TensorFlow Authors. All Rights Reserved.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0
In the Holidays, it's nice to know how much energy you are using. So one small step is I bought a low-end inexpensive TPLink Energy Monitoring plug for one device. I have been monitoring phone charging and my Apple monitor.Let's read the data and do some queries in Apache Hive and Apache Spark 2 SQL.Processing Live Energy Feeds in The CloudMonitor Energy From a Local OSXIf your local instance does not have access to Apache Hive, you will need to send the data via Site-to-Site to a Remote Apache NiFi / HDF server/cluster that can.For Apache Hive Usage, Please Convert to Apache ORC FilesTo Create Your New Table, Grab the hive.ddlInside of Apache Zeppelin, we can create our table based on the above DDL. We could have also let Apache NiFi create the table for us. I like to keep my DDL with my notebook. Just a personal choice.We can then query our table in Apache Zeppelin utilizing Apache Spark 2 SQL and Apache Hive QL.OverviewStep 1: Purchase an inexpensive energy monitoring pl
Once Kerberos is enabled, it is possible to get a listing of the expected Kerberos principals and keytab files. This data is typically used when manually managing the Kerberos Identities for the Ambari cluster and may be easily downloaded as a CSV file from the Enable Kerberos Wizard in the Ambari UI. After Kerberos is enabled in Ambari, details about the expected Kerberos Identities may be obtained using the following REST API call:GET /api/v1/clusters/:cluster_name/kerberos_identitiesNote: replace :cluster_name with the name of your cluster. The result of this query is a JSON formatted document containing a high level listing of the expected identities. { "href" : "http://ambari-server:8080/api/v1/clusters/c1/kerberos_identities", "items" : [ { "href" : "http://ambari-server:8080/api/v1/clusters/c1/kerberos_identities/HTTP%2Fhost-1.example.com%40EXAMPLE.COM", "KerberosIdentity" : { "cluster_name" : "c1", "host_name" : "host-1.example.com", "princi
1.Configure sample ambari alert using Ambari UI..2.Login to ambari webui using [admin/admin].3.Click on "Alerts". .4.Click "Action"-> "Manage Notification".5.Add sample alert for service.6. In above example you can use Gmail username and password to test connection..7. After adding sample alert close the screen..8.From the ambari ui now stop one of the zookeeper service..9.You should be able to see alert indication in ambari ui for the zookeeper service stopped..10. Same time if you tail for ambari-alerts.log you will be able to see "Connection Failed" log messages for zookeeper service..2016-05-27 14:57:31,541 [CRITICAL] [ZOOKEEPER] [zookeeper_server_process] (ZooKeeper Server Process) Connection failed: [Errno 111] Connection refused to node1.example.com:2181.11. Check your email and make sure you receive the alert..12. If you don’t see alerts the enable debugging for Alerts in ambari log4j.properties as shown below..13. Login to ambar
We are pleased to announce the availability of Hortonworks Data Flow(HDF) v3.0.3 for IBM Power Systems on RHEL 7.2. This is an important release as it is the second Hortonworks product ported to IBM Power Systems, specifically Power8 processors, in 2017.This release is a win-win for both IBM and Hortonworks customers as HDF v3.0.3 is the next generation of our open source data-in-motion platform and enables customers to collect, curate, analyze and act on all data in real-time, across the enterprise. Combined with the Hortonworks Data Platform (HDP) currently available for IBM Power Systems, we are improving the experience for customers by simplifying how they create and deploy streaming analytics applications to deliver real time analytics while benefiting from the flexibility, cost of operation and performance of IBM Power8 processors.For additional information, please refer to:Hortonworks Data Flow v3.0.3 Documentation (link)Hortonworks Data Platform v2.6.3 / Ambari v2.6 Documenta
This tutorial is a companion to this article:https://community.hortonworks.com/articles/72182/bring-spark-to-the-business-with-fine-grain-securi.htmlThe article outlines the use cases and potential benefits to the business that Spark fine grain security with LLAP may yield. This article also has a second part that covers how to apply Tag based security for Spark using Ranger and Atlas in combination.Tag Based (Meta Data) Security for Apache Spark with LLAP, Atlas, and RangerGetting StartedInstall an HDP 2.5.3 Cluster via Ambari. Make sure the following components are installed: HiveSparkSpark Thrift ServerAmbari InfraRanger Enable LLAPNavigate to the Hive Configuration Page and click Enable Interactive Query. Ambari will ask what host group to put the Hiveserver2 service into. Select the Host Group with the most available resources.With Interactive Query enabled, Ambari will display new configurations options. These options provide control of resource allocation for the LLAP service.
To secure the Spark Thrift server first we need to change the mode from binary to http then secure the channel with the certificates.Login to Ambari-> Spark(2)-> Configs -> Custom spark-hive-site-override:Set the following parameters :hive.server2.transport.mode : http hive.server2.thrift.http.port : 10015 / 10016 ( in case of spark 2)hive.server2.http.endpoint : cliservice#Enabling the SSL modehive.server2.use.SSL : true hive.server2.keystore.path : </path/to/your/keystore/jks>hive.server2.keystore.password : <keystorepassword>in case of server certs are not available process to create self-signed certs (from Hive Wiki page)Setting up SSL with self-signed certificatesUse the following steps to create and verify self-signed SSL certificates for use with HiveServer2: Create the self-signed certificate and add it to a keystore file using: keytool -genkey -alias example.com -keyalg RSA -keystore keystore.jks -keysize 2048 Ensure the name used in the
The KnoxShell release artifact provides a small footprint client environment that removes all unnecessary server dependencies, configuration, binary scripts, etc. It is comprised of a couple different things that empower different sorts of users. A set of SDK type classes for providing access to Hadoop resources over HTTPA Groovy based DSL for scripting access to Hadoop resources based on the underlying SDK classesToken based Sessions to provide a CLI SSO session for executing multiple scriptWhile testing the KnoxShell examples for the 0.14.0 Apache Knox release, I realized that using the KnoxShell for access to HiveServer2 was not easily done.This is due to the fact that we are leveraging the knoxshell executable jar which makes is difficult to add additional classes and jars to the classpath for the executing script.I needed to create a launch script that called the main class of the executable jar while also being able to set the classpath with additional jars for Apache Hive client
An example of using KnoxShell to develop a simple SQL client for access to HiveServer2 through Apache Knox Gateway.
IntroductionMy Apache Knox Dynamic Service Endpoint Discovery article describes some exciting new functionality available in the 0.14.0 release of Apache Knox. The gateway is now able to dynamically determine the endpoint URLs of cluster services to proxy from Ambari. The associated benefits are described in that article.Another benefit of this new functionality, which is not mentioned in that article, is the added ability to dynamically respond to cluster configuration changes that affect generated Knox topologies by re-generating and re-deploying those topologies. Without this, deployed topologies can be easily disabled when any of the proxied Hadoop services' configuration changes in the cluster. Cluster MonitoringWhen Knox deploys a simple topology descriptor, and generates a corresponding topology based on discovered cluster configuration details, it subsequently has the ability to monitor that cluster configuration for changes. When it discovers a change, it updates all of i
In this article we will go over how we can use nifi to ingest PDFs and while we ingest we will use a custom groovy script with executescript processor to extract images from this PDF. The images will be tagged with PDF filename, page num and imagenum , so that it can be indexed in hbase/solr for quick searching and doing some machine learning or other analytics. The Groovy code below depends on the following jars. Download and copy them to a folder on your computer. I my case they were under /var/pdimagelib/. pdfbox-2.0.7.jar fontbox-2.0.7.jar jai_imageio.jar commons-logging-1.1.1.jar Copy the code below to a file on your computer, in my case the file was under /var/scripts/pdimage.groovyimport java.nio.charset.*;import org.apache.commons.io.IOUtils;import java.awt.image.BufferedImage;import java.awt.image.RenderedImage;import java.io.File;import java.io.FileOutputStream;import java.util.Iterator;import java.util.List;import java.util.ArrayList;import java.util.Map;import javax.i
Using Hive in Oozie can be challenging. There are two available actionsHiveAction and Hive2ActionTh Hive action uses the hive client and needs to set a lot of libraries and connections. I ran into a lot of issues especially related to security. Also the logs are not available in the Hive server and hive server settings are not honoured.The Hive2 action is a solution for this. It runs a beeline command and connects through jdbc to the hive server. The below assumes that you have used LDAP or PAM security for your hive server. <action name="myhiveaction"> <hive2 xmlns="uri:oozie:hive2-action:0.1"> <job-tracker>${jobTracker}</job-tracker> <name-node>${nameNode}</name-node> <jdbc-url>jdbc:hive2://server:10000/default</jdbc-url> <password>${hivepassword}</password> <script>/data/sql/dayly.sql</script> <param>database=${database}</param> <param>day=${day}</param> </hive2&
This article list down the steps involved to enable SSL for Livy Server in HDP 2.6.1.0This setup instruction is for example purpose. Production cluster setup may be different.Prerequisite:Firstly, prepare the keystore and truststore files for enabling SSL in Livy server. The steps followed to generate keystore and truststores are for testing purpose only. 1) create keystore files, certificates, and truststore files for each host in cluster. Generate Keystore file for Livy serverkeytool -genkey -alias <host> -keyalg RSA -keysize 1024 –dname CN=<host>,OU=hw,O=hw,L=paloalto,ST=ca,C=us –keypass <keyPassword> -keystore <keystore_file> -storepass <storePassword> Create a certificatekeytool -export -alias <host> -keystore <keystore_file> -rfc –file <cert_file> -storepass <StorePassword> Create Truststore filekeytool -import -noprompt -alias <host> -file <cert_file> -keystore <truststore_file> -storepass <truststorePas
This article provides a step-by-step guide on how to leverage the Workflow Manager (WFM) View within Apache Ambari to connect, automate, and monitor big data processing tasks. It explains how to build a defined workflow engine to schedule and execute Apache Hive queries, integrating seamlessly with the Hortonworks Data Platform (HDP) alongside other Hadoop ecosystem jobs like Sqoop, Pig, MapReduce, and Spark. More details in the attached PDF.
Setting Up a Data Science Platform on HDP using AnacondaBuilding a Data Science Platform using Anaconda needs to be able to Launch PySpark jobs on the clusterSynchronize python libraries from vetted public repositoriesIsolate environments with specific dependencies to run production jobs using an older version of a package whilst simultaneously running new version of the packageLaunching notebooks and PySpark jobs using different kernels such as Python_2.7, Python_3.x, R, ScalaFramework of the Data Science Platform Private Repo ServerEdge NodesDevTestProdAnsibleGitJenkinsBuilding blocks of the Data Science Platform AnacondaAnsibleGitJenkins
In Apache NIFI, flow configuration allows users to reference environmental specific or system variables using Expression Language (EL). Prior to NIFI 1.4 release, a file-based variable registry was available. However, the management of those variables can be challenging due to the lack of a user interface. Additionally, those variables in the file based variable registry cannot be updated at NIFI runtime, hence breaking the continuous processing whenever NIFI needs to be restarted to update variables.In Apache NIFI 1.4, a UI driven variable registry was made available. This would help simplify the configuration management of flows in flow migration use cases across environments (works great in conjunction with the Flow Registry that is being discussed/worked on in the community).More importantly, similar to how controller services are handled by the NIFI framework, variables are now persisted in the flow definition file (flow.xml). There is a ‘variable' section nested under each proces
Modern Web-Browsers come with few inbuilt defenses for common web attacks but we need to enable our web applications to use them. Recently support for many such HTTP response headers were added to Zeppelin to thwart common attacks like Cross-site scripting, ClickJacking, Man-in-the-Middle and SSL Downgrade attacks which Browsers can use to enable client-side security features.We need to configure the properties in zeppelin-site.xml listed below to enable the supported security headers. 1. The "zeppelin.server.xxss.protection" property needs to be updated in the zeppelin-site.xml in order to set X-XSS-PROTECTION header. The HTTP X-XSS-Protection response header is a feature of Internet Explorer, Chrome and Safari that stops pages from loading when they detect reflected cross-site scripting (XSS) attacks. When value is set to "1; mode=block", the browser will enable XSS filtering and prevent rendering of the page if an attack is detected.When value is set to "0", it turns off the protect
ISSUEWhile trying to connect to the HBase cluster from an edge node or a client HBase API we get the expection "Exception in thread "main" org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations " SYMPTOM The exact stack that we encounter is as below:log4j:WARN No appenders could be found for logger (org.apache.hadoop.util.Shell). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Exception in thread "main" org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:312) at org.apache.hadoop.hbase.client.ScannerCallableWi
Below are the steps to run hive query in a shell script using Oozie shell action .1. Configure job.propertiesExample:#*************************************************# job.properties#*************************************************nameNode=hdfs://<namenode-fqdn>:8020jobTracker=<resourcemanager-host-fqdn>:8050queueName=defaultexamplesRoot=examplesoozie.use.system.libpath=trueoozie.wf.application.path=${nameNode}/user/${user.name}/.2. Configure Workflow.xmlExample:<workflow-app xmlns="uri:oozie:workflow:0.3" name="shell-wf"><credentials> <credential name='my_auth' type='hcat'> <property> <name>hcat.metastore.uri</name> <value>thrift://<hive-metastore-hostname>:9083</value> </property> <property> <name>hcat.metastore.principal</name> <value>hive/_HOST@HWX.COM</value> </property> </credential></credentials> <start to="shell-node"
IntroductionThe 0.14.0 release of Apache Knox includes the ability to dynamically determine topology endpoints for Hadoop services in Ambari-managed clusters. Prior to this release, users had to determine each of these endpoint URLs by navigating the Ambari UI (or combing through the various cluster configuration files), and explicitly add them to their topology descriptors; there was a lot of potential for human error.Support for a new, simplified topology descriptor has been added to leverage this dynamic endpoint discovery and facilitate provider configuration sharing across topologies.This is a dramatic improvement in the usability of Knox. Simplified DescriptorsSimplified descriptors are a means to facilitate provider configuration sharing and service endpoint discovery. Rather than editing an XML topology descriptor, it’s now possible to create a simpler descriptor that declaratively specifies the desired contents of a topology, which will ultimately yield a full topology de
Provisioning clusters with MiNiFi C++ Bootstrap. This article references code from https://github.com/apache/nifi-minifi-cpp/pull/218 MiNiFi C++ has a new bootstrap process that enables you to select dependencies with a menu guided approach. In this article, we’ll discuss using the bootstrap script to bypass the menu and install all dependencies that your system is capable of installing. The major advantage of this is that you will be able to run MiNiFI C++, which doesn’t incur a startup cost and can be run within a very small memory footprint, on any device you can connect to using SCP to distribute the source and SSH to run the boot strap command.Overview of the boot strap process. The bootstrap script is a simple set of bash scripts that run the dependency installation, CMAKE setup, and build. You will then use boot strap to run a make install. The bootstrap.sh script normally uses prompts to ensure agreement at every step, but for the purposes of this article, we’ll be supplyin
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.