Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
Overview Time to continue my series on news author personality detection! This tutorial will look at data science, Zeppelin notebooks with the idea of predicting the popularity of an article based on the personality of an author. This tutorial does assume that you completed part 1 and part 2 of the series. After completing this part, your architecture will look like this: This tutorial will be divided in sections: Section 1: Update Nifi to send article data to Phoenix Section 2: Read Phoenix data with Spark in Zeppelin Note Section 3: Train Linear Regression Model Section 4: Make and store article popularity predictions Note: This exercise is a very simplified way to apply machine learning. I spent very little time selecting the appropriate algorithm, accumulating enough data or even challenging whether or not the personality of an author is a viable predictor for personality. This is a full time job, it's called being a data scientist! But hopefully this will enable
We have seen performance issue and stability issue in heavy workload system, this is due to disk latency/Shared Disk. I.e frequent namenode failover, longer boot time, slower checkpoint, slower logging, Higher fsync will cause session expiry, etc. We never recommend a shared disk for Namenode, Journal node and Zookeeper. All of these services should have a dedicated disk. You can configure following disk type according to your HDFS workload.[dfs.namenode.name.dir] Namenode fsimage directory, dedicated disk => HDD 15K RPM [dfs.journalnode.edits.dir] Namenode edit log directory, dedicated disk => SSD [dataDir from zoo.cfg] Zoookeeper snapshot and transaction logs, for normal usage from ZKFC and HBase => HDD 15K RPM Zoookeeper snapshot and transaction logs, If it used by Nifi/ Accumulo/ Kafka/ Storm/ HBase and ZKFC => SSD If you are using RAID for meta-directory(dfs.namenode.name.dir & dfs.journalnode.edits.dir), then disable RAID and check the Non-RAID performance. Ther
Introduction With HDFS HA, the NameNode is no longer a single point of failure in a Hadoop cluster. However the performance of a single NameNode can often limit the performance of jobs across the cluster. The Apache Hadoop community has made a number of NameNode scalability improvements. This series of articles (also see part 2, part 3, part 4 and part 5) explains how you can make configuration changes to help your NameNode scale better and also improve its diagnosability. Audience This article is for Hadoop administrators who are familiar with HDFS and its components. If you are using Ambari or Cloudera Manager you should know how to manage services and configurations. HDFS Audit Logs The HDFS audit log is a separate log file that contains one entry for each user request. The audit log is a key resource for offline analysis of application traffic to find out users/jobs that generate excessive load on the NameNode. Careful analysis of the HDFS audit logs can also identify app
The service RPC port gives the DataNodes a dedicated port to report their status via block reports and heartbeats. The port is also used by Zookeeper Failover Controllers for periodic health checks by the automatic failover logic. The port is never used by client applications hence it reduces RPC queue contention between client requests and DataNode messages.Steps:1) Ambari -> HDFS -> Configs -> Advanced -> Custom hdfs-site -> Add Propertydfs.namenode.servicerpc-address.<dfs.internal.nameservices>.nn1=<namenode1 host:rpc port>dfs.namenode.servicerpc-address.<dfs.internal.nameservices>.nn2=<namenode2 host:rpc port>dfs.namenode.service.handler.count=(dfs.namenode.handler.count / 2)This RPC port receives all DN and ZKFC requests like block report, heartbeat, liveness report, etc.. Example from hdfs-site.xml,dfs.nameservices=shva dfs.internal.nameservices=shva dfs.ha.namenodes.shva=nn1,nn2 dfs.namenode.rpc-address.shva.nn1=hwxunsecure2641.openstackloc
Objective -To store multiple row versions in HBase to evaluate the impact on performance when doing reading all versions vs. getting the latest version. To put this differently, would storing multiple versions affect the performance when querying the latest version.-Using NiFi to be able to quickly ingest millions or rows into HBaseWarning -Do not store more than a few versions in HBase. This can have negative impacts. HBase is NOT designed to store more than a few versions of a cell.Step 1: Create Sample Workflow using NiFi to ingest data into HBase table -Create HBase TableDataset: https://www.citibikenyc.com/system-datacreate 'venkataw:nycstations','nycstationfam'0 row(s) in 1.3070 secondshbase(main):014:0> desc 'venkataw:nycstations'Table venkataw.nycstations is ENABLEDvenkataw.nycstationsCOLUMN FAMILIES DESCRIPTION{NAME => 'nycstationfam', BLOOMFILTER => 'ROW', VERSIONS => '1', IN_MEMORY => 'false', KEEP_DELETED_CELLS => 'FALSE', DATA_BLOCK_ENCODING => 'NONE',
1. Create keystore file first.keytool -genkey -keyalg RSA -alias ooziehost -keystore keystore.jks -validity 360 -keysize 20482. Login to Ambari server and go to Oozie configurations. 3. Add below configurations under "Advanced oozie-env"export OOZIE_HTTPS_PORT=11443export OOZIE_HTTPS_KEYSTORE_FILE=/tmp/keystore.jksexport OOZIE_HTTPS_KEYSTORE_PASS=bigdata4. Restart Oozie service from UI.5. Now launch the Oozie UI from quick links - you should be able to access the URLhttps://OOZIEHOST:11443/oozie/Note: Make sure to import the cert into Ambari Truststore.
If you have seen my article on Microservice on Hive, this is the Phoenix version. Phoenix seems to be a better option for REST microservice. I like having HBase as my main data store, it's very performant and highly scalable for application style queries.See: https://community.hortonworks.com/articles/53629/writing-a-spring-boot-microservices-to-access-hive.htmlThis microservices is a Spring Boot REST service on top of the data loaded by this NiFi data flow.See: https://community.hortonworks.com/content/kbentry/54947/reading-opendata-json-and-storing-into-phoenix-tab.htmlPom<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.dataflowdeveloper</groupId> <artifactId>phoenix</artifactId> <version>
The following link has some sample code to connect to a secure Hive Server2 via the default connection string and via knox. https://github.com/vspw/hiveJDBCIt uses the following Jar files:-commons-configuration-xx.jar (UGI set configurations and metrics)commons-logging-xx.jar (*Not mandatory)hadoop-auth-xx.jarhadoop-common-xx.jar (UGI stuff, hadoop configurations)hive-jdbc-1.2xx-standalone.jarlog4j-xx-api-xx.jar (for log4j)log4j-api-xx.jar (for log4j)log4j-core.xx.jar (for log4j)xercesImpl-xx.jar It also reads a bunch of properties like "keytabLocationWindows", "jdbcConnStringDirect", "hiveQuery" etc. from a properties file and logging is enabled with log4j2.xml.The class: "HiveJDBCKnox" , has some instructions to make knox connectivity work on windows platform as well.
Got error [User home directory not found] when creating WorkFlow Manager view in AmbariResolve:sudo -u hdfs hdfs dfs -mkdir /user/adminsudo -u hdfs hdfs dfs -chown admin /user/adminResule:
SYMPTOMOozie web UI doesn't work on Internet explorer in Kerberized environment, it gives below error message even after making sure that Ext JS libraries are installed correctly.Oozie web console is disabled.To enable Oozie web console install the Ext JS library. ROOT CAUSEhttps://issues.apache.org/jira/browse/OOZIE-2322 - Because of empty space as a value of oozie.authentication.cookie.domainWORKAROUND1. Set value of oozie.authentication.cookie.domain to name of your corporate domain in oozie-site.xml via Ambari UI.Example:<property><name>oozie.authentication.cookie.domain</name><value>hortonworks.com</value></property>2. Stop Oozie server via Ambari.3. Move oozie.war to some other location.mv /usr/hdp/current/oozie-server/oozie-server/webapps/oozie.war /root/4. Move Oozie webapp directory to some other location. mv /usr/hdp/current/oozie-server/oozie-server/webapps/oozie /root/5. Regenrate Oozie war file using below command/usr/hdp/current/oozie-s
Related: ApacheCon 2018 in MontrealWith my talk in a dual language city, I thought perhaps I should do my talk in French. My college French is very rusty and my accent is very New Jersey. The two don't mix well. So let's have Apache NiFi do it for me. After publically debating this on Twitter, I decided to see if I could implement a solution.Secret:Most of the heavy lifting is done by Python which calls Google Translate API under the covers, automagically.My Presentation is here: https://www.slideshare.net/bunkertor/apache-deep-learning-101-apachecon-montreal-2018-v031Flow to Extract FrenchApache Tika extracts the text from PDF or PPTX and converts to text or HTML. ( I chose text). Run the Translate Python with a sentence extracted from the PDF or PPTX.Let's send that translated french line to it's own slack channel.Let's send the english to another.And there it is:runtranslate.shpython3.6 -W ignore /Volumes/TSPANN/2018/talks/IOT/translate.py "$1" 2>/dev/nulltranslate.py
Some times though moving master wizard is completed still UI shows the message as "Move Master Wizard In Progress".To fix this problem you can follow below steps.Step-1)curl -u admin:admin -i -H 'X-Requested-By: ambari' -X POST -d '{"wizard-data":"{\"userName\":\"admin\",\"controllerName\":\"reassignMasterController\"}"}'http://ambari.example.com:8080/api/v1/persistStep-2). Login to the Ambari UI with "admin" user.Step-3). Create a new "local" user with some name like "admin1" (any password like "admin1")Step-4). Open another browser and login with the "admin1" user. User might see that the "Add Service Wizard in Progress" link is blinking at the top.Step-5). Now from the earlier browser where we logged in with "admin" user. We will need to click on the "Actions" => "Add Service"Step-6). Now if the "admin" user does nothing. Or Shuts down his/her laptop. Still the other admin users (like "admin1") will not be able to perform any action in the ambari UI and will keep seeing the "Add
During upgrade, if Namenode restarts timeout, it may not appear to be a problem as the request times out from the Ambari UI but the restart process continue to run in the background.However, this can lead to inconsistencies in Ambari database and cause further issues at Finalize upgrade step.Note: This article is only useful upto Ambari-2.5.x version and must be performed before starting the upgrade process.Ambari-2.6 onwards it is a one step change where you only need to update the ambari.properties file instead of all the xml changes listed below.For Ambari-2.6 onwards: refer this document https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-upgrade/content/preparing_to_upgrade_ambari_and_hdp.htmlCaution: The steps described below are a hack! It is not recommended that we go about making changes to upgrade XML files based on our needs. Please exercise caution and measure your risks before following the steps.You can increase the timeouts for namenode restart using the f
Using GluonCV 0.3 with Apache MXNet 1.3 source code: https://github.com/tspannhw/nifi-gluoncv-yolo3 *Captured and Processed Image Available for Viewing in Stream in Apache NiFi 1.7.xuse case:I need to easily monitor the contents of my security vault. It is a fixed number of known things. What we need in the real world is a nice camera(s) (maybe four to eight depending on angles of the room), a device like an NVidia Jetson TX2, MiniFi 0.5 Java Agent, JDK 8, Apache MXNet, GluonCV, Lots of Python Libraries, a network connection and a simple workflow. Outside of my vault, I will need a server(s) or clusters to do the more advanced processing, though I could run it all on the local box. If the number of items or certain items I am watching are no longer in the screen, then we should send an immediate alert. That could be to an SMS, Email, Slack, Alert System or other means. We had most of that implemented below. If anyone wants to do the complete use case I can assist.demo i
This article is for those who want a cheat sheet for a smooth installation of HDP in a Dev, or Test with one or more of the following requirements: Place all the log data into a different directory, not /var/log All your service user names must be prefixed with the cluster name. The requirement is that these users must be centrally managed by AD or an LDAP. You do not have any local users in the Hadoop cluster, including Hadoop service users. This becomes important if you wish to have Centrify deployed also, or if you would be deploying multiple clusters with a single LDAP/ AD integration. Once again, these service names should have a cluster-prefix. You want to set appropriate YARN, Tez and MapReduce, Amabri Metrics Memory Parameters during Install. Side Note: It is always prudent to get Professional Service assistance to either install or configure your production deployment, to make sure all the per-requisites, unique to your environment are covered and met. ----------------------
One quirk of Apache Phoenix when compared to traditional RDBMS is that Phoenix provides no notion of simple username/password based authentication. This largely stems from Apache HBase, which Phoenix is built on, also not providing this as a form of authentication. With the introduction of the Phoenix Query Server, we have a number of new means which can be used to interact with Phoenix. We also have the ability to hook together new systems to provide features, like username/password authentication, which are not traditionally supported. There are multiple products available which can perform this kind of authentication, but we can trivially show that this works via a common HTTP load balancer, HAProxy. Let's assume that we have the Phoenix Query Server running on our local machine listening on the standard 8765 port. We can enable some trivial authentication using HAProxy. First, we need to create our HAProxy configuration file. global maxconn 256defaults mode http option redisp
The quickest way to launch a cluster with Cloudbreak is through the CLI. This allows you to specify all of the required settings and submit the request to Cloudbreak. The cluster will show up in Cloudbreak just like it does when launched via the wizard. The quickest way to generate the JSON template is to set up a cluster through the wizard.Generating the JSON Template from Cloudbreak GUIThe first way you can create the template is from the Create Cluster wizard. In the Cloudbreak GUI, walk through all of the steps to configure a cluster. At the end, before you click "Create Cluster" you can click "Show CLI Command". The second way is to go the a running cluster in the Cloudbreak GUI. Click the "Actions" button and you can click "Show CLI Command".The CLI command dialog comes up with the JSON template in the top text box and the Cloudbreak CLI command in the lower text box. Click the "Copy the JSON" button and the paste it into a text file. Copy the CLI command to a note for la
This article explains how to delete a Registered HDP cluster from DPSSteps:1. Download the attached file dp-cluster-remove.txt and store it in postgres db server. 2. psql -f ./dp_cluster_remove.txt -d dataplane -v cluster_name=c149-d --> <dataplane database name>cluster_name --> Your HDP clustername that should be removed from DPS cluster.Example Output:-[root@rraman bin]# docker exec -it dp-database /bin/bash bash-4.3# su - postgres de0ff40ad912:~$ ls -lrt total 8 drwx------ 19 postgres postgres 4096 Sep 21 01:27 data -rwxrwxrwx 1 postgres postgres 892 Sep 21 17:59 dp_cluster_remove.txtde0ff40ad912:~$ psql -f ./dp_cluster_remove.txt -d dataplane -v cluster_name=c149 CREATE FUNCTION remove_cluster_from_dps ------------------------- (1 row) DROP FUNCTION
Running Apache MXNet Deep Learning on YARN 3.1 - HDP 3.0 With Hadoop 3.1 / HDP 3.0, we can easily run distributed classification, training and other deep learning jobs. I am using Apache MXNet with Python. You can also do TensorFlow or Pytorch. If you need GPU resources, you can specify them as such: yarn.io/gpu=2 My cluster does not have an NVidia GPU unfortunately. See: https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.0.0/data-operating-system/content/dosg_recommendations_for_running_docker_containers_on_yarn.html Running App on YARN [root@princeton0 ApacheDeepLearning101]# ./yarn.sh18/09/21 15:31:22 INFO distributedshell.Client: Initializing Client18/09/21 15:31:22 INFO distributedshell.Client: Running Client18/09/21 15:31:22 INFO client.RMProxy: Connecting to ResourceManager at princeton0.field.hortonworks.com/172.26.208.140:805018/09/21 15:31:23 INFO client.AHSProxy: Connecting to Application History server at princeton0.field.hortonworks.com/172.26.208.140:1020018
There can be situation where you are adding a Host in Ambari and the Add Host Wizard is stuck in UI with message :Please wait while the hosts are being checked for potential problemsIt will be tougher for you to proceed as next button will be disabled and you migt need to wait indefinitely for the Host to respond.To analyze what happened.We might need to look on ambari-agent hosts and ambari-server logs.As usually this Host checking will take longer we can actually skip the same using the Ambari experimental Wizards Disabling HostCheck On AddHost WizardSteps1) navigate in another Tab to URL :
Cloudbreak 2.8.0 Technical Preview release is now available!New featuresCloudbreak 2.8.0 TP introduces the following new features:FeatureDescriptionDocumentationAWS GovCloudCloudbreak supports installing Cloudbreak and creating Cloudbreak-managed clusters on AWS GovCloud. Deploying on AWS vs AWS GovCloudEBS volume encryption on AWSYou can optionally configure encryption for EBS volumes attached to cluster instances running on EC2. Default or customer-managed encryption keys can be used.EBS encryption on AWSGCP volume encryptionBy default, Compute Engine encrypts data at rest stored on disks. You can optionally configure encryption for the encryption keys used for disk encryption. Customer-supplied (CSEK) or customer-managed (CMEK) encryption keys can be used.Disk encryption on GCPUser authorizationCloudbreak introduces a new authorization model, which allows resource sharing via organizations.User authorizationOperations audit loggingCloudbreak records an audit trail of the actions per
Hi All, In this article we will talk about how to setup a separate zookeeper quorum for Kafka which is managed by Ambari. Please note at this moment Amabri only can support one ZK Quorum, in order to have two Quorum in a cluster (1) for Kafka dedicatedly (2) for all other Hadoop services Only supported option by HWX is to setup another setoff Zookeeper server (3 or 5) and refer those ZK servers as quorum in Amabari managed Kafka Prerequisite: - All Servers should have java Installed Download the zk tar files:- http://www-eu.apache.org/dist/zookeeper/stable/ Password less ssh with all the host servers. Steps (to setup Zookeeper Server) :- Please run all the below command in all the nodes where zookeeper will be installed manually Create hadoop group and zookeeper ID groupadd hadoop useradd zookeeper -g hadoop 2. Setting up the environment variables (ease of deployment) export ZOOKEEPER_CONF_DIR=/etc/zookeeper/conf export ZOOKEEPER_LOG_DIR=/var/log/zookeeper ex
If cluster is installed with Ambari 2.5 , Upgrading to Ambari2.6.x cause service re-start ( client) failure and Add service also fails with installation.with above combination, you might be hitting https://issues.apache.org/jira/browse/AMBARI-24629 if you see error like below 2018-09-15 08:37:13,748 - Looking for matching packages in the following repositories: HDP-2.6, HDP-UTILS-1.1.0.21 2018-09-15 08:37:15,841 - No package found for hive_${stack_version}(hive_(\d|_)+$) 2018-09-15 08:37:15,844 - The repository with version 2.6.1.0-129 for this command has been marked as resolved. It will be used to report the version of the component which was installedroot cause is already explained in the BUG.How to fix the issue:1. First find out what is your current version repo version id. in browser go to http://apappu3.hdp.com:8080/api/v1/stacks/HDP/versions/2.6/repository_versions?fields=operating_systems/repositories/Repositories/base_url From the response find out the repository_version_id f
This article will (hopefully) be helpful if you are trying to use LLAP/Hive Interactive, but it fails or gets stuck during startup. This is often caused by misconfiguration, esp. w.r.t. sizing, but could also be a bug. Ambari performs 2 major activities when (re)starting Hive Interactive - first it starts LLAP itself on the YARN cluster, then it starts HiveServer2 for Hive Interactive. Usually the problems happen during LLAP startup.This article will help you to pinpoint the problem if there's some bug or non-sizing-related misconfiguration. It will also point at the sizing document where appropriate; the sizing and setup document can be found at https://community.hortonworks.com/articles/149486/llap-sizing-and-setup.html. For general information (e.g. where the logs are) see the parent article.Note: for all the logs, it is sometimes the case that the last error in the log is InterruptedException or some other similar error during component shutdown after something else has already fai
Many times Ambari throws installation errors like "No package found for hive_${stack_version}(hive_(\d|_)+$) ..." There can be many reasons for this failure.The root cause for this issue is, basically Ambari could not be able to determine the installable package.Reason1: Check if the same package is already installed using different repoid/sateliterepotag. that can be check using below commandyum list installed | grep packagenameEx: yum list installed | grep hiveIf it shows the entries then determine if those are installed with different repoid/sateliterepotag.In Ambari task logs you can find what tag/repo Ambari is using to installNow see "yum list installed" has the correct repoId - if it is not matching then manually uninstall that library and let Ambari install it.Reason2: If you are using Satelite repository - Ambari should show the repo tag name at "Applicable repositories: Satelitehdp265.."If it is not showing correctly, that means you repo version definition is incorrect. Make
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.