Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
In order to check the status and stability of your cluster it makes sense to run the service checks that are included in Ambari. Usually each Ambari Service provides its own service check, but their might be services that wont include any service check at all. To run a service check you have to select the service (e.g. HDFS) in Ambari and click "Run Service Check" in the "Actions" dropdown menu. Service Checks can be started via the Ambari API and it is also possible to start all available service checks with a single API command. To bulk run these checks it is necessary to use the same API/method that is used to trigger a rolling restart of Datanodes (request_schedules). The "request_schedules" API starts all defined commands in the specified order, its even possible to specify a pause between the commands. Available Service Checks: Service Name service_name Command HDFS HDFS HDFS_SERVICE_CHECK YARN YARN YARN_SERVICE_CHE
Goal Create and Setup IPA Keytabs for HDPTested on CentOS 7 with IPA 4, HDP 2.3.0 and Ambari 2.1.1Assumptions Ambari does NOT currently (2.1.x) support the automatic generation of keytabs against IPAIPA Server is already installed and IPA clients have been installed/configured on all HDP cluster nodesIf you are using Accumulo, you need to create the user 'tracer' in IPA. A keytab for this user will be requested for Accumulo Tracer.We'll use Ambari's 'resources' directory to simplify the distribution of scripts and keys.Enable kerberos using wizardIn Ambari, start security wizard by clicking Admin -> Kerberos and click Enable Kerberos. Then select "Manage Kerberos principals and key tabs manually" option Enter your realm (Optional, Read on before doing this...) Remove clustername from smoke/hdfs principals to remove the -${cluster_name} references to look like below smoke user principal: ${cluster-env/smokeuser}@${realm}HDFS user principal: ${hadoop-env/hdfs_user}@${realm}HBase user
How to get the number of documents indexed : curl -o /tmp/result.txt --negotiate -u : -X GET "SOLR_SERVER:8886/solr/ranger_audits_shard1_replica1/select?q=*:*&distrib=false"How to run a delete command via curl ( delete data older than 24h 😞curl --negotiate -u: "SOLR_SERVER:8886/solr/ranger_audits/update?commit=true" -H "Content-Type: text/xml" --data-binary "<delete><query>evtTime:[* TO NOW-24HOURS]</query></delete>"How to run optimize command via curl :curl --negotiate -u: "SOLR_SERVER:8886/solr/ranger_audits/update?optimize=true"
##install Luna client, Unzip Luna client for example under /opt/LUNAHSMunder /opt/LUNAHSM/linux/64/run sh install.sh allFollow the the instructions below, for the questions asked, please answer as below :Accept conditions(y/n) yProductsChoose Luna Products to be installed [1]: Luna SA [2]: Luna PCI-E [3]: Luna G5 [4]: Luna Remote Backup HSM [N|n]: Next [Q|q]: QuitEnter selection: 1ProductsChoose Luna Products to be installed*[1]: Luna SA [2]: Luna PCI-E [3]: Luna G5 [4]: Luna Remote Backup HSM [N|n]: Next [Q|q]: QuitEnter selection: nAdvancedChoose Luna Components to be installed [1]: Luna Software Development Kit (SDK)*[2]: Luna JSP (Java)*[3]: Luna JCProv (Java) [B|b]: Back to Products selection [I|i]: Install [Q|q]: QuitEnter selection: iList of Luna Products to be installed:- Luna SAList of Luna Components to be installed:- Luna JSP (Java)- Luna JCProv (Java)... installation complete<br>#now to swap the certificate : copy SERVER.pem from LUNA server to your
Quick post to add an auto fix for Solr infra lock issue.Ranger server under : /usr/hdp/current/ranger-admin/contrib/solr_for_audit_setup/confEdit the file solrconfig.xmlUncomment and change <unlockOnStartup>false</unlockOnStartup> to <unlockOnStartup>true</unlockOnStartup>Submit the new xml: /usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string XXXX:2181/infra-solr --upload-config --config-dir /usr/hdp/current/ranger-admin/contrib/solr_for_audit_setup/conf --config-set ranger_audits --jaas-fileIncrease the sleep time from 5 to 30 seconds in /opt/lucidworks-hdpsearch/solr/bin/solrsed -i 's/(sleep 5)/(sleep 30)/g'/opt/lucidworks-hdpsearch/solr/bin/solrOr in the following :sed -i 's/(sleep 5)/(sleep 30)/g' /usr/lib/ambari-infra-solr/bin/solr you can also add in the script the following command :hadoop fs -rm /user/infra-solr/ranger_audits/core_node1/data/index/write.lock
Quick tips to optimise your infra Solr for Ranger audits using SolrCloud.1) Change the SolrCloud retention period of the audit.On the server of ranger under : /usr/hdp/current/ranger-admin/contrib/solr_for_audit_setup/conf #### Edit the file or use sed to replace the 90 Days in the solrconfig.xml , choose the right retention period, here is 6 hourssed -i 's/+90DAYS/+6HOURS/g' solrconfig.xml sed -i 's/86400/7200/g' solrconfig.xml2) Change ZK config, by submitting the xml again/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string XXXXXX:2181/infra-solr --upload-config --config-dir /usr/hdp/current/ranger-admin/contrib/solr_for_audit_setup/conf --config-set ranger_audits --jaas-file /usr/hdp/current/ranger-admin/conf/ranger_solr_jaas.confCheck that we loaded it correctly, in the Solr UI or with the following command#Download the solrconfig.xml from Zookeeper /usr/lib/ambari-infra-solr/server/scripts/cloud-scripts/zkcli.sh --zkhost XXXXXX:2181 -cmd getfile /infra-so
A Hive Database can contain both transactional and non transactional table. Hence, if we are doing some quick checks to determine if the table is ACID enabled, please run the following command.# hive -e "describe extended <Database>.<tablename>;" | grep "transactional=true"If you get an output with the string that you grep for, then the table is transactional.Example: #hive -e "describe extended default.hello_acid;" | grep "transactional=true"
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.In this example we required Apache NiFi 1.5 or newer.This is part 2 of https://community.hortonworks.com/articles/155435/using-the-new-mxnet-model-server.htmlOur flow that receives the JSON files from the server does some minimal processing. We add some meta data fields, infer an AVRO schema from the JSON file (we only need to do this once in development and then you can delete that box from your flow). As you can see I can easily push that data to HDFS as a parquet file.This is if you wish to not install Apache MXNet on your HDF, HDP or related nodes. You can now install Apache MXNet plus MMS on a cloud or edge server and call it via HTTP from Apache NiFi for processing.Local Apache NiFi Flow To Call Our SSD Predict and Squeeze Net Predict REST ServicesCluster Receiving The Two Remote
The preferred method to manage network security with Cloudbreak is to use existing security groups in the target cloud. You manage the security groups in the target cloud's native tools and Cloudbreak adds the nodes to those existing groups. This allows the access rules in the security group to be centrally managed eliminating the need to propagate changes to existing clusters. Each cluster that gets created will have the same standard access rules, which can be very granular to provide only the access that is required. This also allows separation of the security management duties from the cluster administration duties if an organization requires it.Network security groups - Microsoft Azure Each cloud has its own interface for managing security groups. In Azure, for instance, the access rules are in network security groups and each group is available in an individual location. Here we see four network security groups that I've created in Azure's South Central US location for u
Ingest All The Things Series: Flight Data Via RadioI am using the FlightAware Pro Stick Plus ADS-B USB Receiver with Built-in Filter on a Mac, I should hook this up to one of my raspberry pis and add a longer antenna outside. You need a good antenna, a good location and nothing blocking your signal. It also depends on what air traffic is nearby.For a proof of concept it's pretty cool to see air data going through a cheap USB stick into a computer stored in a file and loaded into Apache NiFi to send on for data processing.There is a web server you can run to see the planes on a map which is pretty cool, but I want to just ingest the data for processing.My Equipment If you wish to watch the data flash by in a command-line interface, you can run with interactive flag and watch all the updates.We are dumping the data as it streams as raw text into a file. A snippet of it tailed in Apache NiFi is shown below:We are also ingesting ADS-B data that is provided by an open data REST API
OSQueryOSQuery is a cool tool that lets you query your servers via SQL. It supports Windows, OSX and most Linux variants.Installing osquerywget https://osquery-packages.s3.amazonaws.com/centos7/osquery-2.2.1-1.el7.x86_64.rpmrpm -ivh osquery-2.2.1-1.el7.x86_64.rpmsudo cp /usr/share/osquery/osquery.example.conf/etc/osquery/osquery.confsudo service osqueryd startRedirecting to /bin/systemctl start osqueryd.servicesudo service osqueryd statusRedirecting to /bin/systemctl status osqueryd.service● osqueryd.service - The osquery Daemon Loaded: loaded(/usr/lib/systemd/system/osqueryd.service; disabled; vendor preset: disabled) Active: active(running) since Wed 2017-01-25 20:32:06 UTC; 4s ago Process: 21531ExecStartPre=/bin/sh -c if [ ! -f $FLAG_FILE ]; then touch $FLAG_FILE; fi(code=exited, status=0/SUCCESS) Main PID: 21534(osqueryd) CGroup:/system.slice/osqueryd.service ├─21534 /usr/bin/osqueryd --flagfile/etc/osquery/osquery.flags --config_path /etc/osquery/osquery.conf └─21537osqu
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 a Raspberry Pi.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.Installation:This builds on previous builds, so see those articles. We installed the drivers for Sense Hat, Intel Movidius and the USB Web Cam previously. Please note that versions for Raspberry Pi, Apache MXNet, Python and other drivers are updated every few months so if you are reading this post DWS 2018 you should check the relevant libraries and update to the latest versions.You need Python, Python Devel and PIP installed and you may need to run as root.
Raspberry Pi Killer? Nope, but this device has twice the RAM and a bit more performance. It's mostly compatible with Pi, but not fully. It is very new and has little ecosystem but can get the job done.Device SetupIt is easy to install Python and all the libraries required for IoT and some deep learning. I found most instructions worked for Raspberry Pi on this device. It has more RAM which helps on some of these activities.I downloaded and burned with Etcher a MicroSD image of TinkerOS_Debian V1.8 (Beta version). It's a Debian variant close enough to Raspian for most IoT developers and users to be comfortable. An Android OS is now available for download as well and that may be worth trying, I am wondering if Google will add this device to the AndroidThings supported devices? Perhaps. One quirk, make sure you remember this: TinkerOS default username is “linaro”, password is “linaro”. Connect to the device via ssh linaro@SOMEIP. Python Setupsudo apt-get updatesudo apt-ge
Keeping track of where a cat is can be a tricky task. In this article, we'll design and prototype a smart IoT cat sensor which detects when a cat is in proximity. This sensor is meant to be part of a larger network of cat sensors covering a target space.Flow DesignSensor inputWe start by polling an image sensor (camera) for image data. We use the GetUSBCamera processor configured for the USB camera device attached to our sensor controller.On our system, we had to open up permissions on the USB camera device, otherwise MiNiFi's GetUSBCamera processor would record an access denied error in the logs:chown user /dev/bus/usb/001/014We then configure the sensor processor as such:Processors: - name: Get class: GetUSBCamera Properties: FPS: .5 Format: RAW USB Vendor ID: 0x045e USB Product ID: 0x0779 Machine Learning Inference on the EdgeWe use TensorFlow to perform class inference on the image data. We do this at the sensor rather than in a centralized system in orde
This article helps in estimating the total data change on hdfs for a given time period and what will be replicated by Data Lifecycle Manager (DLM)Step 1) On each of the data nodes, capture the jmx response by simply retrieving a json file from the node. Example something like this,curl “http://<datanodeip/fqdn>:<port>/jmx”(you can check the port in Ambari for the property - dfs.datanode.http.address)Step 2) In the json response, look for the value in the field “BytesWritten” which will be under a subsection, name" : "Hadoop:service=DataNode,name=DataNodeActivity-name of your datanode-50010". There should only be one entry/value for this.Step 3) The above value reflects the actual data change value (additions, deletions, modifications). Essentially, if you add and drop a hdfs file, the value won’t reduce and will reflect the actual data change rate.Step 4) Summing up these values for all the data nodes will give the overall data change in the entire system. Step 5) Finally,
This is a basic Ambari blueprint for clusters that implement high availability for HDFS, Yarn and Hive for HDP 2.6. This includes Namenode HA, Resourcemanager HA, Hive Metastore server HA and Hive Server HA. It does not implement a high-availability database for the Hive metastore, though, as that is done within the relational database backed itself. It has been developed and tested using Cloudbreak, but should work with Ambari as well.Hostgroup Layout Raw Blueprint JSON { "Blueprints": { "blueprint_name": "cb24-hdp26-ha", "stack_name": "HDP", "stack_version": "2.6" }, "settings": [ { "recovery_settings": [] }, { "service_settings": [ { "name": "HIVE", "credential_store_enabled": "false" } ] }, { "component_settings": [] } ], "host_groups": [ { "name": "master_mgmt", "components": [ { "name": "METRICS_COLLECTOR" }, { "name": "METRICS_GRAFANA"
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.Another way to work with Apache MXNet is by using your Apache Zeppelin notebook to run your Python deep learning scripts.Apache Zeppelin NotebookAs you can see we can format that data as a table using Apache Zeppelin display technology.Use this print statement:print("%table top1pct\ttop1\top2\ttop2pct\ttop3pct\ttop3\ttop4pct\ttop4\ttop5pct\ttop5\timagefilename\truntime\tuuid\n" + top1pct + "\t" + top1 + "\t" + top2pct + "\t" + top2 + "\t" + top3pct + "\t" + top3 + "\t" + top4pct + "\t" + top4 + "\t" + top5pct + "\t" + top5 + "\t" + filename + "\t" + str(round(end - start)) + "\t" + uniqueid + "\n" )We use the pyspark interpreter to run this Python script, but there's no Spark in here yet.This data also gets loaded in Apache Hive via Apache NiFi as shown here: Deep Learning ModelsYou w
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.Many people are using IBM's excellent DSX platform which uses Jupyter Notebooks and the ever popular Kubernetes.I wanted to try out Apache MXNet in this environment.It's great.Create or reuse an existing notebook. For Python, the default is Jupyter. Zeppelin is now also supported. I am using Python 2.7 with DSX Desktop on an OSX workstation.This supports Apache MXNet.My local Apache MXNet installation and MXNet python installation worked well with DSX. I needed OpenCV for this example, so I was able to install right inside IBM DSX via !pip install --user opencv-python.Very easy to start a notebook and add your code, you get nice syntax coloring.I uploaded the precompiled modelHere we can check our list of Python libraries with !pip list --isolated --format=columns. Very easy to run y
Hortonworks Data Flow v3.1.1 Documentation (link)Thank you to the Hortonworks Data Flow Development, Product Management, Quality Engineering, Partner Certification, Documentation, and Release Engineering teams.
Building Apache Tez with Apache Hadoop 2.8.0 or later fails due to client/server jar separation in Hadoop [1]. The build fails with the following error:[ERROR] COMPILATION ERROR :[INFO] -------------------------------------------------------------[ERROR] /src/tez/tez-api/src/test/java/org/apache/tez/client/TestTezClientUtils.java:[48,30] cannot find symbol symbol: class DistributedFileSystem location: package org.apache.hadoop.hdfs[ERROR] /src/tez/tez-api/src/test/java/org/apache/tez/client/TestTezClientUtils.java:[680,50] cannot find symbol symbol: class DistributedFileSystem location: class org.apache.tez.client.TestTezClientUtils[ERROR] /src/tez/ecosystem/tez/tez-api/src/test/java/org/apache/tez/common/TestTezCommonUtils.java:[62,42] cannot access org.apache.hadoop.hdfs.DistributedFileSystemTo get Tez to compile successfully, you will need to use the new hadoop28 profile introduced by TEZ-3690 [2]. E.g. here is how you compile Tez with Apache Hadoop 3.0.0:mvn clean package -
I find those who install NiFi via ambari using local repos are generally required for security proposes to call out ports to be opened. Typical on cloud environments. I plan update this list this with community feedback to keep this list fresh. These ports are not set in stone. NiFi ports are configure by simply changing the port in the properties file. Lets get to it: Ambari 8080Zookeeper 2181Protocol port9088HTTP port (ssl) 9091HTTP port (non-ssl) 9090Certificate Authority10443nifi.remote.input.socket.port 8022 nifi.cluster.node.protocol.port 8021 Remote Process Group Raw 8022HTTP 8070nifi.remote.input.socket.port 9999
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.See: https://community.hortonworks.com/content/kbentry/174399/apache-deep-learning-101-using-apache-mxnet-on-apa.htmlTo do proper analytics and provide fast SQL access to our inception data generated by Apache MXNet from our images, we need to land it into Apache Hive Transactional tables. We will use the Apache NiFi PutHiveStreaming processor to insert data into our ACID table at a rapid rate. This only works if you create a transactional table with Apache ORC, see the DDL below. You must also be running a new version of HDP 2.6+ that has ACID turned on.Tip: In HDP 2.6.4, you will need to create and work with Apache Hive ACID tables with Hive. Not sql in Apache Zeppelin, since that is Apache Spark. jdbc(hive) is Apache Hive. See the configuration below to hive CBO and TEZ ena
Cloudbreak 2.4.0 is now live!What is Cloudbreak: Cloudbreak simplifies cluster provisioning on public cloud infrastructure platforms Microsoft Azure, Amazon Web Services (AWS), and Google Cloud Platform (GCP), and on the private cloud infrastructure platform OpenStack.Here are the highlights of what’s new in Cloudbreak 2.4.0 compared with Cloudbreak 1.16.x: New UI/UXCloudbreak 2.4.0 introduces a new user interface. All major options are now easily accessible from the collapsible navigation menu. All UI options and wizards have been redesigned in order to make cluster creation and management more intuitive. The following screenshot shows the cluster dashboard:The following screenshot shows cluster details page:> Note that autoscaling is available from the Autoscaling tab.> Note the Show CLI Command available from Actions menu. This allows you to generate a CLI template of the cluster. A similar option is available on the last page of the create cluster wizard.The following screens
Alfredo Sauce - Hadoop HTTP, Kerberos and SPNEGOKerberos SPNEGO authentication for HTTP has been part of hadoop for some time now. On secure cluster many services use it to authenticate HTTP APIs and WEB UIs.Setup and configuration can become a challenge as it involves many aspects, including: kerberos principals, keytabs, network and load balancers, remote users accessing via different browsers, different operative systems, etc.In this article I will share how Kerberos SPNEGO authentication for HTTP works in hadoop.IntroductionKerberos SPNEGO authentication for HTTP was introduced to hadoop via HADOOP-7119. The implementation is based on a servlet filter that is configured to front all incoming HTTP requests to the application. If not valid hadoop.auth cookie is found, the servlet filter calls the KerberosAuthenticationHandler to perform kerberos authentication for the UserAgent request. Upon a successful kerberos authentication, servlet filter adds a signed cookie to the response so
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.Motivation: Use the Power of Our Massive HDP Hadoop Cluster and YARN to Run My Apache MXNetFor a real-world Deep Learning problem, you would want to have some GPUs in your cluster and in the near term YARN 3.0 will allow you to manage those GPU resources. For now, install a few GPUs in special HDP cluster just for training Data Science jobs. You can make this cluster compute and RAM heavy for use by TensorFlow, Apache MXNet, Apache Spark and other YARN workloads.In my example, we are running inception against an image, this could be from a security camera, a drone or other industrial purposes.We will dive deeper into industrial IIOT use cases here:If you are in Philadelphia, please join me. If not, all of the content will be shared on slideshare, github and here.To set this up, we wil
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.