Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
Scanning Documents into Data Lakes via Tesseract, Python, OpenCV and Apache NiFiSource: https://github.com/tspannhw/nifi-tesseract-pythonThere are many awesome open source tools available to integrate with your Big Data Streaming flows.Take a look at these articles for installation and why the new version of Tesseract is different.I am officially recommending Python 3.6 or newer. Please don't use Python 2.7 if you don't have to. Friends don't let friends use old Python.Tesseract 4 with Deep Learning https://www.learnopencv.com/deep-learning-based-text-recognition-ocr-using-tesseract-and-opencv/ Github: https://github.com/spmallick/learnopencv/tree/master/OCRFor installation on a Mac Laptop:brew install tesseract --HEADpip3.6 install pytesseractbrew install leptonicaNote: if you have tesseract already, you may need to uninstall and unlink it first with brew. If you don't use brew, you can install another way.Summary Execute the run.sh (https://github.com/tspannhw/nifi-tessera
A common question when planning a new implementation or an upgrade is “what’s supported?” We’ve traditionally handled this with documentation, but as we release more products and support more platforms, it’s been tough for our customers to understand product interoperability. To solve this problem, we’ve created a new interactive web application that Hortonworks Support users can use to quickly answer questions like the following:Which version of Ambari works with HDF 3.1.2?Which Hortonworks products are certified with RHEL 7.4?Which databases are supported with both HDP 2.6.4 and HDF 3.1.2?Usually, these questions would be tough to answer as multiple documentation sections would have to be referenced and compared, but with the Hortonworks Support Matrix, answers are only a few clicks away.Just navigate to https://supportmatrix.hortonworks.com and log in using your Hortonworks Support Portal credentials; then click one or more products to see what we support. It’s important to note t
SummaryUsing Apache Solr as the indexing and search engine for Metron requires the Metron REST service to perform queries to multple collections. If the Ranger plugin is active there is currently a gotcha ( = Ranger Solr plugin bug). If you don't want to give the Metron user full access to all Solr collections here is a workaround.The Problem2+ Solr collections that are being queried: metaalert, cef,.... (and other parser collections):1 user: metron1 Ranger policy: user: "metron", access type: "Read", "Write", collections: "metaalert", "cef"Query of metaalert collection returns content of metaalert collection as expected and logs event successfully in Ranger audit.curl -k --negotiate -u : "http://solr_url:solr_port/solr/metaalert/search?q=*"Query of cef collection returns content of cef collection as expected and logs it successfully in Ranger audit.curl -k --negotiate -u : "http://solr_url:solr_port/solr/cef/search?q=*"Query of metaalert and cef will return a "403 Unauthorized request
You can follow the below steps to upgrade your Spectrum Scale transparency.1. Download the latest HDFS Transparency connector (gpfs.hdfs-protocol.rpm)2. Delete the old rpm from your local repository. There should be only one hdfs-protocol rpm in the RPMs directory.3. Place the latest rpm downloaded in Step 2 in the directory.4. Refresh the local repository to pick up the latest rpm.cd <local rpm repository dir>createrepo . 5. Stop all services from ambari Ambari -> Actions -> Stop All6. Upgrade transparencyAmbari -> Spectrum scale -> Service Actions -> Upgrade Transparency7. Restart ambari serverambari-server restart8. Start all services from ambariAmbari -> Actions -> Start AllYou can check SpectrumScale installation here.Uninstallation hereDownload Transparency connector from hereHope this helps 🙂
Error:Cloudbreak cluster fails with "Infrastructure creation failed. Reason: Failed to retrieve the server's certificateSolution:The most common reason for this error is that your security group configuration is too restrictive. Notably, CB needs access to port 9443 from outside the local network.Refer to https://docs.hortonworks.com/HDPDocuments/Cloudbreak/Cloudbreak-2.7.0/content/security/index.html#default-cluster-security-groups for information on ports that must be open on cluster security groups.
Error:Cloudbreak cluster fails with "Infrastructure creation failed. Reason: Failed to retrieve the server's certificateSolution:The most common reason for this error is that your security group configuration is too restrictive. Notably, CB needs access to port 9443 from outside the local network. Refer to https://docs.hortonworks.com/HDPDocuments/Cloudbreak/Cloudbreak-2.7.0/content/security/index.html#default-cluster-security-groups for information on ports that must be open on cluster security groups.
Ambari Server version: 2.5.2.0-298HDP version: 2.6.4.0-91Ansible version: 2.4OS version: centos7There are options of deployment tools to do automatic HDP installation, one of the reasons for why ansible is popular is ansible is lightweight and it totally relies on ssh connection without any physical agent. But ansible script has its organizational structure that we will not talk here in detail, and for people who are not familiar with its grammar and its running logic, can reference to this quick tutorialhttps://serversforhackers.com/c/an-ansible2-tutorial but when you delve into full deck of scripts for hdp installation, you'd better to have the document along withhttps://docs.ansible.com/ansible/2.4/porting_guide_2.4.htmlAnd beware of composing the full ansible scripts from scratch is a little bit boring, to save time you can build your own on some other existing scripts, for hdp installation we can start with the following link, but to fit for your case, still, need to do tailoringh
Capture Images from PicSum.com Free ImagesProcess All the Images via TensorFlow Processor, SSD Predict via MMS and SqueezeNet v1.1 via MMSApache Zeppelin SQL Against tblsqueeze11Example Output from Squeeze v1.1Storing Generic Data in HDFS via SchemaExample SSD Data JSONHigh Level Flow From ServerApache NiFi Server Flows to StoreConvert to Apache ORCExtract AttributesConvert JSON Arrays to OtherExample Data Derived From TensorFlow ProcessorSchemas in Schema RegistryCreate Table in ZeppelinQuery Table in ZeppelinPython Librariesgit clone https://github.com/awslabs/mxnet-model-server.gitpip install opencv-python -Upip install scikit-learn -Upip install easydict -Upip install scikit-image -Upip install numpy -Upip install mxnet -Upip3.6 install opencv-python -Upip3.6 install scikit-learn -Upip3.6 install easydict -Upip3.6 install scikit-image -Upip3.6 install numpy -Upip3.6 install mxnet -UExample Runs - Squeeze v1.1mxnet-model-server --models squeezenet=squeezenet_v1.1.model --service mm
Error: Failed to verify the credential: User: arn:aws:iam::<roleid>:user/assume-only-user is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::<roleid>:role/<rolename>Reason:The Cloubdreak instance is not authorized to assume the role that you are trying to register for the Cloudbreak credential. How to fix:If you are using hosted Cloudbreak, you may be entering an incorrect AWS account ID when creating the role for Cloudbreak credential. Contact the Cloudbreak team to confirm the AWS account ID.
I have tried copying data between non-kerberized cluster to kerberized cluster using Snapshot diff, but it was failing with following error in HDP 2.5.3Currently distcp only supports hdfs:// RPC protocol for snapshot based diff copy. If you use webhdfs either in source or target you will encouter this error. Command:$hadoop distcp -diff s1 s2 -update webhdfs://nonsecure_cluster:50070/source hdfs://secure_cluster:8020/targetError: java.lang.IllegalArgumentException: The FileSystems needs to be DistributedFileSystem for using snapshot-diff-based distcpat org.apache.hadoop.tools.DistCpSync.preSyncCheck(DistCpSync.java:86)at org.apache.hadoop.tools.DistCpSync.sync(DistCpSync.java:124)at org.apache.hadoop.tools.DistCp.createAndSubmitJob(DistCp.java:180)at org.apache.hadoop.tools.DistCp.execute(DistCp.java:155)at org.apache.hadoop.tools.DistCp.run(DistCp.java:128)at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)at org.apache.hadoop.tools.DistCp.main(DistCp.java:462)
We can configure the Zeppelin UI for access over SSL. Step 1 : Create a keystoreFor Self-Signed Certificate: ### Generate a keystore# keytool -genkey -alias zeppelin -keyalg RSA -dname "CN=$HOSTNAME,OU=IT,O=HWX,L=Bangalore,S=KA,C=IN" -keystore /etc/zeppelin/conf/zeppelin-keystore.jks -keysize 2048 -validity 365 -keypass hadoop -storepass hadoop ### Export self-signed certificate to a pem file# keytool -exportcert -keystore /etc/zeppelin/conf/zeppelin-keystore.jks -alias zeppelin -file zeppelin.pem -rfc For CA-Signed Certificate: ### Get certificate from you CA and create a PKCS12 keystore# openssl pkcs12 -export -inkey zeppelin.key -in zeppelin.pem -certfile /path/to/ca/certificate/ca.pem -out zeppelin.pfx### Convert pkcs12 keystore to jks keystore# keytool -v -importkeystore -srckeystore zeppelin.pfx -srcstoretype PKCS12 -destkeystore /etc/zeppelin/conf/zeppelin-keystore.jks -deststoretype JKS -srcalias 1 -destalias $(hostname)### Val
Use Apache Spark to connect to SQL Server, extract a table from SQL Server, and load the extracted rows into a Hive table: You will need to download JDBC driver for SQL ServerDownload the driver from: https://www.microsoft.com/en-us/download/details.aspx?id=11774Run code: /usr/bin/spark-submit --driver-class-path /home/centos/sqljdbc_4.0/enu/sqljdbc4.jar --master yarn-client my_script.py import osfrom pyspark import SparkConf,SparkContextfrom pyspark.sql import HiveContextconf = (SparkConf() .setAppName("data_import") .set("spark.dynamicAllocation.enabled","true") .set("spark.shuffle.service.enabled","true"))sc = SparkContext(conf = conf)sqlctx = HiveContext(sc)df = sqlctx.load( source="jdbc",url="jdbc:sqlserver://ec2-54-244-44-6.us-west-2.compute.amazonaws.com:1433;database=sales;user=my_username;password=my_password",dbtable="orders")## this is how to write to an ORC filedf.write.format("orc").save("/tmp/orc_query_output")## this is how to write to a hive tabledf.write.mode('over
In certain Apache Hadoop use cases we want to get the checksum of files stored in HDFS. This is specifically useful when we are moving data from/to hdfs to verify the file was transferred correctly. Earlier there was no easy way to compare that but starting Apache Hadoop 3.1 we can compare the checksums of a file stored in hdfs and a file stored locally. HDFS-13056The default checksum algorithm for hdfs chunks is CRC32C. A client can override it by overriding dfs.checksum.type (can be either CRC32 or CRC32C). This is not a cryptographically strong checksum, however it can be used for quick comparison.When we run the checksum command (hdfs dfs -checksum) for a hdfs file it calculates MD5 of MD5 of checksums of individual chunks (each chunk is typically 512 bytes long). However this is not very useful for comparison with a local copy.ExampleFor example, the below command computes the checksum of the file hadoop-common-2.7.3.2.6.3.0-SNAPSHOT.jar stored in HDFS:hdfs dfs -checksum /tmp/had
Put log4j on HDFS path and then use HDFS path in workflow to override.Sample log4j file:## 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## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License. See accompanying LICENSE file.## Define some default values that can be overridden by system propertieshadoop.root.logger=DEBUG,CLA# Define the root logger to the system property "hadoop.root.logger".log4j.rootLogger=${hadoop.root.logger}, EventCounter# Logging Thresholdlog4j.threshold=ALL## ContainerLog Appender##Default valuesyarn.app.container.log.dir=nullyarn.app.container
Part 1: https://community.hortonworks.com/articles/82964/getting-started-with-apache-ambari-workflow-design.html Part 2: https://community.hortonworks.com/articles/82967/apache-ambari-workflow-designer-view-for-apache-oo.html Part 3: https://community.hortonworks.com/articles/82988/apache-ambari-workflow-designer-view-for-apache-oo-1.html Part 4: https://community.hortonworks.com/articles/83051/apache-ambari-workflow-designer-view-for-apache-oo-2.htmlPart 6: https://community.hortonworks.com/articles/83787/apache-ambari-workflow-manager-view-for-apache-ooz-1.htmlPart 7: https://community.hortonworks.com/articles/84071/apache-ambari-workflow-manager-view-for-apache-ooz-2.htmlPart 8: https://community.hortonworks.com/articles/84394/apache-ambari-workflow-manager-view-for-apache-ooz-3.htmlPart 9: https://community.hortonworks.com/articles/85091/apache-ambari-workflow-manager-view-for-apache-ooz-4.htmlPart 10: https://community.hortonworks.com/articles/85354/apache-ambari-workflow-manager-
Objectives This tutorial is designed to walk you through the process of using Vagrant and Virtualbox to create a local instance of Cloudbreak 2.4.1. This approach allows you start your local Cloudbreak deployer instance when you want to spin up an HDP cluster in a cloud environment without incurring costs associated with hosting your Cloudbreak deployer instance itself on the cloud. This tutorial is an update to the original one located here: HCC Article. However this version of the tutorial includes more automation for installing Cloudbreak and is based on Cloudbreak 2.4.x instead of 1.14.x. Note: This tutorial has also been tested with Cloudbreak 2.7.0, 2.7.1, 2.72. and 2.8.0 TP.Prerequisites You should already have installed VirtualBox 5.x. Read more here: VirtualBox You should already have installed Vagrant 2.x. Read more here: Vagrant You should already have installed the vagrant-vbguest plugin. This plugin will keep the VirtualBox Guest Additions software current as you up
Short Description:How to run sample Oozie sqoop action to get data from Mysql table to HDFS.ArticleBelow are the steps to run sample sqoop action to get data from Mysql table on HDFS.Note - Please refer this to create sample Mysql table with dummy data..1. Configure job.propertiesExample:nameNode=hdfs://<namenode-host>:8020jobTracker=<rm-host>:8050queueName=defaultexamplesRoot=examplesoozie.use.system.libpath=trueoozie.wf.application.path=${nameNode}/user/${user.name}oozie.libpat=/user/root.2. Configure Workflow.xmlExample:<?xml version="1.0" encoding="UTF-8"?><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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
This article will show a step by step guide on how to connect to HBase in an a Kerberos enable cluster. If you need to setup a cluster that have Kerberos enabled, this is a good guid to follow.Clone Example ProjectThis article will be based on this project. Please run the following to clone the project.$ git clone https://github.com/jjmeyer0/hdp-test-examplesCreating KeytabBefore getting into the code, it is important to generate necessary files. If a key tab is not available follow the steps below to create one. In the example below, a key tab for the user jj and realm EXAMPLE.COM is created. The below commands should be run on one of the nodes in the cluster. $ kadmin.local$ addprinc jj@EXAMPLE.COM$ <CTRL-D>$ ktutil$ addent -password -p jj -k 1 -e RC4-HMAC$ wkt jj.keytab$ qPreparing User in HBaseThe user that was used above must be given correct permissions in HBase. To do so do the following:$ hbase shellhbase(main):001:0> grant 'jj', 'RW'Obtaining Necessary FilesThis examp
Launching Cloudbreak cluster on AzureBefore launching Cloudbreak cluster on Azure, review and meet the prerequisites.Meet the PrerequisitesBefore launching Cloudbreak on Azure, you must meet the following prerequisites.Azure AccountAzure RegionSSH Key PairAuthenticationSubscription IdTenant IDApplication IDAzure AccountIn order to launch Cloudbreak on the Azure, log in to your existing Microsoft Azure account. If you don't have an account, you can set it up at https://azure.microsoft.com.Azure RegionDecide in which Azure region you would like to launch Cloudbreak. You can launch Cloudbreak and provision your clusters in all regions supported by Microsoft Azure.Create an SSH key pairWhen launching Cloudbreak, you will be required to provide your public SSH key. If needed, you can generate a new SSH key pair:On MacOS X and Linux using ssh-keygen -t rsa -b 4096 -C "your_email@example.com"On Windows using PuTTygenOn Azure shell. Launch azure shell via a browser https://shell.azure.com/ and
Cloudbreak on AWSBefore launching Cloudbreak on AWS, review and meet the prerequisites.Meet the PrerequisitesBefore launching Cloudbreak on AWS, you must meet the following prerequisites. AWS AccountAWS RegionSSH Key PairKey Based AuthenticationAWS AccountIn order to launch Cloudbreak on AWS, you must log in to your AWS account. If you don't have an account, you can create one at https://aws.amazon.com/.AWS RegionDecide in which AWS region you would like to launch Cloudbreak. The following AWS regions are supported: SSH Key PairImport an existing Key Pair or generate a new Key Pair in the AWS region which you are planning to use for launching Cloudbreak and clusters. You need this SSH Key Pair to SSH to the Cloudbreak instance and Start Cloudbreak. To do this use the following steps. Navigate to the Amazon EC2 console at https://console.aws.amazon.com/ec2/.Check the region listed in the top right corner to make sure that you are in the correct region.In the left pane, find NETWORK AND
Cloudbreak launches clusters on the cloud in 3 easy steps: Pick a Blueprint: Cloudbreak uses Ambari Blueprints to have declarative Hadoop cluster definition. Blueprints can be designed for specialized applications and workloads (such as Data Science or IoT Apps). Cloudbreak includes a few default Blueprints for common cluster configurations but you can always upload your own Blueprint to build the cluster just the way you like it. Choose a Cloud: Cloudbreak is configured to work with cloud infrastructure resources (such as servers, network setup and security options). Choose the cloud infrastructure you want to use for the cluster. Launch Cluster: In this step, Cloudbreak obtains the chosen cloud infrastructure platform, installs Apache Ambari and applies the desired Blueprint. The result: your cluster is launched and ready to go! Prerequisites a. Before launching Cloudbreak on AWS, you must meet the AWS prerequisites. b. Before launching Cloudbreak on Azure, you must meet t
In this article, I will discuss one of the most exciting new features coming with NiFi 1.7.0 is the possibility of terminating running threads from the NiFi UI. I can think of a couple of examples in the previous NiFi versions where we either had to wait for a running thread to end before being able to make any changes to the processor configs or, in worst case scenarios, restart the NiFi cluster because of some thread is in a deadlock condition. For exampleAn ExecuteSQL processor is stuck since the source RDBMS is not able to handle the data pull and has yielded under pressure. Or the other processes are not able to use the RDBMS since resources are hogged by this complete database scan operation. Either we wait for a literally infinite period of time or if the problem is serious, stop the cluster all together.Some custom script/processor has a deadlock situation and the thread won't stop ever. The only option we have in this scenario was to restart the machine/cluster running that pr
I have a plan to write a 3 part “intro” series as to how to handle your XML files. The subjects will be: Basic XML and Feature Extraction via Text Managment, Splitting and XpathInteractive Text Handling with XQuery and Regex in relation to XMLsXML schema validation and transformationsXML data is read into the flowfile contents when the file lands in nifi. As long as it is a valid XML format the 5 dedicated XML processors can be applied to it for management and feature extraction. Commonly a user will want to get this XML data into a database which will require us to do a feature extraction and convert to a new format such as JSON or AVRO.The simplest of the XML processors is the “SplitXml” processor. This simply takes the current selection of data and breaks the children off into their own files. The depth of the split in relation to the root is configurable as shown below. An example of when this may be helpful is when you have a list of events, each of which should be trea
Hadoop relies heavily on DNS, and as such performs many DNS lookups during normal operation. To reduce the load on your DNS infrastructure, it's highly recommended to use the Name Service Caching Daemon (NSCD) on cluster nodes running Linux or any other dns caching mechanism ( i.e dnsmasq ).This daemon will cache host, user, and group lookups and provide better resolution performance, and reduced load on DNS infrastructure. Default cache size and TTL value are good enough to reduce the significant load. However, you might need to tweak this as per your environment.
Working with Infura.ioCalling REST APIs is very easy with Apache NiFi, let's use this to ingest a lot of data about Ethereum blockchains and transactions. We can also ingest and examine network status data.Infura provides secure, reliable, scalable access to Ethereum and IPFS.Check out the current status: https://infura.io/statusApache NiFi Flows to Read From the Ethereum Blockchain via Infura REST APIsAn Example REST CallWe rename the file to make it unique and it note that it is from ethbtcfull API call.Example Data (JSON){"base": "ETH", "quote": "BTC", "tickers": [{"bid": 0.0750827, "ask": 0.07530999, "volume": 5159.53235584, "timestamp": 1528924408, "exchange": "bitstamp"}, {"bid": 0.07519, "ask": 0.0752, "volume": 1938.0570499, "timestamp": 1528924408, "exchange": "gemini"}, {"bid": 0.07515, "ask": 0.07516, "volume": 10310.62442822, "timestamp": 1528924408, "exchange": "gdax"}, {"bid": 0.075208, "ask": 0.075226, "volume": 45253.638, "timestamp": 1528924409, "exchange": "hitbtc
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.