Find and share helpful community-sourced technical articles
Recently active
HDP 2.6/Ambari 2.5 GA! Now available!Key HDP 2.6 and Ambari 2.5 offerings: Hive LLAPSpark 2.1Ambari Views Workflow ManagerAmbari Views Hue-to-View Migration ToolApache Phoenix and HBase Storage Quota SupportApache Ranger Policy Import/ExportMacros/shortcuts in policy authoringPerformance enhancements for policy executionPolicy Sync status pagesApache Atlas Improved metadata catalog search experienceImproved Lineage and Impact analysis user experienceTag based policies for Kafka, HDFS, HBaseManual entity create/updateNew V2 API which significantly improve consumability, extensibility and partner integrationsNumerous performance and scalability improvementsApache Ambari Service Auto-startSmartSense Recommendations in Apache AmbariAmbari Views: File Browser: Display files inside an S3 bucketApache HDFS Device Behavior AnalyticsGeneration 1 Garbage Collector (Technical Preview)Apache YARN Queue PrioritiesEnhanced Fault Tolerance, Diagnostics & Log CollectionSupported Platforms: Cent
This tutorial will walk you through the process of using Cloudbreak recipes to install TensorFlow for Anaconda Python on an HDP 2.6 cluster during cluster provisioning. We'll then update Zeppelin to use the newly install version of Anaconda and run a quick TensorFlow test. Prerequisites You should already have a Cloudbreak v1.14.4 environment running. You can follow this article to create a Cloudbreak instance using Vagrant and Virtualbox: HCC Article You should already have created a blueprint that deploys HDP 2.6 with Spark 2.1. You can follow this article to get the blueprint setup. Do not create the cluster yet, as we will do that in this tutorial: HCC Article You should already have credentials created in Cloudbreak for deploying on AWS (or Azure). This tutorial does not cover creating credentials. Scope This tutorial was tested in the following environment: Cloudbreak 1.14.4 AWS EC2 HDP 2.6 Spark 2.1 Anaconda 2.7.13 TensorFlow 1.1.0 Steps Create Recipe Before you can use a re
This tutorial will walk you through the process of using Cloudbreak to deploy an HDP 2.6 cluster with Spark 2.1. We'll copy and edit the existing hdp-spark-cluster blueprint which deploys Spark 1.6 to create a new blueprint which installs Spark 2.1. This tutorial is part one of a two-part series. The second tutorial walks you through using Zeppelin to verify the Spark 2.1 installation. You can find that tutorial here: HCC Article Prerequisites You should already have a Cloudbreak v1.14.0 environment running. You can follow this article to create a Cloudbreak instance using Vagrant and Virtualbox: HCC Article You should already have updated Cloudbreak to support deploying HDP 2.6 clusters. You can follow this article to enable that functionality: HCC Article Scope This tutorial was tested in the following environment: Cloudbreak 1.14.4 AWS EC2 HDP 2.6 Spark 2.1 Steps Create Blueprint Before we can deploy a Spark 2.1 cluster using Cloudbreak, we need to create a blueprint that specif
Server 1 :- 192.168.154.111 (centos)Server 2 :- 192.168.154.113 (centos2) 1) First install the client on server from where you want to connect Configure Repository and install client [root@centos2 ~]# yum install mysql-client 2) My Sql software installed on centos2[root@centos2 ~]# yum install mysql-server 3)Connected to Mysql on Centos2, Following user exist before creating Hive user and Database.#mysql -u root -p passwordmysql> Select host,user from mysql.user;+-----------------+-------+| host | user |+-----------------+-------+| localhost | root |+-----------------+-------+8 rows in set (0.00 sec)Creating hive user and database mysql> create user 'hive'@'192.168.154.111' identified by 'hive';Query OK, 0 rows affected (0.05 sec)mysql> create user 'hive'@'localhost' identified by 'hive';Query OK, 0 rows affected (0.00 sec)mysql> create database hive;Query OK, 1 row affected (0.00 sec)mysql> grant ALL ON hive.* TO 'hive'@'192.168.154.111';Query OK, 0
Ingesting JMS Data into HiveA company has a lot of data transmitting around the enterprise asynchronously with Apache ActiveMQ, they want to tap into it and convert JSON messages coming from web servers and store into Hadoop.I am storing the data into Apache Phoenix / HBase via SQL. And also since it's so easy, I am storing the data into ORC files in HDFS for Apache Hive access. Apache NiFi 1.2 generates DDL for a Hive Table for ushive.ddlCREATE EXTERNAL TABLE IF NOT EXISTS meetup (id INT, first_name STRING, last_name STRING, email STRING, ip_address STRING, company STRING, macaddress STRING, cell_phone STRING) STORED AS ORCLOCATION '/meetup'insert into meetup(id , first_name , last_name , email , ip_address , company , macaddress , cell_phone)values(?,?,?,?,?,?,?,?) HDF Flow ConsumeJMSPath 1: Store in Hadoop as ORC with a Hive Table InferAvroSchema: get a schema from the JSON dataConvertJSONtoAVRO: build an AVRO file from JSON dataMergeContent: build a larger chunk of AVRO d
Backup Files from Hadoop ListHDFS set parameters, pick a high level directory and work down. /etc/hadoop/conf/core-site.xmlFetchHDFS ${path}/${filename}PutFileStore in localBackup Hive TablesSelectHiveQL Output format AVRO, with SQL: select * from beaconstatusConvertAVROtoORC generic for all the tablesUpdateAttribute tablename ${hive.ddl:substringAfter('CREATE EXTERNAL TABLE IF NOT EXISTS '):substringBefore(' (')}PutFile Use replace directories and create missing directories with directory: /Volumes/Transcend/HadoopBackups/hive/${tablename}For Phoenix tables, I use the same ConvertAvroToORC, UpdateAttribute and PutFile boxes and just add ExecuteSQL to ingest Phoenix data.For every new table, I add one box and link it to ConvertAvroToORC. Done!This is enough of a backup so if I need to rebuild and refill my development cluster, I can do so easily. Also I have them schedule for once a day to rewrite everything.This is Not For Production or Extremely Large Data! This works grea
Apart from checking the topologies from a Storm WebUI, we can also list the active topologies from one of the cluster nodes,We can use the following command to list the same,/usr/hdp/<HDP-version>/storm/bin/storm listIf there are no topologies running, we would get an output as follows,No topologies running.
TOAD is a freeware tool available for OSX and Windows from Dell. It supports Kerberos, Hive, HDFS Explorer, SQL, export to CSV/XLS, charting and logging. The documentation mentions support for up to HDP 2.3, but I had most features work well and fast with HDP 2.4.2 Sandbox. The tool is very smart to auto detect settings using Ambari.AMBARI URL for Sandbox: sandbox.hortonworks.com:8080With Ambari User.Once configured, you can query Hive Tables through Spark SQL or Hive. The performance is quite good.The tool provides a nice view of Charts and Logs.You can can also browse HDFS files.
With Apache Spark 2.1, SparkR supports virtual environment. With VirtualEnv when you deploy Spark on YARN, each SparkR job will have its own library directory which binds to the executor’s YARN container. All necessary third-party libraries are installed into that directory. After the Spark job finishes, the directory is deleted and there is no interference with other Spark job’s environment.SparkR now supports the following two scenarios:1) Internet enabled cluster allows packages to be installed (say from CRAN) on the executors so that R packages can be used in the tasks.2) For isolated cluster, the driver first downloads the required packages or download packages ahead of time and then add them to the cluster. Spark will distribute the packages to executors and we can install them when that executor runs.Both of these scenarios install R packages in a separate local directory on executor for each user, and will not pollute that executor’s native R environment. This directory will b
Ingest data with NIFI to Hive LLAP and DruidSetting up Hive LLAPSetting up DruidConfiguring the dimensionsSetting up SupersetConnection to DruidCreating a dashboard with visualisationsDifferences with ES/Kibana and SOLR/Banana
Background Hadoop and its ecosystem projects are distributed systems. Hadoop provides foundational services,such as distributed file system, cluster wide resource management, that many other projects (e.g OOzie, MR Jobs, Tez, Hive Queries, Spark Jobs) leverage. With this layered approach a Hive Query, or a Spark job leads to sequence of operations that span multiple systems. For example, a Spark job may leverage YARN to get containers to run, it may also read from HDFS. Tracing and debugging problems in distributed systems is hard since it involves tracing call across many systems. Hadoop resolved this problem. Hadoop has implemented a feature of log tracing – caller context (HDFS-9184 andYARN-4349). It can help users to better diagnose and understand how specific applications impact parts of the Hadoop system and potential problems they may be creating (e.g. overloading NN). As HDFS mentioned in HDFS-9184 , for a given HDFS operation, it's very helpful to track which upper level
Prerequisites You should already have a Cloudbreak v1.14.4 environment running. You can follow this article to create a Cloudbreak instance using Vagrant and Virtualbox: HCC Article You should already have credentials created in Cloudbreak for deploying on AWS (or Azure). Scope This tutorial was tested in the following environment: macOS Sierra (version 10.12.4) Cloudbreak 1.14.4 AWS EC2 NOTE: Cloudbreak 1.14.0 (TP) had a bug which caused HDP 2.6 clusters installs to fail. You should upgrade your Cloudbreak deployer instance to 1.14.4. Steps Create application.yml file UPDATE 05/24/2017: The creation of a custom application.yml file is not required with Cloudbreak 1.14.4. This version of Cloudbreak includes support for HDP 2.5 and HDP 2.6. This step remains for educational purposes for future HDP updates. You need to create an application.yml file in the etc directory within your Cloudbreak deployment directory. This file will contain the repo information for HDP 2.6. If you follow
It is often the case that we need to install Hortonworks in environments with strict requirements. One such requirement may be that all http traffic must go through a dedicated proxy server.When installing Hortoworks HDP using Ambari, you can find instructions for configuring Ambari to use the proxy on the docs.hortonworks.com website. For example, here is the page for configuring Ambari 2.2http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_ambari_reference_guide/content/ch_setting_up_an_internet_proxy_server_for_ambari.htmlNotice that the instructions mention that you must also configure yum to use the proxy. It’s important to note that the above instructions for yum will configure all repositories to use the proxy, and you may not want this behavior.So while it is great to set the proxy at yum’s global level, you should review any existing repository configurations to determine if they should not use the proxy. If any repositories should not use the proxy, then you can update
ENVIRONMENTThis problem has been replicated and fixed on HDP 2.5.xPROBLEMI have followed up the https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_zeppelin-component-guide/content/zepp-with-spark.html to add additional jar for livy - copy jar file into /usr/hdp/<version>/livy/repl-jars folder. Restarted livy service afterwards. When running: %livy import de.xxx.statistik.program.model.LineModel I am getting: <console>:25: error: not found: value de import de.xxx.statistik.program.model.LineModel SOLUTIONAdded the following into Ambari -> MapReduce2 -> mapreduce.application.classpath - :$PWD/*Before Change$PWD/mr-framework/hadoop/share/hadoop/mapreduce/*:$PWD/mr-framework/hadoop/share/hadoop/mapreduce/lib/*:$PWD/mr-framework/hadoop/share/hadoop/common/*:$PWD/mr-framework/hadoop/share/hadoop/common/lib/*:$PWD/mr-framework/hadoop/share/hadoop/yarn/*:$PWD/mr-framework/hadoop/share/hadoop/yarn/lib/*:$PWD/mr-framework/hadoop/share/hadoop/hdfs/*:$PWD/mr-framework/ha
If you haven't already see the 1st tutorial I made which guides you through the setup of rapidminer to read from hive. We will pick up where it leaves off. Read-from-hive-using-rapidmineradd a "set role" operator next to the your "retrieve from hive operator" that is located in the "Radoop Nest".This allows you to select the column you wish to use in the model.In this case I set the name field to the category column in my dataset. You can obtain this dataset here: dataThis is just for illustrative purposes so if you have data that has labels already feel free to use in place of this. Now add a "split validation" operator and connect the ports.Then double click the validation operator. Add a "decision tree" operator on the left pane and add an "apply model" and "performance" operator and connect them all. For performance select accuracy or whatever you wish to check. If you are using the sample data provided in this tutorial you will see some errors. Click on the error icons on each ope
First you need to have Rapidminer downloaded and installed on your machine. https://my.rapidminer.com/nexus/account/index.html#downloadsOnce installed open Rapidminer and look at the list of operators. There is a link at the bottom left to "Get More Operators"Click the link then search for "Radoop"Select both packages and click install. After Rapidminer restarts you will see in the extensions folder the new operators we downloaded. Now we need to configure the connection. In the toolbar select "connections" then "Manage Radoop Connections" Select "+ New Connection".If you have your Hadoop config files available you can use those to set the properties otherwise select "manual" Select the hadoop version you have. In my case "Hortonworks 2.x" and supply the master url... If you have multiple masters select the check box and provide the details. Click "OK"Now click ">> Quick Test" If successful you are all set to read from Hive. Drag an "Radoop Nest" operator onto the canvas. Select
Ambari user sync will fail to map or import users when trying to pull from groups with 1,500+ members.What we see when we use ldapsearch to query a large group is: <snip> member;range=0-1499: CN=Elgine Metzger,OU=users,OU=test,DC=j4ck3l,DC=net member;range=0-1499: CN=Friedolf Welter,OU=users,OU=test,DC=j4ck3l,DC=net </snip> This is seems to come from the LDAP Policy value: MaxValRange "MaxValueRange controls the number of values that are returned on a single attribute on a single object. Default"1500 Hard Limit: 5000" -- http://ldapwiki.com/wiki/MaxValRange To fix this: Go to the domain controller that we’re connecting to for the sync Find the file ntdsutil.exe (most likely under c:\windows\system32 or c:\winnt\system32 Run the ntdsutil.exe Type “ldap policies” and enter Type "connections" and enter Type "Connect to server [YourDCName]" and enter Type "q" and enter Type "Show Values" to see the current settings Type “Set MaxValRange to 2500” and enter Type “Commit Change
We tried 3 scenarios and all failed.1) Creating Hive Table on HBase. (proper hive/hbase polices for user) hive> CREATE TABLE hbase_table_1(key int, value string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf1:val") TBLPROPERTIES ("hbase.table.name" = "xyz", "hbase.mapred.output.outputtable" = "xyz"); FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:org.apache.hadoop.hbase.security.AccessDeniedException: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions for user 'abc@ABC.COM' (action=create) at org.apache.ranger.authorization.hbase.AuthorizationSession.publishResults(AuthorizationSession.java:254) at org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor.authorizeAccess(RangerAuthorizationCoprocessor.java:595) at org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor.requirePermission(RangerAuth
Problem:Following upgrade to 2.5 Oozie Sqoop job which previously worked now fails withoozi-W@sqoop-aa6c] Launcher exception: org/json/JSONObjectjava.lang.NoClassDefFoundError: org/json/JSONObject at org.apache.sqoop.util.SqoopJsonUtil.getJsonStringforMap(SqoopJsonUtil.java:43) at org.apache.sqoop.SqoopOptions.writeProperties(SqoopOptions.java:759) at org.apache.sqoop.metastore.hsqldb.HsqldbJobStorage.createInternal(HsqldbJobStorage.java:399) at org.apache.sqoop.metastore.hsqldb.HsqldbJobStorage.create(HsqldbJobStorage.java:379)Solution:Ensure that 'java-json.jar' file exists in the following locations: /usr/hdp/current/sqoop-client/lib /usr/hdp/<version>/sqoop/lib Also copy this jar into HDFS and reference it in your oozie workflow:e.g. hdfs dfs -put /usr/hdp/current/sqoop-client/lib/java-json.jar /user/oozie/oozie_scripts/lib/and change workflow.xml: <archive>/user/oozie/oozie_scripts/lib/java-json.jar#java-jso
Below are the steps for Oozie database migration from Derby to Postgresql..Step 1 - Have Postgresql server installed and ready to be configured..Step 2 - Stop Oozie service from Ambari UI..Step 3 - Install Postgresql JDBC connector.yum install postgresql-jdbc.Step 4 - On Ambari Server, run below commandambari-server setup --jdbc-db=postgres --jdbc-driver=/usr/share/java/postgresql-jdbc.jarNote - Please pass appropriate driver if /usr/share/java/postgresql-jdbc.jar does not exists. ..Step 5 - Login to Postgesql DB as postgres user and create a blank 'oozie' database and grant required permissions to the 'oozie' user.[root@ambaview ~]# su - postgres-bash-4.1$ psqlpsql (8.4.20)Type "help" for help.— postgres=# CREATE DATABASE oozie;CREATE DATABASEpostgres=#— CREATE USER oozie WITH PASSWORD 'oozie’;postgres=# CREATE USER oozie WITH PASSWORD 'oozie';CREATE ROLEpostgres=#— GRANT ALL PRIVILEGES ON DATABASE oozie TO oozie;postgres=# GRANT ALL PRIVILEGES ON DATABASE oozie TO oozie;GRANTpostgres
Affected versions:1.2.x, 1.3.0Symptoms:The SmartSense view if not displayed even if the HST-Server is up and running. Also , refer the steps that were executed during the upgrade process . It is possible this error has occurred during “hst upgrade-ambari-service” step.Un-installing old view ... Installing new view ... ('request method', 'GET') ('request data', None) ('request url', 'http://ambari-server.abcxyz.net:8083/api/v1/views/HORTONWORKS_SMARTSENSE') ('request type', 'http') ('request host', 'ambari-server.abcxyz.net:8083') ('request selector', '/api/v1/views/HORTONWORKS_SMARTSENSE') ('request header', [('Host', 'ambari-server.abcxyz.net:8083'), ('Authorization', 'Basic YWRtaW46Y24zild6MmT9ODVw'), ('User-agent', 'Python-urllib/2.7')]) ('response code', None) ('response content', None) Traceback (most recent call last): File "/usr/sbin/hst-server.py", line 1384, in <module> main(sys.argv) File "/usr/sbin/hst-server.py", line 1361, in main upgrade_ambari_plugin(options) File
Affected versions:1.2.x, 1.3.0Symptoms: 2-way ssl setup fails with an error as given below. This error message is available in hst-server.log or hst-gateway.logINFO 2016-08-25 06:16:00,690 security.py:182 - Agent key not exists, generating requestINFO 2016-08-25 06:16:00,691 security.py:242 - openssl req -new -newkey rsa:1024 -nodes -keyout "/var/lib/smartsense/hst-agent/keys/hdp1-hrdd-vm1.akrocl34v0sjr9flwro4laslcd.gx.internal.cloudapp.net.key" -subj /OU=hdp1-hrdd-vm1.akrocl34v0sjr9flwro4laslcd.gx.internal.cloudapp.net/ -out "/var/lib/smartsense/hst-agent/keys/hdp1-hrdd-vm1.akrocl34v0sjr9flwro4laslcd.gx.internal.cloudapp.net.csr" was finished with exit code: 1 - an error occurred parsing the command options.INFO 2016-08-25 06:16:00,711 security.py:188 - Agent certificate not exists, sending sign request Reason: openssl does not support SubjectName longer than 64 chars. SubjAltName should be used for longer host names.#openssl req -new -newkey rsa:1024 -nodes -keyout "./hdp1-hrdd-vm1.a
Affected versions:1.3.xSymptoms: When tried to install SmartSense then it failed on Activity Analyzer installation which is the first step of SmartSense installation.File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py", line 73, in _getattr_raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!")resource_management.core.exceptions.Fail: Configuration parameter 'hadoop-env' was not found in configurations dictionary!Similar error occurs when trying to reinstall HST SERVER then it failed with similar message.File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py", line 73, in _getattr_raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!")resource_management.core.exceptions.Fail: Configuration parameter 'namenode_host' was not found in configurations dictionary!Reason: SmartSense components assumed that hdfs will
Affected versions:1.3.xSymptoms: A Support bundle capture fails if case number starts with 0, like below :hst-agent.py: error: option -c: invalid integer value: '00100870'Reason: The root cause of this issue is that the case number is handled as octal based, due to the leading zero. After that is converted to decimal base.Solution:Fixed in 1.4.0 and remove the preceding zeros for 1.3.x and capture again
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.