Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
PROBLEM Users able to drop table on hive though they are not the table owners. Need to enable metastore server security to start using the storage based auth. SOLUTION To enable metastore security we need to enable the following parameter hive.metastore.pre.event.listeners [This turns on metastore-side security.] Set to org.apache.hadoop.hive.ql.security.authorization.AuthorizationPreEventListenerhive.security.metastore.authorization.manager [This tells Hive which metastore-side authorization provider to use. The default setting uses DefaultHiveMetastoreAuthorizationProvider, which implements the standard Hive grant/revoke model. To use an HDFS permission-based model (recommended) to do your authorization, use StorageBasedAuthorizationProvider as instructed above]Set to org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProviderhive.security.metastore.authenticator.managerSet to org.apache.hadoop.hive.ql.security.HadoopDefaultMetastoreAuthenticatorhive.security.m
https://roaringelephant.org/2018/05/22/episode-89/With the San Jose edition of the DataWorks Summit only a month away, we go over the sessions that are available in the agenda today and offer our top picks. If you’re going, or if you will be watching the replays online, we hope to guide you on your selection of sessions. DataWorks Summit San Jose 2018 Play in new window | Download (Duration: 1:12:20 — 49.9MB)And here is the dashboard we created with statistics on the San Jose sessions, for your enjoyment: https://aka.ms/DWS2018SJThe agenda is still in flux so we will be updating the dashboard regularly. 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.
About this article The Metron tutorial article for adding Squid telemetry walks through the process of creating the parser from scratch for Elasticsearch as the Indexing service. This article gives details of extending the tutorial for getting Squid telemetry working with Solr as the backend Indexing service. In other words, these steps are an equivalent of "Installing Squid parser template" for the Elasticsearch. Pre-requisites HCP >= 1.5.0.0 HDP search >= 3.0.0 It is assumed that you have deployed a HCP stack with Solr by following the HCP documentation The Solr node is co-located with the Metron node. In the event that these nodes are on different hosts, ensure that you copy the Metron schema files located at $METRON_HOME/config/schema to the Solr node. It is also assumed that you have followed the Metron tutorial for Squid telemtry by installing the squid sensor, creating the kafka topic and have started the storm topology Steps 1. SSH to the Metron host and run the fol
When you are working with machine learning algorithms, you must be mindful with how the algorithm treats the data that you input into them. Often, there is a required transformation process to conform the desired values into a usable form. In the case of categorical data, ML algorithms will misinterpret raw values, which will lead to improper results. The solution to this using categorical data is known as One Hot Encoding. This process entails creating an additional column for each of the values represented in the categorical data set. This followed by only setting one of the newly columns to value true or 1, while setting the rest of them to false or 0. In our example below, imagine these new columns as booleans with titles: Is_apple, Is_banana, and Is_coconut. Continuing our example, the value "banana" would have the values for columns Is_apple=0, Is_banana=1. and Is_coconut=0. Using the tools below, we will create a vector that can be used as input into ML algorithms. Step
This article is designed to extend the great work by @Ali Bajwa: Sample HDF/NiFi flow to Push Tweets into Solr/Banana, HDFS/Hive I have included the complete notebook on my Github site, which can be found here Step 1 - Follow Ali's tutorial to establish an Apache Solr collection called "tweets" Step 2 - Verify the version of Apache Spark being used, and visit the Solr-Spark connector site. The key is to match the version of Spark the version of the Solr-Spark connector. In the example below, the version of Spark is 2.2.0, and the connector version is 3.4.4 %spark2scsc.version res0: org.apache.spark.SparkContext = org.apache.spark.SparkContext@617d134ares1: String = 2.2.0.2.6.4.0-91 Step 3 - Include the Solr-Spark dependency in Zeppelin. Important note: This needs to be run before the Spark Context has been initialized. %depz.load("com.lucidworks.spark:spark-solr:jar:3.4.4")//Must be used before SparkInterpreter (%spark2) initialized//Hint: put this paragraph before any Spark co
This article discuss the process related to Oozie Manual Sharelib update and the prerequisites for Spark Oozie SharelibCopy the sharelib to a local directory # mkdir oozie_share_lib # hadoop fs -copyToLocal <current-share-lib-directory> oozie_share_lib/libTo update oozie sharelib once the existing oozie sharelib copied from HDFS to local as above:/usr/hdp/current/oozie-client/bin/oozie-setup.sh sharelib create -fs /user/oozie/share/lib/ -locallib oozie_share_lib/This will create a new sharelib including SPARK Oozie sharelib:the destination path for sharelib is: /user/oozie/share/lib/lib_20180502070613Fixing oozie spark sharelibSpark is locally installed at /usr/hdp/2.6.3.0-235/oozie/../sparkRenaming spark to spark_orig in /user/oozie/share/lib/lib_20180502070613Creating new spark directory in /user/oozie/share/lib/lib_20180502070613Copying Oozie spark sharelib jar to /user/oozie/share/lib/lib_20180502070613/sparkCopying oozie_share_lib/lib/spark/oozie-sharelib-spark-4.2.0.2.6.3.
Accessing public social data from Facebook for a company's page is easy.Find your Facebook page, say Hortonworks.Run http://findmyfbid.com/ and get the Page ID (289994161078999) for your Page.Create a Facebook Application and Add a New Application.Create a Facebook Access Token in Graph API Explorer using your Application.Create your Facebook Graph API URL. https://graph.facebook.com/v2.7/289994161078999/tagged?access_token=ACCESSTOKENFROMFACEBOOK&limit=100. Because we are using a Facebook App Token, we need to use HTTPS/SSL. To access an SSL site in GetHTTP, we need a SSL Service with a Trust Store.Facebook Graph API ExplorerFacebook Graph API Explorer TestAdd the URL to the GetHTTP Processor.Create a Standard SSL Context Service (Controller Service), for the Sandbox, use the Java SSL Trust Store.Add the SSL Context Service to the GetHTTP Processor.Save to HDFS (PutHDFS).Download[root@sandbox demo]#hdfs dfs -cat /social/facebook1469644415053.json{ "data": [ { "message": "S
DevOps Tips: Using the Apache NiFi Toolkit with Apache NiFI 1.6.0 Apache NiFi now has a cool command-line tool that can run interactive or one off. You can see it here: https://github.com/apache/nifi/tree/master/nifi-toolkit/nifi-toolkit-cli You will need to fork and build the current version of Apache NiFi from github. If you have the Java JDK 8+ and Maven you are good to guy. It's pretty quick. After you build, navigate to the nifi-toolkit target directory and you will have a zip to copy and unzip. You can then use this helpful tool. This is a separate tool from https://github.com/Chaffelson/nipyapi. Both are awesome though. I ran this on my local Mac. nifi-toolkit-1.6.0 List Registry Buckets ./bin/cli.sh registry list-buckets -u http://localhost:18080 # Name Id Description- ------------------------ ------------------------------------ -----------1 Development dd323482-c62e-4b18-9f9
https://roaringelephant.org/2018/05/15/episode-88-roaring-news/Returning to our more regular schedule, we have a Roaring News episode today. Dave has articles on multi-cloud readiness, Big Data being a pariah, and Google Duplex and Jhon came up with Synthetic data, data engineers and scientists and a Neural Network sharing cake recipes. Breaking NewsPlay in new window | Download (Duration: 35:07 — 24.4MB)Dave Less than 10% ready for multi cloud http://www.cloudpro.co.uk/cloud-essentials/hybrid-cloud/7451/idc-less-than-10-of-organisations-are-ready-for-multi-cloudTech companies distancing themselves from Big Data https://qz.com/1262102/tech-companies-are-distancing-themselves-from-big-data/Google Duplex https://ai.googleblog.com/2018/05/duplex-ai-system-for-natural-conversation.htmlJhon The Rise of Synthetic Data to Help Developers Create and Train AI Algorithms Quickly and Affordably https://insidebigdata.com/2018/05/08/rise-synthetic-data-help-developers-create-train-ai-algorithms-
https://roaringelephant.org/2018/05/08/episode-87-druid-high-performance-column-oriented-distributed-data-store-part-2/This is the second part of an interview with Fangjin Yang, co-founder and CEO at Imply and committer/PMC member for the Druid project. Druid: a high-performance, column-oriented, distributed data store which has entered the Hadoop environment with the recent integration with Apache and we since Druid has been around for a while, we are grateful to FJ for spending some time with our listeners. Play in new window | Download (Duration: 31:53 — 22.1MB) Fangjin YangCofounder and CEO at Imply (linkedin) 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.
https://roaringelephant.org/2018/05/01/episode-86-druid-a-high-performance-column-oriented-distributed-data-store-part-1/This is the first part of an interview with Fangjin Yang, co-founder and CEO at Imply and committer/PMC member for the Druid project. Druid: a high-performance, column-oriented, distributed data store which has entered the Hadoop environment with the recent integration with Apache and we since Druid has been around for a while, we are grateful to FJ for spending some time with our listeners. Play in new window | Download (Duration: 31:57 — 22.2MB) Fangjin YangCofounder and CEO at Imply (linkedin) 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.
https://roaringelephant.org/2018/04/24/episode-85-dataworks-summit-community-showcase-exhibitor-soundbites/This is the final part of our coverage of the DataWorks Summit Berlin 2018. Normally we would not have had an episode this week, since we were in Berlin last week, but we had lightning interviews with the vendors in the Community Expo Are and used that coverage to make this episode. Audio Player 00:00 00:00 Play in new window | Download (Duration: 30:34 — 21.0MB)So less of “Dave & Jhon” and more “ecosystem tech” snippets this time. Even though this does stray a bit from our usual content, we still hope it is useful.This was recorded in a hotel room and on the expo floor so the audio quality is not up to our usual standards, we hope you’ll forgive us!Here is a timestamped list of the lightning interviews:02:41 Hortonworks https://hortonworks.com/06:28 Alation https://alation.com/08:45 Arcadia Data https://www.arcadiadata.com/11:12 Attunity https://www.attunity.com/
https://roaringelephant.org/2018/04/19/episode-84-dataworks-summit-berlin-day-2-recap/And with the end of day two of the 2018 DataWorks Summit in Berlin comes the end of this years Europe Summit. But never fear, we have an extra 90 minutes of DataWorks goodness for you to consume on your way home. Audio Player 00:00 00:00 Play in new window | Download (Duration: 1:30:26 — 62.3MB)No real editing on this one, recording in a hotel room so audio quality may not be up to our usual standards, we hope you’ll forgive us!Enjoy! 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.
https://roaringelephant.org/2018/04/18/episode-83-dataworks-summit-berlin-day-1-recap/Another year, another European Dataworks Summit, and yes, another daily recap show from Jhon and Dave. We walk through the keynotes and sessions we attended and give our thoughts and views. This should be useful for anyone who wasn’t able to attend or those seeking to peek into sessions they couldn’t make. Audio Player 00:00 00:00 Play in new window | Download (Duration: 1:23:45 — 57.8MB)No real editing on this one, recording in a hotel room so audio quality may not be up to our usual standards, we hope you’ll forgive us!Enjoy! 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.
It's coming up more often now, the need to "add" host to an existing cluster without using the Ambari UI. I once thought the Blueprints were only useful to "initially" provision a cluster. But they're also quite helpful to extend your cluster as well.Provision the Initial Cluster using Auto-DiscoveryIn the following example, we'll use a new feature in Ambari 2.1, called "Auto-Discovery" to provision the first node in our cluster.Do NOT manually register the Host with Ambari Server yet. We're going to demonstrate "Auto-Discovery" to initialize new hosts.Check that NO hosts have been registered with the cluster.curl -i -H "X-Requested-By: ambari" -u admin:xxxx -X GET http://<ambari-server:port>/api/v1/hostsBlueprint has be registered with Ambari { "Blueprints": { "stack_name": "HDP", "stack_version": "2.3" }, "configurations": [], "host_groups": [ { "cardinality": "1", "components": [ { "nam
Continuing with the theme of one-click installs from the last post, this time we will see how one can provision an HDP 2.6.4 cluster equipped with features for data governance and security through Apache Atlas and Apache Ranger using Cloudbreak in private/public cloud, again of course, with a single command!To begin with, you’d need: Access to a supported cloud provider (AWS, Azure, GCP, OpenStack) with following resources configured / identified for the cluster deployment:Region / Availability zoneVirtual Private Network / Security GroupVM types / sizes identified for master and worker rolesSSH keypairAccess to a Hortonworks Cloudbreak instance setup with credentials for the cloud provider(s) of choice [eg: OpenStack, AWS]Cloudbreak CLI installed on your machine, in path and configured pointing to the Cloudbreak instance aboveYou can use this tool to setup Cloudbreak with CLI configured locally on your workstation with just a couple of commands.Once this is done, you should have your
Disclaimer!Yes, despite some great articles around this topic by the finest folks here at Hortonworks, this is YALC [Yet Another article on spinning up Local HDP Clusters].But before you switch off, this article will show how to spin up HDP/HDF HA, secure clusters, even using customizable OS images, on your local workstation by just executing a single command!!…Glad this caught your attention and you’re still around!Quick Peek!For starters, just to get a taste, once you have ensured you are on a workstation that has at least 4 cores and 8 GB RAM and has open internet connectivity and once you have the environment setup with the pre-requisites,1. Execute the following in a terminalgit clone https://github.com/amolthacker/hwx-local-cluster && cd hwx-local-cluster && ./scripts/create-n-provision.sh2. Grab a coffee as this could take some time (unfortunately the script does not make coffee for you … yet)3. Once the script’s completed, you should have a basic HDP 2.6.4 clus
Issue: When you upgrade HDF to 3.0.2, you might experience NiFi service unable to start via Ambari due to the OOM exception in the below stack traceTraceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 309, in <module> Master().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 375, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 177, in start self.configure(env, is_starting = True) File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 120, in locking_configure original_configure(obj, *args, **kw) File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 150, in configure params.nifi_flow_config_dir, params.nifi_sensitive_props_key, is_starting) File "/var/lib/ambari-agent/cache/common-services/NIFI
This is for people preparing to attend my talk on Deep Learning at DataWorks Summit Berling 2018 (https://dataworkssummit.com/berlin-2018/#agenda) on Thursday April 19, 2018 at 11:50AM Berlin time.This is for running Apache MXNet on an HDF 3.1 node with Centos 7.Let's get this installed!git clone https://github.com/apache/incubator-mxnet.gitThe installation instructions at Apache MXNet's website (http://mxnet.incubator.apache.org/install/index.html) are amazing. Pick your platform and your style. I am doing this the simplest way on Linux path.We need to install OpenCV to handle images in Python. So we install that and all the build tools that OpenCV requires to build it and Apache MXNet.HDF 3.1 / Centos 7 Setupsudo yum groupinstall 'Development Tools' -ysudo yum install cmake git pkgconfig -ysudo yum install libpng-devel libjpeg-turbo-devel jasper-devel openexr-devel libtiff-devel libwebp-devel -ysudo yum install libdc1394-devel libv4l-devel gstreamer-plugins-base-devel -ysudo yum i
In order to debug pairing DLM, you'll need the following pre-req:1) Root access to the DPS VMProblem statement - have you received an error when pairing a cluster? Follow these step-by-step instructions to access the DLM log, to gain granular log information that will help you debug:1) Run the "sudo docker ps" command to gain the container id for "dlm-app":In the image above, the container id for "dlm-app" is "83d879e9a45e". 2) Once you receive the container id, you can run the following command "sudo docker exec -it 83d879e9a45e /bin/tailf /usr/dlm-app/logs/application.log"This will give you insight into the DPS-DLM application, in the example above you'll see "ERROR". The error log will post once you click "pair" in the DLM UI. Using the information from the log, you'll be able to troubleshoot your issue.
Ethereum: Accessing Feeds from Etherscan on Volume, Price and Transaction (Apache NiFi) - Cryptocurrency Part 2As opposed to EtherDelta that we accessed in our first post (https://community.hortonworks.com/content/kbentry/191146/accessing-feeds-from-etherdelta-on-trades-funds-bu.html) Etherscan has a familiar SSL HTTP REST call returning clean JSON. We are reading three REST APIs for acquiring three sets of interesting Ethereum data including logs, current supply and current price.Overview of FlowREST API Ingest feed for getLogsWe split into individual JSON records for processing.Ether Supply and Ether Last Price FlowsFor these two flows they return very minimal amounts of data with some flags I don't care about (status, message). So I use EvaluateJsonPath to extract just the good fields. Then with UpdateAttribute I add a just created time stamp (now()). Finally I use AttributesToJSON to replace the existing flow file with a new JSON file built from the fields I want only. Y
“In meetings philosophy might work, [but in] the field practicality works.” –Amit KalantriShort Description:A quick tutorial on how to query cryptocurrency transactions with Spark StreamingAbstract:This tutorial covers how once can use Nifi to stream public cryptocurrency transactional data to Kafka and consequently query the transactional stream with Spark Streaming. We will be using the Pyspark API for demonstration purposes. It is strongly recommended that one use Java or Scala for production grade applications; as most of the generally available (GA) features in Spark are published to support those languages foremost. Figures are used as a user graphical aid. Steps are highlighted by bullet points.What is Spark? Why is it well suited for Streaming at scale?Apache Spark is a distributed processing engine for data science and data engineering at scale. It features several out of the box libraries for machine learning, map reduce, graph analysis, micro batching, and structured query l
Within VirtualBox, navigate to Settings > Shared Folders. Choose a directory path on the host machine, give the directory a name and choose applicable options (such as Auto Mount). For this example, I used the name 'share'. Note this doesn't require restarting your VM. Now establish an SSH session to your guest. Run the following command (see this article) to mount the shared directory to the local directory ~/host on the guest. You can now access and transfer files from guest to host and vice versa. sudo mount -t vboxsf share ~/host
Note: First made your topology file. Please find an attached example. knox-topology-file.xmlknox-ad-ldap-upgraded-docus.pdfAbove PDF file covered all practical concepts and some theory part.Step 1:- Install Knox on edge node or any node on the cluster.Step 2:- Start Knox service from Ambari,make sure your Ambari Server is already sync with LDAP.Step3:- Search your LDAP Server via below commandldapsearch -W -H ldap://ad2012.ansari.net -D binduser@ansari.net -b "dc=ansari,dc=net"ldapsearch -W -H ldaps://ad2012.ansari.net -D binduser@ansari.net -b "dc=ansari,dc=net"Step 4:- Create a master password for Knox:/usr/hdp/current/knox-server/data/security/keystores/gateway.jks/usr/hdp/2.6.4.0-91/knox/bin/knoxcli.sh create-master --forceenter password then verify it Note:-(2.6.4.0-91 is my HDP versions select your hdp version /usr/hdp/XXXXXXX/)Step 5: Validate your topology file (your cluster name and toplogy file name should be same):-/usr/hdp/2.6.0.3-8/knox/bin/knoxcli.sh validate-topology --c
ProblemInterpreters do not work through zeppelin with no internet access.Checking out /usr/hdp/current/zeppelin-server/local-repo - the folder is empty or contains “org” folder with no jars Running hive through Zeppelin returns%jdbc(hive)show tables; ...org.apache.hive.jdbc.HiveDriver class java.lang.ClassNotFoundException...SolutionThe permanent solution is currently planned to be delivered in HDP 2.6. Here is a workaround to follow:a) I have tarred /usr/hdp/current/zeppelin-server/local-repo into zeppelin-local-repo.tar.gz and located on https://drive.google.com/drive/folders/0B-YVWxQz56HubWhUdEdVWGZ1Mms?usp=sharing. As this is my google drive I can allow you to access it after receiving the request from youb) download the file into /tmp/zeppelin folder c) extract it - this should created local-repo folder. So, you will get /tmp/zeppelin/local-repo with all the subfolders in it d) copy the content of /tmp/zeppelin/local-repo into /usr/hdp/current/zeppelin-server/local-repo e) change
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.