Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
HBaseFsck (hbck) is a tool for checking for region consistency and table integrity problems and repairing a corrupted HBase. It works in two basic modes — a read-only inconsistency identifying mode and a multi-phase read-write repair mode. To check to see if your HBase cluster has corruptions, run hbck against your HBase cluster: $ ./bin/hbase hbck At the end of the commands output it prints OK or tells you the number of INCONSISTENCIES present. You may also want to run hbck a few times because some inconsistencies can be transient (e.g. cluster is starting up or a region is splitting). Operationally you may want to run hbck regularly and setup alert if it repeatedly reports inconsistencies . A run of hbck will report a list of inconsistencies along with a brief description of the regions and tables affected. The using the -details option will report more details including a representative listing of all the splits present in all the tables.$ ./bin/hbase hbck -details If you just want
In this article I will describe how NiFi interacts with Spark via Livy. This is necessary because we are going with the assumption that HDF and HDP are two separate clusters and NiFi can't access Spark binaries so as to directly perform shell commands submitting spark jobs. There are two modes of Spark submissions via Livy: Batch: REST endpoint is /batchesInteractive: REST endpoint is /sessionsBatch based invocations create a yarn container and then tears it down once the spark job finishes, where-as in interactive mode the yarn container is created and is kept alive until it's explicitly told to be closed. Based on user requirements you may go with the either of them based on SLAs. Be aware, batch-based invocations have additional time lag due to YARN container creation, where-as in interactive mode only first call has time lag and subsequent invocations are faster.Batch modeOverview:Sample spark code (python based):import sysfrom pyspark import SparkContext,SparkConfAPP_NAME =
this Article explain the additional steps required to configure wire encryption by exporting/importing the certificates across the cluster for distcp to work on wire encrypted multi cluster . Problem: on wire encrypted multi cluster environment distcp fails if steps given in this article are not performed, we may see ssl error as follows:javax.net.ssl.SSLHandshakeException: DestHost:destPort <KMS_HOST>:9393 , LocalHost:localPort null:0. Failed on local exception: javax.net.ssl.SSLHandshakeException: Error while authenticating with endpoint: https://<KMS_HOST>e:9393/kms/v1/?op=GETDELEGATIONTOKEN&rene. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) Prerequisites: 1) two cluster should be setup with Ranger 2) wire encryption should be enabled on the both clusters already. https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/content/ena
Current version of Ambari doesn't monitor Number of Hiveserver2 connections. We often see Hiveserver2 slowness due to heavy load as part increase in number connections to Hiveserver2. Setting up a alert for Hiveserver2 established connections will help us to take required actions like adding additional Hiveserver2 services, proper load balancing or scheduling the jobs.NOTE : Please go through this article https://github.com/apache/ambari/blob/2.6.2-maint/ambari-server/docs/api/v1/alert-definitions.md to understand Ambari Alert DefinitionPlease find the python script and .json file used below in the attachments. alert_hiveserver_num_connection.py - Is the python script that finds the current established connection for each Hiveserver2 and based on number of connection it returns 'CRITICAL', 'WARN', 'OK’alerths.json - Is the Ambari Alert definition Below are the steps to setup the Ambari Alert on Hiveserver2 Established connections. Step 1 - Place the file “alert_hiveserver_num_connectio
Problem : Hiveserver2 goes into hung state for various reasons and Hiverserver2 is the one which compiles and executes the queries that we run. Hiveserver2 logs and Jstack of Hiveserver2 process can help identify the root cause in most of the cases.Hive Query processing comprises of 2 major steps after receiving the query from client and connects to metastore is compilation phase (Parsing, Semantic analyzing, Plan generation and optimization) and Execution phase (running mapreduce tasks). Hive Compiler : The component that parses the query, does semantic analysis on the different query blocks and query expressions and eventually generates an execution plan with the help of the table and partition metadata looked up from the metastore.. The most common causes of hung state due to compilation are explained below. Single Threaded Compilation Phase : Hiveserver2 compilation phase is single threaded by design in Hive1 and when a huge query is submitted to a hive client (JDBC/ODB
Problem On some of the HCP deployments, the Indexing topology might show up as "stopped, while the actual topology might be running (when you check in Storm UI). Additionally, one might also see the following kind of error messages in ambari-agent,log. INFO 2018-02-05 22:21:39,990 PythonReflectiveExecutor.py:67 - Reflective command failed with exception:Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/ambari_agent/PythonReflectiveExecutor.py", line 59, in run_file imp.load_source('__main__', script) File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.3/package/scripts/indexing_master.py", line 18, in <module> import requests File "/usr/lib/python2.6/site-packages/requests/__init__.py", line 53, in <module> from .packages.urllib3.contrib import pyopenssl File "/usr/lib/python2.6/site-packages/requests/packages/__init__.py", line 61, in load_module if name in sys.modules:AttributeError: 'NoneType' object has no attribute
Step by step instructions to set up acls on the queue.For Adding/removing queues, see:-https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-views/content/ch_using_yarn_queue_manager_view.htmlSetting up queue acls:1. Enable yarn acl: a. In Yarn -> Configs -> Advanced -> Resource ManagerSet yarn.acl.enable to true and Save. b. Restart Yarn service.2. Restrict the access on the “root” queue first. Child queues inherit the access configuration from the root queue. If this is not done, all users will be able to submit the jobs to the child queues. On the YARN Queue Manager view instance configuration page, a. Click on the “root” queue.b. Under “Access Control and Status” -> Submit Applications -> Choose custom. Leave this blank.c. Now click on the child queue.d. Under “Access Control and Status” -> Submit Applications -> Choose custom -> In Users/Groups, enter the username.e. Save and Refresh queue.3. Notice that in capacity-scheduler config in Yarn -
How do SAP’s products integrate with Hadoop? Broadly the tools that integrate with SAP fall into three categories Tools that help you get data OUT of SAP Tools that help you get data IN to SAP Tools that help you QUERY data across SAP and Hadoop Getting data OUT of SAP systems like ECC and HANAUsing SAP Data Store Objects A DSO (DataStore Object) is known as the storage place to keep cleansed and consolidated transaction or master data at the lowest granularity level.DSOs can be used a pass through for extraction from ECC. However, this comes at a price in terms of footprint, hardware, and complexity. Some extractions for deltas or real-time streaming won’t work with this architecture. Its a workable solution if we focus on the few tables and not the whole universe of 1000s of tables that SAP bundles.SAP Specific Third Party Ingestion Tools Datavard GlueIt integrates SAP and Hadoop closely by embedding the integration on the SAP side.It is provides a lightweight ETL and workbench to
OBJECTIVE: Verify the Beacon SSO setup is configured correctly. OVERVIEW: After you enable Knox SSO for beacon service as per the documentation, it is good to verify the Beacon Knox SSO setup is correctly configured before adding the clusters to the Dataplane. STEPS: STEP1: From the ambari configs, get the beacon.sso.knox.providerurl property and execute the following curl command: Syntax: curl -iku $knox-username:$knox-password "<beacon.sso.knox.providerurl>/originalUrl=http://<beacon_server>:25986/api/becaon/cluster/list" Example: Command: curl -iku $username:$password "https://hostname.hwx.site:8443/gateway/knoxsso/api/v1/websso?originalUrl=http://hostname.hwx.site:25968/api/beacon/cluster/list" Output: HTTP/1.1 307 Temporary RedirectDate: Thu, 14 Jun 2018 21:26:27 GMTX-Frame-Options: DENYSet-Cookie: JSESSIONID=1abzrcp2xl7sm1k4jgtevkwv6x;Path=/gateway/knoxsso;Secure;HttpOnlyExpires: Thu, 01 Jan 1970 00:00:00 GMTSet-Cookie: rememberMe=deleteMe; Path=/gateway/knoxsso; Max-
The topic of the document This document describes how the states are stored in memory per each operator, to determine how much memory would be needed to run the application and plan appropriate heap memory for executors. Memory usage of UnsafeRow object UnsafeRow is an unsafe implementation of Row, which is backed by raw memory instead of Java objects. The raw object of key and value of state is UnsafeRow, so we may want to understand how UnsafeRow object consumes memory in order to forecast how much the overall states will consume the memory.Structure of the raw memory Raw memory is composed to such format: [null bit set] [values] [variable length portion] null bit set used for null tracking aligned to 8 byte word boundaries stores one bit per field values store one 8 byte word per field if the type of field is a fixed-length primitive type (long, double, int, etc) the value is stored directly if the type of field is non-primitive or variable-leng
Goal: Understand why statistics are useful in hiveTable with stats0: jdbc:hive2://xlautomation-2.h.c:10000/defa> select count(*) from mytable;+---------+--+| _c0 |+---------+--+| 843280 |+---------+--+1 row selected (0.332 seconds)0: jdbc:hive2://xlautomation-2.h.c:10000/defa>Here the data is available in metastore so there is no need to launch map tasks to gather how many rows are there in the table for the query. Look-ups are faster as accessing data from metastore is faster any day compared to launching map tasks.Without column statistics0: jdbc:hive2://xlautomation-2.h.c:10000/defa> select count(col1) from abcd;INFO : Session is already openINFO : Dag name: select count(col1) from abcd(Stage-1)INFO : Status: Running (Executing on YARN cluster with App id application_1499274604190_0031)+-------+--+| _c0 |+-------+--+| 1000 |+-------+--+1 row selected (2.109 seconds) << Takes about 2 secondsAfter update0: jdbc:hive2://xlautomation-2.h.c:10000/defa> analy
DESCRIPTION: Received frequent alerts for connection timeout with journal node. Upon checking the connectivity, it results in below output.curl -v http://123.example.com:8480--max-time 4 | tail -4 * About to connect() to 123.example.com:8480 port 8480 (#0) * Trying 10.24.16.11... connected * Connected to 123.example.com (10.24.16.11) port 8480 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.18 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: 123.example.com:8480 > Accept: */* > % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0* Operation timed out after 4000 milliseconds with 0 bytes received 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0* Closing connection #0 curl: (28) Operation timed out after 4000 milliseconds with 0 bytes received Checking netstat command further for port 8480 gives us huge number of CLOSE_WAIT messages.
This article with cover step by step how to configure HDP Search Solr with Ranger PluginStep 1Download and install the 2.2.9+ mpack - FYI: Previous mpack versions don't support integration of HDP Search Solr with Ranger. Mpack 2.2.9 includes configurable section for the solr-security on ambari which allows to add the authorization information.wget 'http://public-repo-1.hortonworks.com/HDP-SOLR/hdp-solr-ambari-mp/solr-service-mpack-2.2.9.tar.gz'; -O /tmp/solr-service-mpack-2.2.9.tar.gzambari-server install-mpack --mpack=/tmp/solr-service-mpack-2.2.9.tar.gzStep 2On HDP solr host runyum install ranger-solr-plugin.noarchcd /usr/hdp/2.6.2.0-205/ranger-solr-pluginEdit install.properties and make sure the following settings at least are properly configured:POLICY_MGR_URL=http://<ranger-host>:6080 SQL_CONNECTOR_JAR=/usr/share/java/mysql-connector-java.jarEdit solr-plugin-install.properties and set correct value for install dir:COMPONENT_INSTALL_DIR_NAME=/opt/lucidworks-hdpsearch/solr/ser
1. Create User [root@chupa1 ~]# curl -iv -u admin:admin -H "X-Requested-By: ambari" -X POST -d '{"Users/user_name":"dav","Users/password":"pass","Users/active":"true","Users/admin":"false"}' http://localhost:8080/api/v1/users * About to connect() to localhost port 8080 (#0) * Trying ::1... connected * Connected to localhost (::1) port 8080 (#0) * Server auth using Basic with user 'admin' > POST /api/v1/users HTTP/1.1 > Authorization: Basic YWRtaW46YWRtaW4= > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: localhost:8080 > Accept: */* > X-Requested-By: ambari > Content-Length: 93 > Content-Type: application/x-www-form-urlencoded > < HTTP/1.1 201 Created HTTP/1.1 201 Created 2. Create Group [root@chupa1 ~]# curl -iv -u admin:admin -H "X-Requested-By: ambari" -X POST -d '{"Groups/group_name":"davgroup"}' http://localhost:8080/api/v1/groups * About to connect() to localhost port
The concept of time is at the core of all Big Data processing technologies but is particularly important in the world of data stream processing. Indeed, it is reasonable to say that the way in which different systems handle time-based processing is what differentiates the wheat from the chaff as it were, at least in the world of real-time stream processing.The demand for stream processing is increasing a lot these days. A common need across Hadoop projects is to build up-to-date indicators from streaming data.Social Media analysis is a great use case for show how we can build a dashboard showing streaming analytics with NiFi, Kafka, Tranquility, Druid, and SupersetThis processing flow has these steps:1) Tweets ingestion using Apache NiFi2) Stream processing using Apache Kafka3) Integrating data with Tranquility4) OLAP database storage using Druid5) Visualization using Apache SupersetBefore putting our hands on coding, take a look on each component:Nifi: https://br.hortonworks.com/apach
Using Apache MXNet GluonCV with Apache NiFi for Deep Learning Computer VisionSource: https://github.com/tspannhw/OpenSourceComputerVision/Gluon and Apache MXNet have been great for deep learning especially for newbies like me. It got even better! They added a Deep Learning Toolkit that is easy to use and has a number of great pre-trained models that you can easily use to do some general use cases around computer vision. So I have used a simple well-documented example that I tweaked to save the final image and send some JSON details via MQTT to Apache NiFi. This may sound familiar: https://community.hortonworks.com/articles/198912/ingesting-apache-mxnet-gluon-deep-learning-results.html GluonCV makes this even easier! Let's check it out. Again let's take a simpmle Python example tweak it, run it via a shell script and send the results over MQTT.See: https://gluon-cv.mxnet.io/build/examples_detection/demo_ssd.html#sphx-glr-build-examples-detection-demo-ssd-pyPython Code: https://github
Ingesting Apache MXNet Gluon Deep Learning Results Via MQTT and Apache NiFiSummary:Using a Pre-Trained Model in Apache MXNet Gluon Python 3 code to classify a webcam image captured and processed with OpenCV. In our Python script, we capture the image to disk and capture JSON metadata about the percentage, probabilities and device information. This JSON data is then sent via MQTT to a broker. Apache NiFi processes the JSON data.Example ImageSource CodeSchema: https://github.com/tspannhw/OpenSourceComputerVision/blob/master/gluon2.avscPython Source: https://github.com/tspannhw/OpenSourceComputerVision/blob/master/nifigluon2.pyShell Script: https://github.com/tspannhw/OpenSourceComputerVision/blob/master/rungluon2.shSQL Table DDLCREATE EXTERNAL TABLE IF NOT EXISTS gluon2 (top1pct STRING, top2pct STRING, top3pct STRING, top4pct STRING, top5pct STRING, top1 STRING, top2 STRING, top3 STRING, top4 STRING, top5 STRING, imgname STRING, host STRING, end STRING, te STRING, battery INT
Executing TensorFlow Classifications from Apache NiFi Using Apache Spark 2.3 and Apache LivyTechnology: Apache Spark 2.3 + Apache Livy + Apache NiFi 1.5 + TensorFlow + PythonPython Code: https://github.com/tspannhw/DWS-DeepLearning-CrashCourse/blob/master/tensorflowsparknifi.pyTIP: In this version of Apache NiFi, you need to use double quotes (") instead of single quotes (') in your Python code.Python Code for NiFi ExecuteSparkInteractiveSee GithubSimple Apache NiFi Flow To Execute TensorFlow Python Applications via Apache LivyI am just using Apache Livy as the transport call from Apache NiFi to Apache Spark. My Apache Spark 2.3 cluster is not doing any Spark specific processing. PySpark is just running a vanilla TensorFlow python application in this version. We could also call TensorFlow on Spark code in this way. My goal was to run TensorFlow on my Spark cluster trigger from Apache NiFi and get back results.Results Returned in Success From ExecuteSparkInteractive Call{ "
I was recently working with a customer to deploy a Storm topology in their dev environment. I had built and tested the topology in my environment but when we went to deploy it at the customer site, nothing happened - literally.We could see the topology was in fact running but it wasn’t consuming any data from the Kafka topic to which it was subscribing. We verified that data was in fact being written there using the kafka-console-consumer.sh utility but still the topology wasn’t doing anything and even more confusing, the storm log for the topology didn’t show anything beyond the deployment steps.Going into the Storm UI we wanted to drill down to get the specifics of the topology and potentially turn on debug logging to see what was up, however when we clicked on the topology the Storm UI is unresponsive trying to load the topology summary. Even more confusing was the fact that the Storm UI didn’t show any error messages.Turns out that at some point in the past in this development envi
In DPS-1.1.0 We can't remove cluster from DPS UI. We can use the curl to remove the cluster. Note : User with Dataplane Admin Role can perform the below. screen-shot-2018-06-14-at-102253-am.pngTo delete smayani-hdp cluster Step1:- Find the cluster ID, which you want to remove. You can use the developers tools from the browser to find the cluster ID.screen-shot-2018-06-14-at-101629-am.pngFrom above example smayani-hdp cluster ID is: 3 ( https://172.26.125.109/api/lakes/3/servicesDetails ) Step 2 :- From the console use the below curl to remove the cluster.curl -k -u <username>:<Password> -X DELETE https://<DPS_HOST>/api/lakes/<cluster_ID>;Example :curl -k -u admin:kjncsadasdcsdc -X DELETE https://172.26.125.109/api/lakes/3Once the above is executed you should no longer see the cluster in UI.screen-shot-2018-06-14-at-102509-am.pngAlternative You can also use rm_dp_cluster.sh in /usr/dp/current/core/bin on DPS installed server.Usage: ./rm_dp_cluster.sh DP_JWT HAD
Short Description Migrate Hive saved queries from Hue 3.9.0 of CDH 5.7.2 into Hive Views of Ambari 2.6.2.2 on HDP 2.6.5 Environment: CentOS 7, CDH 5.7.2, Hue 3.9.0, Ambari 2.6.2, HDP 2.6.2, Hue 2.6.2, mySQL5.6 Problem: There are over 40,000 saved / history queries in CDH-Hue. During CDH to HDP migration, Hive saved queries from Hue needs to be migrated to Ambari Hive View saved queries. Assumptions: You have Hue of CDH configured with MySQL and CDH to HDP migration is successful.Solution Step 1: Install Hue 2.6.2 on HDP cluster pointing to a new database called hue_new262 follow the link HDP-2.6.5 - installing_hue Step 2: Insert records from hue_cdh (database of Hue CDH) to hue_new262 (database of Hue HDP) Impacted tables auth_user, auth_user_groups, beeswax_savedquery, beeswax_queryhistory insert into hue_new262.auth_user (id, username, first_name, last_name, email, password, is_staff, is_active, is_superuser, last_login, date_joined) select id, username, first_name, last_nam
Roaring Elephant Podcast - Episode 90 – Roaring newshttps://roaringelephant.org/2018/05/29/episode-90-roaring-news/In this weeks Roaring News episode, Dave brings up the resilience of Apache Community open source projects and plays some Doom. Jhon has some practical Apache NIFI guides and the emergence of multi modal NoSQL databases. Play in new window | Download (Duration: 38:09 — 26.4MB)DataWorks Summit Berlin video recordings are up: https://www.youtube.com/user/HadoopSummit/playlistsFind Dave on his Australian road-trip: http://bit.ly/aus-nz-ibm-hwx-tourDave DataTorrent, Stream Processing Startup, Folds (Apache Apex) https://www.datanami.com/2018/05/08/datatorrent-stream-processing-startup-folds/DOOM! https://arxiv.org/abs/1804.09154https://www.technologyreview.com/s/611072/ai-generates-new-doom-levels-for-humans-to-play/https://www.youtube.com/watch?v=K32FZ-tjQP4Bonus doom news:https://www.rockpapershotgun.com/2018/03/28/dodge-fireballs-forever-in-a-neural-nets-doom-nightm
Roaring Elephant Podcast - Episode 91 – ODPi is back and better than ever!https://roaringelephant.org/2018/06/05/episode-91-odpi-is-back-and-better-than-ever/In this episode, we welcome back John Mertic, director of Program Management for ODPi, R Consortium, and the Open Mainframe Project. It’s been almost two years since we checked in with John and the ODPi initiative and as John mentions in the interview, a lot has changed in Hadoop… Play in new window | Download (Duration: 1:08:00 — 46.9MB)John MerticDirector of Program Management for ODPi, R Consortium, and Open Mainframe Projecthttps://www.linkedin.com/in/jmertic/ODPi website links: https://www.odpi.org/https://www.odpi.org/blog/2018/04/04/the-state-of-open-source-and-big-data-three-years-laterhttps://www.odpi.org/projects/data-governance-pmchttps://www.odpi.org/events 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.
In DPS-1.1.0 we can't edit all the LDAP configuration properties after the initial setup. If we have to correct LDAP configs, you need to re-initialize the DPS setup to change it, which can be a painful task. To avoid re-initializing the DPS setup, we can make the changes directly in the postgres database of dataplane. Step1:- Find the container id of dp-database on DPS machinedocker psStep2: - connect to the docker machinedocker exec -it cf3f4a31e146 /bin/bashStep3:- Login to the postgres database (dataplane)su - postgrespsql -d dataplaneTake backup of the table, create table dataplane.ldap_configs_bkp as select * from dataplane.ldap_configs;To view the existing configuration:select * from dataplane.ldap_configs;Sample Output: id | url | bind_dn | user_searchbase | usersearch_attributename | group_searchbase | groupsearch_attr ibutename | group_objectclass | g
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.