Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
1. Kafka Kafka currently uses org.apache.log4j.DailyRollingFileAppender, which doesn’t allow us to specify the max backup index, max file size. And by default, rolls every hour creating 24 files a day. Appender: org.apache.log4j. RollingFileAppender Roll criteria: Every 100MB. Retention: 9 backup logs. Steps: Login to Ambari Goto the config tab of the Kafka broker. Expand Advanced kafka-log4j Change the appender from org.apache.log4j.DailyRollingFileAppender to org.apache.log4j.RollingFileAppender. Comment out the appender’s date pattern: #log4j.appender.kafkaAppender.DatePattern='.'yyyy-MM-dd-HH #log4j.appender.kafkaAppender=org.apache.log4j.DailyRollingFileAppender Add the following lines for each appender (change the appender name): log4j.appender.kafkaAppender=org.apache.log4j.RollingFileAppender log4j.appender.kafkaAppender.MaxFileSize=100MB log4j.appender.kafkaAppender.MaxBackupIndex=9 Repeat the steps for all the appenders in the section. Rolling restart Kafk
In this article series, part 1 , part 2 , part 3, part 4 covered various Hbase tuning parameters, scenarios, system side of things etc, in last and part 5 of this series, I will discuss little bit about Phoenix performance parameters and general tips for tuning. I am taking an example of a query which was performing very slow and how we investigated this situation. We will start by reading explain plan of this query. I cannot quote exact query (customer's data) here but it was a select query with some where clause and finally order by conditions. The explain plan of the query is as follows: +--------------------------------------------------------------------------------------------------------------------------------------------------------+ | CLIENT 5853-CHUNK 234762256 ROWS 1671023360974 BYTES PARALLEL 5853-WAY FULL SCAN OVER MESSAGE_LOGS.TEST_MESSAGE | | SERVER FILTER BY ((ROUTING IS NULL OR ROUTING = ‘TEST') AND TESTNAME = 'createTest' AND TESTID = ’TEST’ AND ERRORCODE | | SERVER
In my articles part 1 and part 2 , I explained various parameters which could be tuned for achieving optimized performance from Hbase. In part 3, we discussed some scenarios and aspects to focus while investigating performance issues. Continuing this series, part 4 covers some system and network level investigations. DISKS Along with investigating potential issues at HBASE and HDFS layer, we must not ignore system side of thingslike OS, network and disks. We see several cases everyday when severe issues at this layer are identified.Detailed investigation is beyond the scope of this article , but we should know where to point fingers. The triggering factor to look at system side are messages such as following in datanode logs at the time of performance issue. WARN datanode.DataNode (BlockReceiver.java:receivePacket(694)) - Slow BlockReceiver write data to disk cost:317ms (threshold=300ms) Following are some of several tests we could do to ascertain disk performance: - Run dd test
As we understood important tuning parameters of Hbase in part 1 and part 2 of this article series, this article focuses on various areas which should be investigated when handling any Hbase performance issue. Locality By locality we mean the physical HDFS blocks related to Hbase Hfiles need to be local to the region server node where this respective region is online. This locality is important because Hbase prefers to use short circuit reads directly from physical disks bypassing HDFS. If a region’s Hfiles are not local to it, it will incur cost to a read latency by doing reads across the node over network. One can monitor locality of a table / region from Hbase Master UI specifically on table’s page by clicking on the listed table name. The value of “1”on the locality column means 100% block locality. Overall Hbase locality is visible on Ambari metrics section of Hbase ( in percentage). Here, Major compaction tries to bring back all Hfiles related to a region on a single region server
TIBCO Enterprise Message Servicehttps://www.tibco.com/products/tibco-enterprise-message-serviceI tested this against the most recent release of TIBCO Enterprise Message Service and their JMS driver available via trial download. I followed the very easy install directions. I downloaded it to a Centos 7 server.Expanded my download to TIB_ems-dev_8.4.0_linux_x86_64Then made it executable and ran TIBCOUniversalInstaller-lnx-x86-64.bin --console.I used all the defaults (I picked server and client) and then quickly ran the finished install server.Running Tibco on Centos 7cd /opt/tibco/ems/8.4/bin/./tibemsd64 -config ~/TIBCO_HOME/tibco/cfgmgmt/ems/data/tibemsd.confExample JMS Queue Settings URL: tcp://servername:7222 class: com.tibco.tibjms.TibjmsQueueConnectionFactory Directory: /opt/tibco/ems/8.4/lib/I believe it just uses these files from that directory: tibjms.jar jms-2.0.jar Once I have my server and port shown, it's easy to add those settings to Apache NiFi.The setting
Cloudbreak 2.5.0 Technical Preview is available now. Here are the highlights: Creating HDF ClustersYou can use Cloudbreak to create HDF clusters from base images on AWS, Azure, Google Cloud and OpenStack. In the Cloudbreak web UI, you can do this by selecting "HDF 3.1" under Platform Version and then selecting an HDF blueprint.Cloudbreak includes one default HDF blueprint "Flow Management: Apache NiFi" and supports uploading your own custom HDF 3.1.1 NiFi blueprints.Note the following when creating NiFi clusters:When creating a cluster, open 9091 TCP port on the NiFi host group. Without it, you will be unable to access the UI.Enabling kerberos is mandatory. You can either use your own kerberos or select for Cloudbreak to create a test KDC.Although Cloudbreak includes cluster scaling (including autoscaling), scaling is not fully supported by NiFi. Downscaling NiFi clusters is not supported - as it can result in data loss when a node is removed that has not yet processed all the data on
In large clusters, where there are multiple services which makes use of single Zookeeper quorum, the state store is maintained as znodes. Hence the count of such znodes are directly proportional to the services that are deployed and also the activity on the cluster. If LLAP apps are deployed in such clusters, it is imperative that slider is enabled (by setting the property, "hadoop.registry.rm.enabled"), this will introduce an overhead in the Znode scans for all the application containers that are created and destroyed on timely basis. The behavior of the scans are as described below, If the property is set in core-site.xml or yarn-site.xml, the YARN Resource Manager will behave as follows: 1. On startup: create the initial root paths of /, /services and /users. On a secure cluster, access will be restricted to the system accounts (see below). 2. When a user submits a job: create the user path under /users. 3. When a container is completed: delete from the registry all service recor
As we understood basic parameters of Hbase in Part 1 , lets try and understand some advanced parameters which should be tried after consultation with experts or by those who know what they are doing. hbase.hstore.blockingStoreFiles Default value of this parameter is 10. We know that each memstore flush creates an Hfile (hbase.hregion.memstore.flush.size), now the purpose this parameter serves is to send a message along the write pipeline that unless these many Hfiles are compacted using minor compaction, we should not go ahead with any more flushes. One would see messages in logs such as “Too many HFiles, delaying flush” . But like it says, it can only delay flush up to certain seconds, and even if the writes continue to happen, memstore could stretch only up to the size guided by : hbase.hregion.memstore.flush.size X hbase.hregion.memstore.block.multiplier Once this limit reaches , no more writes will be accepted by region server for this region and you will see messages like "org.apa
Following bullets provide, vantage point from which Applications on Hive has to be analyzed for performance Application typesIngestion intensive Staging/Storage intensive ETL intensive Consumption intensive Data Model used Level of NormalizationStar schema Table design Storage format usedcompressionUsage of collection data types (struct,array,map)Partition Is there a possibility of over partitionWhether dynamic partition enabled Bucket (Review join conditions on bucketed column ) Functions Usage of UDF,UDAF Query pattern Select with where ( map only)Group by (map shuffle reduce)Order by (map shuffle single reduce )Analytical functionsSort by (map shuffle multi reduce )JoinMap join ( these are mapper only but would seek heavier memory )Sort merge joinPartition column usage -( Especially For huge transaction tables )From source table - Usage of multi passTable size : For huge table
https://roaringelephant.org/2018/04/10/episode-82-dataworks-summit-berlin-2018-preview/ Next week is DataWorks Summit Berlin week! Your two hosts will be in attendance and in this episode we go over the agenda and plan which sessions we want to attend and why. Peppered throughout we add further insights and experiences from previous years. Audio Player 00:00 00:00 Play in new window | Download (Duration: 47:38 — 33.0MB)Unfortunately, Dave’s network was a little unstable and there are a couple audio glitches in this episode.For some session statistics or if you can use some help deciding what sessions you want to attend, you can use the dashboard we created: DSW2018 Berlin dashboard (http://aka.ms/DWS2018)Click the screenshot above or go to http://aka.ms/DWS2018 to access the dashboard. It is a dynamic report: clicking on graph elements (bars of pie slices) will apply filters on all the visualizations and the session list. Use control-click to combine filters.The Summit ag
https://roaringelephant.org/2018/04/03/episode-81-roaring-news/In this installment of Big Data News, we talk about the recent Facebook leak, how everybody is still doing it wrong (according to some at least) and installing Hadoop “the old-fashioned way”. Also briefly covered is Elastic’s X-Pack, now even more “open” than before, but still rather closed it would seem. Breaking News Audio Player 00:00 00:00 Play in new window | Download (Duration: 26:19 — 18.3MB) Please use the Contact Form on this blog or our twitter feed to send us your questions, or to suggest future episode topics you would like us to cover.
Short Description:This article covers how to improve the performance of the NiFi UI. Article:Over time it has been seen that the users of NiFi have been building very large dataflows consisting of many thousands of components (processor, reporting tasks, controller services, etc). While NiFi in no way limits to any degree the number of components that can be added to the NiFi canvas, the more components a user adds, the less responsive the UI becomes. This processor explosion not only affects the responsiveness of the UI, but can also lead to unexpected node disconnections.--- What are the various states a component can have?NiFi components have multiple states that consist of stopped, started, enabled, and disabled. Beyond these states exists one of two statuses:Valid: Component configuration was successfully validated. This means that all required properties have been configured and in the case of processors all required connections have been accounted for (connected to another com
Before we move on to the more popular DR/HA strategies for Amabari,Hive,HBase and using Falcon/snapshot/distcp etc let us take a quick tour of the tiered storage in Hadoop. Link to Series1:https://community.hortonworks.com/content/kbentry/43525/disaster-recovery-and-backup-best-practices-in-a-t.htmlThe concept of tiered storage revolves around the idea of decoupling storage of data and the computing/performing operations on the data.Let us think about it in a more general way:You have a data lake and you are storing a 5 years’ worth of data amounting to a petabyte.You are observing the following scenarios in your cluster: Your storage has become heterogeneous with time meaning you have added new generation racks/machines over time and some of them are better performing (less dense, high spinning/ newer processor) than the others. You are also observing a trend that the last 6 months of data is getting accessed more frequently (Like 90% of the times). While the remaining 4.5 years of
Hbase works smoothly in auto pilot mode if one knows how to tune several of the knobs on its dashboard. Not only its important to understand each knob but also what its dependencies are with other knobs. There are several parameters which require tuning based on your use case or work load to make Hbase work in an optimized way. I will try to explain some of the basic parameters in this article. More advanced parameters would be covered in next article. 1. Hbase_master_heapsize To many’s surprise , a master in Hbase does not do any heavy lifting and hence never require more than 4 - 8 GB in regular setups. Master is basically responsible for meta operations such as create/ delete of tables , keeping check on region servers’ well being using watchers on zookeeper znodes , re-distribution of regions during startup (balancer) or when a region server shuts down. Please note that master's assignment manager keeps track of region states in this memory only and hence if you have huge number of
This is the continuation of article Part-1 provisioning HDP/HDF cluster on google cloud. Now that we have Google credentials created, we can provision the HDP/HDF cluster. Lets first start with HDP cluster.Login to Cloudbreak UI and click on create cluster which will open the create cluster wizard with both basic and advanced options. On the general configuration page Select the previously created Google credentials, Enter name of the cluster , Select region as shown below, Select either HDP or HDF version. For cluster type select the appropriate cluster blueprint based on your requirements. The available blueprint option in cloudbreak 2.5 tech preview are shown below.Next is configuring the Hardware and Storage piece. Select the Google VM instance type from the dropdown. Enter number of instances for each group. You must select one node for ambari server for one of the host group for which the Group Size should be set to "1".Next is setup the Network group. You can select the existing
This articles explains about how to re-run only failed action for oozie workflow. Below are the steps:1. Find out the WF id of the failed/killed job.2. Prepare a job config file which needs to be passed to the rerun command. To do so Follow below steps:2.1 You first need the oozie job configuration xml file. The easiest way to do that is to use the -configcontent option of the oozie job command. E.g. On commandlineexport OOZIE_URL="http://<oozie-host>:11000/oozie"oozie job -configcontent <workflow-id> > job_conf.xml2.2 Delete oozie.coord.application.path property from job_conf.xml. This is to avoid E0301: Invalid resource oozie rerun error.2.3 Now add below property in job_conf.xml. This determines what actions need to be run in the workflow. If we specify specific action nodes here then it will skip those actions. if nothing specified then it will run all actions of the workflow. To run all actions of a workflow:<property> <name>oozie.wf.rerun.skip.nodes<
Objective To import a versioned flow or revert local changes in a versioned flow, a user must have access to all the components in the versioned flow. As such, it is recommended that restricted components are created at the root process group level if they are to be utilized in versioned flows. This tutorial illustrates the benefits of this configuration and demonstrates a new feature introduced in Apache NiFi 1.6.0: granular restricted component categories (NIFI-4885). Users can be given access to all restricted components or to specific categories of restricted components. Note: This tutorial assumes you are familiar with setting up a secure Apache NiFi instance and integrating it with a secure Apache NiFi Registry.Environment This tutorial was tested using the following environment and components: Mac OS X 10.11.6 Apache NiFi 1.6.0 Apache NiFi Registry 0.1.0User Setup Assume the following:There are two users, "sys_admin" and "test_user" who have access to both view and modi
Cloudbreak OverviewOverview Cloudbreak enables enterprises to provision Hortonworks platforms in Public (AWS + GCP + Azure) and Private (OpenStack) cloud environments. It simplifies the provisioning, management, and monitoring of on-demand HDP and HDF clusters in virtual and cloud environments.Following are primary use cases for Cloudbreak: Dynamically configure and manage clusters on public or private clouds.Seamlessly manage elasticity requirements as cluster workloads changeSupports configuration defining network boundaries and configuring security groups.This article focuses on deploying HDP and HDF cluster on Google Cloud.Cloudbreak Benefits You can spin up connected data platform (HDP and HDF clusters) on choice of your cloud vendor using open source Cloudbreak 2.0 which address the following scenarios. Defining the comprehensive Data Strategy irrespective of deployment architecture (cloud or on premise).Addressing the Hybrid (on-premise & cloud) requirements.Supporting the k
All you need is some basic programming skill and a little experience with AWS to get things kick started.Before we proceed, let me explain what actually is Hybrid Cloud Environment?Hybrid cloud solutions combine the dynamic scalability of public cloud solutions with the flexibility and control of your private cloud.Some of the benefits of Hybrid Computing include - Business ContinuityMore Opportunity For InnovationScalabilityIncreased Speed To MarketRisk Management (test the waters)Improved ConnectivitySecure SystemsKafka MirroringWith Kafka mirroring feature you can maintain a replica of you existing Kafka Cluster.The following diagram shows how to use the MirrorMaker tool to mirror a source Kafka cluster into a target (mirror) Kafka cluster.The tool uses a Kafka consumer to consume messages from the source cluster, and re-publishes those messages to the local (target) cluster using an embedded Kafka producer Use CaseDemonstrate hybrid cloud solution using Kafka Mirroring across regi
Using a Pre-Trained Neural Network on MS CoCo DataSet using Mask R-CNN in TensorFlow / Keras. I am always looking for use cases, always. Yesterday I gave a talk at the IoT Fusion Conference in Philadelphia about IoT. I had a Raspberry Pi taking web camera images. I mentioned I wasn't pointing at people because they may not want to be photographed. I am concerned with privacy. It gave me the idea it would be cool to block people or other things from images. Then on queue, a great library shows up in github. Thanks to Minimaxir's Person Blocker, I can now use Apache NiFi to pull remove people from images. I did a couple of minor tweaks to his code to add OpenCV image capture and output some JSON information on what happened. I am running this on an OSX laptop, but at some point I'll move it to a Raspberry Pi, TinkerBoard or NVidia Jetson TX1. Please support this project: https://github.com/minimaxir/person-blocker https://www.patreon.com/minimaxir Using this
SymptomsWhen attempting to access a running cluster via SSH, the connection times out or is rejected Applies ToAll versions of clusters managed by Cloudera Altus CauseUpdate needed for AWS Security group, as the incoming SSH connection originating for client machine may not be included on the defined cluster's AWS Security Group incoming connections Troubleshooting StepsThis issue can typically occur if the AWS security group configured for does not contain an updated IP from the connecting client. To alleviate this issue, please perform the following steps which will add the IP address(es) needed to connect to the appropriate AWS security group: Login to AWSSelect the Appropriate Region in the top-right hand corner, (i.e. US West (Oregon)).Navigate to EC2Under Resources, click on Security GroupsLocate the corresponding Cloudera Altus Security Group configured; For a particular cluster in question, narrow down the options filtering by 
Operational Challenges Legacy applications that lack the ability to leverage the REST interface for HDFS can limit data access for storage.One of the ways to deal with this is a mountable filesystem method for Hadoop. Additions to Linux kernel for native HDFS access are not yet there. Therefore we need to use the “user space” capabilities with something like FUSE to provide this functionality. https://en.wikipedia.org/wiki/Filesystem_in_UserspaceBut before we begin, we need to understand some limitations of the HDFS-FUSE implementation: Because this runs in user space (vs kernel space), performance is not on par with what native API implementations can provide For large data transfers, continuous ingest, and in particular - streaming operations, users should look at solutions like Apache NIFI And last but not least, the use of HDFS-FUSE does not currently support “append” operations for a file So with those limitations understood, lets begin getting things setup on our cluster.Installa
The script provided here can be used to perform health check of a node before installing DSX. There are certain pre-requisites when installing IBM DSX, without which installation cannot go through. This script helps to validate health of a node and check if it is fit to install DSX.Note: Make changes to line 166 and 182 as per your installation. The drives may vary based on where you are doing the installation.# /bin/bashfunction checkRAM(){ local size="$1" local limit="$2" if [[ ${size} -lt ${limit} ]]; then echo "WARNING: RAM size is ${size}GB, while requirement is ${limit}GB" | tee -a ${OUTPUT} return 1 fi}function checkCPU(){ local size="$1" local limit="$2" if [[ ${size} -lt ${limit} ]]; then echo "WARNING: CPU cores are ${size}, while requirement are ${limit}" | tee -a ${OUTPUT} return 1 fi}function usage(){ echo "This script checks if this node meets requirements to install DSX-Local. " echo "Arguments: " echo "--type=[9nodes_master|9nodes_storage|9nodes_comp
Guide to deploying a 3-node DSX Local Cluster on AWSPart 1: Deploying AWS ClusterOn your EC2 dashboard click on launch instance. Step 1: Choose an Amazon Machine Image (AMI) Select AWS Marketplace and search for Centos -> Chose the Centos version you need (I chose CentOS 7 (x86_64) - with Updates HVM) Step 2: Choose an Instance Type. Select m4.4xlarge or m4.2xlarge Step 3: Configure Instance Details Set Number of Instances as 3Step 4: Add Storage You need to add Root storage minimum 50GB and additional EBS storage of around 500GB( if you deploying for just test purpose 300GB is fine). DSX usually require high IOPS so provisioned SSD are preferred. But be advised that provisioned SSD are expensive due to high IOPS.Step 5: Add Tags Optional Step 6: Configure Security Group You need to set up a custom security group, which should include - Custom TCP rule, port 6443 and range 172.31.0.0/16 -> used for internal connectionAllow all connection between nodes Allow restricted connection
Due to a recent change in Google Cloud's handling of requests, all clusters created on Google Cloud Platform with Cloudbreak Cloudbreak 2.4.0 (or earlier 2.x) and 1.16.5 (or earlier 1.x) fail with an error similar to:Infrastructure creation failed. Reason: com.sequenceiq.cloudbreak.cloud.gcp.GcpResourceException: Error during status check: [ resourceType: GCP_DISK, resourceName: hdf-test, stackId: 5, operation: hdftest-s-2-20180323123311 ] [ Cause message: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "global", "message" : "Required 'compute.globalOperations.get' permission for 'projects/*******/global/operations/operation-1521808391647-56813a099af18-300f33eb-8a28c20c'", "reason" : "forbidden" } ], "message" : "Required 'compute.globalOperations.get' permission for 'projects/*******/global/operations/operation-1521808391647-56813a099af18-300f33eb-8a28c20c'" } ]In order to address the issue, we created a 2.4.1 maintenance release. You can upgrade to Cloudbreak 2.4.1 by using
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.