Dive into the community: get started with the basics, connect with peers, share your feedback, and discover helpful technical articles.
Recently active
In a non-Kerberized environment, for Kafka console consumer command displays all messages, perform the following:Note:Here, <broker_host> is Kafka broker hostname, <zk_host> is zookeeper hostname and Kafka port will be 6667: Using Old consumer API (prior to HDP 2.5.x), run the following:bin/kafka-console-consumer.sh --zookeeper <zk_host>:2181 --topic test --from-beginning Using New consumer API ( From HDP 2.5.x onwards), run the following: bin/kafka-console-consumer.sh --bootstrap-server <broker_host>:6667 --topic test --from-beginnin To view a specific number of message in a Kafka topic, use the --max-messages option. To view the oldest message, run the console consumer with --from-beginning and --max-messages 1: Using Old consumer API ( Prior to HDP 2.5.x):bin/kafka-console-consumer.sh --zookeeper <zk_host>:2181 --topic test --from-beginning --max-messages 1 Using New consumer API ( From HDP 2.5.x onwards): bin/kafka-console-consumer.sh --bootstrap-ser
Due to conflict in Jackson jar versions, Oozie job with spark2 action(spark action with spark2 sharelib) may get failed with below error: 2018-06-05 16:53:04,567 [Thread-20] INFO org.apache.spark.SparkContext - Created broadcast 0 from showString at NativeMethodAccessorImpl.java:0 Traceback (most recent call last): File "/grid/9/hadoop/yarn/local/usercache/XXXX/appcache/application_1528131553123_0280/container_e81_1528131553123_0280_01_000002/stg_gl_account_classification_master.py", line 9, in <module> gacm.show() File "/grid/9/hadoop/yarn/local/usercache/XXXX/appcache/application_1528131553123_0280/container_e81_1528131553123_0280_01_000002/python/lib/pyspark.zip/pyspark/sql/dataframe.py", line 318, in show File "/grid/9/hadoop/yarn/local/usercache/XXXX/appcache/application_1528131553123_0280/container_e81_1528131553123_0280_01_000002/python/lib/py4j-0.10.4-src.zip/py4j/java_gateway.py", line 1133, in __call__ File "/grid/9/hadoop/yarn/local/usercache/XXXX/
Microservice applications prefer OpenID SSO by existing IDP, for example Keycloak. When these application access Hadoop Services with JWT, Knox should be able to verify and proxy to internal services. This article describe how to configure Knox JWT Provider and customize for your IDP requirement.There are two options.KnoxSSO direct integrate with IDPKnoxSSO, Knox Single Sign On service, integrates with IDP, for example Keycloak. After authenticated by IDP, Knox signs a JWT token for all microservices and Hadoop RESTful services. This solution is complex to configure and Knox could become the performance bottleneck.Knox JWTProvider accept jwt signed by other IDPMicroservices still use current IDP for single sign on, and configure an extra Knox topology to accept other IDP signed JWT token. The second solution has less impact on existing architecture and Knox is only used when access Hadoop services. Here we will focus on this solution, and discuss how to configure Knox and what is the l
Please follow below steps to run spark2 action via Oozie on HDP clusters.https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_spark-component-guide/content/ch_oozie-spark-action.htmlYour Oozie job may get failed with below error because of jar conflicts between 'oozie' sharelib and 'spark2' sharelib.Error:2018-06-04 13:27:32,652 WARN SparkActionExecutor:523 - SERVER[XXXX] USER[XXXX] GROUP[-] TOKEN[] APP[XXXX] JOB[0000000-<XXXXX>-oozie-oozi-W] ACTION[0000000-<XXXXXX>-oozie-oozi-W@spark2] Launcher exception: Attempt to add (hdfs://XXXX/user/oozie/share/lib/lib_XXXXX/oozie/aws-java-sdk-kms-1.10.6.jar) multiple times to the distributed cache. java.lang.IllegalArgumentException: Attempt to add (hdfs://XXXXX/user/oozie/share/lib/lib_20170727191559/oozie/aws-java-sdk-kms-1.10.6.jar) multiple times to the distributed cache. at org.apache.spark.deploy.yarn.Client$anonfun$prepareLocalResources$13$anonfun$apply$8.apply(Client.scala:632) at org.apache.spark.deploy.yarn.Client$an
We are pleased to announce the immediate availability of Hortonworks Data Flow(HDF) version 3.1.2 for both x86 and IBM Power Systems. This version is a maintenance release and includes critical bug fixes for NiFi, MiNiFi, Ranger, Streams Analytics Manager(SAM), Schema Registry, plus more. HDF 3.1.2 includes the following components: Apache Ambari 2.6.2Apache Kafka 1.0.0Apache NiFi 1.5.0NiFi Registry 0.1.0Apache Ranger 0.7.0Apache Storm 1.1.1Apache ZooKeeper 3.4.6Apache MiNiFi Java Agent 0.4.0Apache MiNiFi C++ 0.4.0Hortonworks Schema Registry 0.5.0Hortonworks Streaming Analytics Manager 0.6.0The release and documentation are available at: Hortonworks Data Flow v3.1.2 Download: (link) Hortonworks Data Flow v3.1.2 Documentation: (link)
OBJECTIVE:Updating the log configs of DPS App. Example default log file is set to logs/application.log which can be changed or Updating the log level to DEBUG for troubleshooting. Since DP App will be running in docker we can use docker commands to update them.STEPS: 1. Find the docker container running DP App on the host running DPS. Use "docker ps"[root@dps-node ~]#docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESabd412417907 hortonworks/dlm-app:1.1.0.0-41 "runsvdir /etc/sv" 28 hours ago Up 2 hours 9011/tcp dlm-app62620e578e31 hortonworks/dp-app:1.1.0.0-390 "/bootstrap.sh" 2 days ago Up 16 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 9000/tcp
Prerequisite: Create an Account in S3 and get the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEYAWS Command Line: For the AWS command line to work have AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY configured in ~/.aws/credentials. Something like: [default] aws_access_key_id=$AWS_ACCESS_KEY_ID aws_secret_access_key=$AWS_SECRET_ACCESS_KEYYou might also want to set the region and output in ~/.aws/config. Something like: [default]region=us-west-2output=json Steps: Create a bucket in S3. You can create it online on Amazon Console ( CreatingABucket.html ) or using the command line like: aws s3 mb $BUCKET_NAME Modify the below properties in core-site.xml: fs.defaultFS to s3a://$BUCKET_NAME fs.s3a.access.key to $AWS_ACCESS_KEY_ID fs.s3a.secret.key to $AWS_SECRET_ACCESS_KEY fs.AbstractFileSystem.s3a.imp to org.apache.hadoop.fs.s3a.S3A (HADOOP-11262) You might also want to set the below property in tez-site.xml if you need to run some Example jobs: tez.staging-dir to hdfs://$NN_HOS
OBJECTIVE:Set logging level within DLM to "DEBUG" for all components to provide more detail when troubleshooting DLM/DSS issues such as pairing problems.OVERVIEW:Using some Docker and bash sleight of hand, update the logback configuration in the DLM Docker container to direct the application to log at a more verbose DEBUG level.PREREQUISITES:Root access or sudo on the DLM host.STEPS:1. Find the running Docker container for DLM on the host running DPS/DLM.sudo docker ps Note the docker container ID running dlm-app.2. Get the current log configuration file from the containersudo docker exec -it <container ID> /bin/cat /usr/dlm-app/conf/logback.xml | tee logback.xml.local3. Using vi or your favorite editor, update the logging configuration section below in the new local copy logback.xml.local, setting to "DEBUG" where desired:...<logger name="play" level="DEBUG" /><logger name="application" level="DEBUG" /><root level="DEBUG"> <appender-ref ref="ASYNCFILE" /&
Hive HBase Generate HFilesDemo scripts available at: https://github.com/sakserv/hive-hbase-generatehfilesBelow contains an example of leveraging the Hive HBaseStorageHandler for HFile generation. This pattern provides a means of taking data already stored in Hive, exporting it as HFiles, and bulk loading the HBase table from those HFiles.OverviewThe HFile generation feature was added in HIVE-6473.It adds the following properties that are then leveraged by the Hive HBaseStorageHandler. hive.hbase.generatehfiles - true to generate HFileshfile.family.path - path in HDFS to put the HFiles.Note that for hfile.family.path, the final sudirectory MUST MATCH the column family name.The scripts in the repo called out above can be used with the Hortonworks Sandbox to test and demo this feature.ExampleThe following is an example of how to use this feature. The scripts in the repo above implement the steps below.It is assumed that the user already has data stored in a hive table, for the sake of thi
Cloudbreak 2.4.2 has been released. In addition to a few bug fixes, the release comes with new base and prewarmed images including Ambari 2.6.2 and HDP 2.6.5 (Cloudbreak 2.4.0 and 2.4.1 came with earlier Ambari and HDP versions).For documentation, see https://docs.hortonworks.com/HDPDocuments/Cloudbreak/Cloudbreak-2.4.2/content/index.htmlFor release notes, see https://docs.hortonworks.com/HDPDocuments/Cloudbreak/Cloudbreak-2.4.2/content/releasenotes/index.html
Rack Awareness:Rack awareness is having the knowledge of Cluster topology or more specifically how the different data nodes are distributed across the racks of a Hadoop cluster. The importance of this knowledge relies on this assumption that collocated data nodes inside a specific rack will have more bandwidth and less latency whereas two data nodes in separate racks will have comparatively less bandwidth and higher latency.The main purpose of Rack awareness is:Increasing the availability of data block Better cluster performanceLet us assume the cluster has 9 Data Nodes with replication factor 3.Let us also assume that there are 3 physical racks where these machines are placed:Rack1: DN1;DN2;DN3Rack2: DN4;DN5;DN6Rack3: DN7:DN8;DN9The following diagram depicts an example block placement when HDFS and Yarn are not rack aware:What happens if Rack1 goes down? -> Potentially data in Block1 might be lost Not being Rack aware the entire cluster is thought of placed in default-rack The foll
Have recently run into multiple issues where ORC files on hive are not getting compacted.There are a couple of parameters required to enable concat on ORC.SET hive.merge.tezfiles=true; SET hive.execution.engine=tez;SET hive.merge.mapredfiles=true;SET hive.merge.size.per.task=256000000;SET hive.merge.smallfiles.avgsize=256000000;SET hive.merge.mapfiles=true;SET hive.merge.orcfile.stripe.level=true;SET mapreduce.input.fileinputformat.split.minsize=256000000;SET mapreduce.input.fileinputformat.split.maxsize=256000000;SET mapreduce.input.fileinputformat.split.minsize.per.node=256000000;SET mapreduce.input.fileinputformat.split.minsize.per.rack=256000000;ALTER TABLE <table_name> SET TBLPROPERTIES('EXTERNAL'='FALSE');alter table <table_name> partition ( file_date_partition='<partition_info>') concatenate;ALTER TABLE <table_name> SET TBLPROPERTIES('EXTERNAL'='TRUE');mapreduce.input.fileinputformat.split.minsize.per.nodeSpecifies the minimum number of bytes that each in
This is the third in the series of articles on WFM.Part 1: https://community.hortonworks.com/articles/82964/getting-started-with-apache-ambari-workflow-design.html Part 2: https://community.hortonworks.com/articles/82967/apache-ambari-workflow-designer-view-for-apache-oo.html Part 4: https://community.hortonworks.com/articles/83051/apache-ambari-workflow-designer-view-for-apache-oo-2.htmlPart 5: https://community.hortonworks.com/articles/83361/apache-ambari-workflow-manager-view-for-apache-ooz.htmlPart 6: https://community.hortonworks.com/articles/83787/apache-ambari-workflow-manager-view-for-apache-ooz-1.htmlPart 7: https://community.hortonworks.com/articles/84071/apache-ambari-workflow-manager-view-for-apache-ooz-2.htmlPart 8: https://community.hortonworks.com/articles/84394/apache-ambari-workflow-manager-view-for-apache-ooz-3.htmlPart 9: https://community.hortonworks.com/articles/85091/apache-ambari-workflow-manager-view-for-apache-ooz-4.htmlPart 10: https://community.hortonworks.co
Following steps will help you install miniconda, conda or anaconda using wget.1. Locate the version you need to install by opening the following link on your browserhttps://repo.continuum.io/miniconda/for example lets say you decided to use https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh2. Download the installeryum install wget bzip2wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh3. Run the installer and follow the stepschmod +x Miniconda3-latest-Linux-x86_64.sh./Miniconda3-latest-Linux-x86_64.shNote: I recommend to select an install location like /opt/miniconda3 or similar that can be shared and used by different users
1. As a first step, enable HTTPS for HDFS, you can follow the article https://community.hortonworks.com/articles/52875/enable-https-for-hdfs.html2. Add/Update below configurations in "Custom mapred-site" mapred-site.xmlmapreduce.jobhistory.http.policy=HTTPS_ONLYmapreduce.jobhistory.webapp.https.address=<JHS>:<JHS_HTTPS_PORT> mapreduce.ssl.enabled=truemapreduce.shuffle.ssl.enabled=trueEx: mapreduce.jobhistory.webapp.https.address=apappu-hdp234-2.openstacklocal:198893. Add/update below configurations under "Advanced yarn-site" ( yarn-site.xml)yarn.http.policy=HTTPS_ONLYyarn.log.server.url=https://JHS:JHS_HTTPS_PORT/jobhistory/logsyarn.resourcemanager.webapp.https.address=RM:RM_HTTPS_PORTyarn.nodemanager.webapp.https.address=0.0.0.0:NM_HTTPS_PORTEx: yarn.log.server.url=https://apappu-hdp234-2.ambari.org:19889/jobhistory/logsyarn.resourcemanager.webapp.https.address=apappu-hdp234-2.ambari.org:8090yarn.nodemanager.webapp.https.address=0.0.0.0:80424. Add/update below property in
Good design goes mostly unnoticed. If a user interface works well, you simply complete a task and move on to the next. That time when something doesn't work as expected, or you think why do I have to do it this way, is when the design becomes much more noticeable.The following is a look back over recent months at some notable UI/UX improvements that have recently made or will be soon making their way to Apache NiFi. They vary a lot in size and complexity, but overall they contribute equally to make NiFi better by design.Enable/Disable Support for Multiple ComponentsMuch like starting/stopping multiple components on the canvas, now you can enable or disable more than one component at the same time. You can also perform the action on a process group, therefore effecting all applicable components within. If your flow has a large number of stopped components, disabling them can help reduce the load NiFi takes on during validation.NIFI-5066Automatically Reconnect NiFi Node to ClusterIf a mu
In order to use a non operative system default version of python with Zeppelin Pyspark interpreter you need to add the following configuration in the interpreter configuration page:Previous to this configuration you need to install the python version you like to use along side the operative system one in separate folder. Important: Changing the default os python could have an impact on other services and applications running on the machine. Hence we don't recommend doing so. Once you have installed the python version you wish to use set the above configuration pointing to the path of the python binary. After adding the above, save and restart the interpreter. To test changes:\Important: The new python version installed needs to be present on zeppelin machine and all cluster worker nodes. Use same directory and make sure access permissions to the python dir is correctly set.
About Apache Spark: Apache Spark is an open-source distributed general-purpose cluster computing framework with in-memory data processing engine. We can do ETL analysis, Machine learning, Graph processing on large volumes of data at rest as well as data in motion with rich consise high level APIs in programming languages such as Python, Java, Scala, R and SQL. Spark execution engine is capable of processing batch data and real time streaming data from different data sources via Spark streaming. Spark supports an interactive shell for performing data exploration and for ad hoc analysis. We can run Spark applications locally or distributed across a cluster, either by using an interactive shell or by submitting an application. spark-shell - scala interactive shell pyspark - python interactive shell sparkR - R interactive shell To run applications distributed across a cluster, Spark requires a cluster manager. Spark environment can be deployed and managed through the following cluster mana
The Key Distribution Center (KDC) is available as part of the domain controller and performs two key functions which are: Authentication Service (AS) and Ticket-Granting Service (TGS)By default the KDC requires all accounts to use pre-authentication. This is a security feature which offers protection against password-guessing attacks. The AS request identifies the client to the KDC in plain text. If pre-authentication is enabled, a time stamp will be encrypted using the user's password hash as an encryption key. If the KDC reads a valid time when using the user's password hash, which is available in the Active Directory, to decrypt the time stamp, the KDC knows that request isn't a replay of a previous request.When you do not enforce pre-authentication, a malicious attacker can directly send a dummy request for authentication. The KDC will return an encrypted TGT and the attacker can brute force it offline. Upon checking the KDC logs, nothing will be seen except a single request for a
Detecting Language with Apache NiFiThis is a work-in-progress as I am still experimenting with some libraries and techniques to improve this. I originally looked at Apache OpenNLP, Apache Tika, optimaize, Deep Learning and some older libraries. It turns out that most of them are defunct or use optimaize. So I am using the Apache Tika wrapper of optimaize for this pass. I am testing with a few experts to see if we can parse the main languages we need. JUnit TestAdd The Processor (First copy to LIB directory and restart the NiFi server) Do not run this in production. Download the NAR from the github.A Quick FlowIt produces an attribute: langdetectTikaSo far I have tested with Spanish (es) and English (en).Source: https://github.com/optimaize/language-detectorJUNit Results18:30:37.386 [pool-1-thread-1] DEBUG com.optimaize.langdetect.LanguageDetectorImpl - ==> [DetectedLanguage[es:0.9999962696603875]]18:30:37.389 [pool-1-thread-1] DEBUG com.optimaize.langdetect.Language
IssueSoon after starting Druid services, coordinator keeps going down. This is mostly experienced on a new setup. The exception in the coordinator log looks like this2018-02-02T00:37:24,123 ERROR [main] io.druid.cli.CliCoordinator - Error when starting up. Failing.org.skife.jdbi.v2.exceptions.CallbackFailedException: org.skife.jdbi.v2.exceptions.UnableToExecuteStatementException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'druid.druid_rules' doesn't exist [statement:"SELECT id from druid_rules where datasource=:dataSource", located:"SELECT id from druid_rules where datasource=:dataSource", rewritten:"SELECT id from druid_rules where datasource=?", arguments:{ positional:{}, named:{dataSource:'_default'}, finder:[]}] at org.skife.jdbi.v2.DBI.withHandle(DBI.java:284) ~[jdbi-2.63.1.jar:2.63.1] at io.druid.metadata.SQLMetadataRuleManager.createDefaultRule(SQLMetadataRuleManager.java:83) ~[druid-server-0.10.1.2.6.4.0-91.jar:0.10.1.2.6.4.0-91] at
How do you know if your customers (and potential customers) are talking about you on social media?The key to making the most of social media is listening to what your audience has to say about you, your competitors, and the market in general. Once you have the data you can undertake analysis, and finally, reach social business intelligence; using all these insights to know your customers better and improve your marketing strategy. This is the third part of the series of articles on how to ingest social media data like streaming using the integration of HDP and HDF tools. To implement this article, you first need to implement the previous two. https://community.hortonworks.com/articles/177561/streaming-tweets-with-nifi-kafka-tranquility-druid.htmlhttps://community.hortonworks.com/content/kbentry/182122/integrating-nifi-to-druid-with-a-custom-processor.html Let’s get started! In this new article, we will address two main points: 1 - How to collect data from various social networks
Original PostHive and Google Cloud StorageGoogle’s Cloud Platform provides the infrastructure to perform MapReduce data analysis using open source software such as Hadoop with Hive and Pig. Google's Compute Engine provides the compute power and Cloud Storage is used to store the input and output of the MapReduce jobs.HDP deployment using CloudBreak.Before we deploy HDP in GCE, we need to setup account in GCE and CloudBreak.Signup for free trial account on https://cloud.google.com/free-trial/Step1) Login into your google dashboard and then click Create a project. For example: I created a project called hadoop-installStep 2) Create credentials.Click Create new Client ID and then choose Service account.Click Okay got it and it will download JSON key (We won’t be using this file). You will see Client ID, Email address and Certificate fingerprints in the same window after downloading JSON key. There will be an option to Generate new P12 key.Step 3) Enable APIDefault API when you loginSearch
Integrating Keras (TensorFlow) YOLOv3 Into Apache NiFi WorkflowsFor this article I wanted to try the new YOLOv3 that's running in Keras.Out of the box with video streaming, pretty cool:git clone https://github.com/qqwweee/keras-yolo3 wget https://pjreddie.com/media/files/yolov3.weights python convert.py yolov3.cfg yolov3.weights model_data/yolo.h5 python yolo.pySee:https://github.com/qqwweee/keras-yolo3My article on Darknet original YOLO v3 is here: https://community.hortonworks.com/articles/191259/integrating-darknet-yolov3-into-apache-nifi-workfl.htmlExample JSON Output{ "boxes" : "Found 8 boxes for img", "class7" : "diningtable", "score7" : "0.7484486", "left7" : "636", "right7" : "1096", "top7" : "210", "bottom7" : "693", "class6" : "sofa", "score6" : "0.31372178", "left6" : "1114", "right6" : "1276", "top6" : "172", "bottom6" : "381", "class5" : "chair", "score5" : "0.3455438", "left5" : "990", "right5" : "1048", "top5" : "183", "bottom5" : "246", "class4" : "
Updating The Apache OpenNLP Community Apache NiFi Processor to Support Flow FilesIn this new release, we add the ability to read content from the FlowFile and analyze that for Locations, Dates, Organizations and Names. We are using the Apache OpenNLP 1.5 Models that are available for download. These do a decent job. You can build new models as needed. I also changed it to output one attribute per type with a String list of locations, organizations, dates and names.I put out a new release, built around Apache NiFi 1.6.0.Source and NAR Downloadhttps://github.com/tspannhw/nifi-nlp-processor/releases/tag/1.6Download the Pre-trained Models for Your Language Here:http://opennlp.sourceforge.net/models-1.5/I chose English (en).In a future release I made add Organization, Money, Time and Percentage to the lists we extract if there is interest.A Final JSON File ProducedExample OutputThe Main Flow For Trying Out The NLP ProcessorSet Your ModelsNew NLP Processor DocumentationHere is the sch
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.