Find answers, ask questions, and share your expertise
Recently active
HiI'm runningApache Nifi 2.3.0MS SQL EXPRESSJDBC Driver mssql-jdbc-12.8.1.jre11.jarI've configured Controller Service (DBCPConnectionPool 2.3.0). It was successfully enabled.Problem: When I try to configure any processor that uses DBCP, I don't see the connection pool. I tried different connection pools but facing the same issue. No sure what is causing this.Appreciate any help
Hi everyone,I'm currently working with Apache NiFi 2.1.0 versions, and I'm wondering:Is it possible to create a custom Flow Analysis Rule, similar to how we can create custom processors?Thanks in advance for your help!
Hey, everyone!Could you help me with next problem, please? I have a test NiFi instance, where I turned on Content Storage archive. It was works good, but one time I decided to increase value of "nifi.content.repository.archive.max.usage.percentage" from default 50% to 70%.So, NiFi utilized space to 70% of total as I expected.But, after that I disabled archiving and expected that NiFi releases all data used by archive, but it doesn't happens.Why so? I've saw messages, that archived data is never cleanup if "nifi.content.repository.archive.enabled" set to "false" after it has been "true". Is that truth?My current settings:nifi.content.repository.implementation=org.apache.nifi.controller.repository.FileSystemRepositorynifi.content.claim.max.appendable.size=1 MBnifi.content.repository.directory.repo0=/mnt/nifi/repos/content_repositorynifi.content.repository.archive.max.retention.period=6 hoursnifi.content.repository.archive.max.usage.percentage=60%nifi.content.repository.archive.backpressu
Hello,We have set up Apache nifi 2.1.0 with 2 nodes with cluster mode, secure mode and single user access enabled. When we access by the application web behind a load balancer and sticky session active all it's ok. When we use API Rest by programmatic mode we ask NiFi "/access/token" and we get a valid token immediately we send a request with authorization bearer token and JWT when the request is attended by the same node which service the JWT all right but when the request is attended by the other node, in the same cluster, response with 401 error. ¿How can we make NiFi to accept the JWT in all nodes?
Hi everyone, I would like some clarification. Thank you.Embedded Container Service 1.5.1, CML installation keeps getting stuck and eventually fails with a timeoutcheck the CML pod: /var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml -n cml get po We found that the status of the s2i-builder pod is CrashLoopBackOff.check log: /var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml -n cml logs s2i-builder-97d946b65-46fhcDefaulted container "fluent-bit" out of: fluent-bit, s2i-builder, update-ca-trust (init), chowndockersock (init), chowndockercert (init)Fluent Bit v1.9.10* Copyright (C) 2015-2022 The Fluent Bit Authors* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd* https://fluentbit.io[2024/09/26 08:19:29] [ info] [fluent bit] version=1.9.10, commit=, pid=1[2024/09/26 08:19:29] [ info] [storage] version=1.3.0, type=memory-only, sync=normal, checksum=disabled, max_chunks_up=128[2024/09/26 08:19:29]
We have a number of PostHTTP processors sending files to ListenHTTP processors that chug along day after day happy as a clam. Then all of a sudden, there will be a spate of these errors: "Cannot send . . . to . . . because the destination does not accept FlowFiles and this processor is configured to delivery FlowFiles; routing to failure."For one of the PostHTTP processors, I created additional routes on success/failure so that I could look at and compare the files. These files are JSON, and after downloading the files to both success and failure, both are correctly formed JSON. We have a retry-loop flow here, too, that on failure retries the post five times. So these additional routes also allowed me to see in provenance one of the files that failed with the above error eventually went through.I'm looking for any insight on why this might be happening.About = niagarafiles 11.31.0 based on Apache NiFi 1.26.0a
I set up a 4-node NiFi cluster and generated certificates. When I try to log in using my certificate user nifi_admin, I get the error:"An unexpected error has occurred. Please check the logs for additional details."When I checked the logs, I saw that the nodes in the cluster were encountering the following errors when trying to connect to the coordinator node:The node I connect to the interface: https://vtmrt3anifit01.x.com:8443/nifi/The error received in the nifi-user.log file on this machine is as follows:ERROR [NiFi Web Server-221] o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: java.io.UncheckedIOException: Read Current User Entity failed. Returning Internal Server Error response.java.io.UncheckedIOException: Read Current User Entity failedat org.apache.nifi.web.api.FlowResource.readReplicatedCurrentUserEntity(FlowResource.java:446)at org.apache.nifi.web.api.FlowResource.getCurrentUser(FlowResource.java:421)at java.base/jdk.internal.reflect.DirectMet
I have have two request formdata param. One param is file which is multipart and another is acno which is string. Here is the postman image: Postman request is working fine. This postman request, I want to process using Apache Nifi. Here I have tried to use below image in apache nifi:But when start above aldiagram file & acno not foundHere is screen steps:1. GetFile screen :2. Update Attribute screen:3. AttributeToJson screen:4. InvokeHTTP screen:I follow steps above screen --> Getfile->UpdateAtribute->AttributeToJson->InvokHttpWhat is the wrong of my configuration?Please help me...
I am running few yarn jobs and sometimes I am seeing the heap utilisation going beyond 80%.As of now the heap for RM is set as 4GB.Let me know how to decide the RM heap ?
Hello,After cloudera cluster upgrade, the hive service becomes unhealthy after a few hours.What i noticed is that the symlinks from /etc/alternatives are still pointing to the old parcel, but not sure if this is what makes the service unhealthy because I keep seeing the following error in the logs:ERRORS:Failed to get database cloudera_manager_metastore_canary_test_catalog_hive_HIVEMETASTORE_*NoSuchObjectException(message:No catalog cloudera_manager_metastore_canary_test_catalog_hive_HIVEMETASTORE_*Failed to delete hdfs://*/user/hue/.cloudera_manager_hive_metastore_canary/cloudera_manager_metastore_canary_test_catalog_hive_HIVEMETASTORE_* Thank you!
Hello all,I could use some help — what’s the current process for obtaining a developer license?We have an older link to a Google request form that we’ve used in the past, but it doesn’t seem to work anymore.Thank you.
Hi, We've developed custom Python-based processors (GetCheckpoint, UpdateCheckpoint) for NiFi 2.0.0-M2 to handle checkpoint creation and updates and put it in python/extensions/GetCheckpoint.pypython/extensions/UpdateCheckpoint.py These processors worked correctly in 2.0.0-M2. However, after upgrading to NiFi 2.1.0, we’re encountering the following issues: All custom processor properties now display the message: “Sensitive of the parameter does not match the sensitivity of the property” — even though the properties were not marked as sensitive in the code. When adding a new instance of the processor, properties appear correct, but state handling breaks. We modified and rebuilt the processors and, when adding them freshly to a flow, they seem to work correctly without any errros. However, existing GetCheckpoint /UpdateCheckpoint still show the sensitivity mismatch warning.
I need to extract a parent JSON column present in Hadoop:This is an example of my JSOn.Here I need to extract only values products class but not of offer. I cant use index of product as the the number of occurrences might change in future.Have used the following regex regexp_replace(regexp_replace(get_json_object(xml_data, '$.customer.products'),'\\}\\,\\{','\\}\\\n\\{'),'\\[|\\]','') AS prd_JSONBut is is only giving all values in a row , not in multiple rows.Have also tried something like below, but it doesnt give correct result:regexp_replace(regexp_replace(get_json_object(xml_data, '$.customer.products'),'\\}\\,\\{','\\}\\\n\\{'),'\\[|\\]','') AS prd_JSONfrom prd_table)select get_json_object(prd_item,'$.productCode') as productCode,get_json_object(prd_item,'$.type') as Ttypefrom prdLATERAL VIEW OUTER EXPLODE(split(prd_JSON, ';')) p AS prd_item) a {"Customer": {"CustomerId": "19900101","appl": [{***Some values}]"products": [{"ProductCOde": ABC,"Type": C1,"Offer": 1657
Hi Team i want to acees the hive ACID table using the spark.sql but when i am trying that i am just getting the table columns noit the data, now i tried using HWC but i am not sure as its showing in the docs that LLAP deamon shold be there in order to work with HWC can anyoine help me i am using spark 3.2.1 what is the correct way to acess the hive acoid table using spark.sql ?what are the prerequsite in order to work with HWC?can someone share a code sniped so that i can also access the hiv acid table using spark.sql ?spark = ( SparkSession.builder.appName("ReadHiveTable") .config("hive.metastore.uris", hive_metastore_uri) .config("spark.sql.warehouse.dir", warehouse_dir).enableHiveSupport().getOrCreate() df = spark.sql(f"SELECT * FROM {table_name}").show()
Hello everyone,I try to create a custom PutSFTP processor to add different failure Relationships to further improve my error handling and go different routes if an error occurs.Im using NiFi-2.3.0 and a Java 21 shaded JAR for my custom processorsmy issue is that i get java.lang.NoClassDefFoundError: org/apache/nifi/processors/standard/PutSFTP message when loading my custom processor in Nifi. I already tried:adding the standard processors to my shaded jar but that only made things worse and some standard processors stopped workingadding nifi-file-transfer dependency to shaded jar but then the default PutSFTP stopped workinguse extends PutFileTransfer<SFTPTransfer> instead of PutSFTP but again NoClassDefFound only this time for PutFileTransferIs there a way to add the missing Class without breaking anything else?I really want to avoid rebuilding the whole PutSFTP to a custom PutSFTP when i only need to change small parts of it.
@Cloudera We have received below mentioned vulnerability from our security team. Could you please check and let us know if our Hadoop cluster is impacted by this vulnerability.If yes the can you please provide a fix for this.CVE-2025-3884 Cloudera Hue Directory Traversal Information Disclosure Vulnerability CM version : Cloudera Enterprise 6.3.4 (#21561749)CDH Version : 6.3.4-1.cdh6.3.4.p5552.32087246
HiWe are currently operating a three-node cluster using Apache NiFi version 2.1.During a recent deployment of NiFi flows, we encountered an issue related to replication inconsistencies across the nodes.This problem resulted in one of the nodes being out of the cluster and remained in disconnected state.Furthermore, the affected node did not attempt to reconnect to the cluster on its own.Although the node was disconnected from the cluster, it continued to operate independently, allowing it to consume messages, execute database queries, and perform actions as a standalone instance.I would like to know two things hereIs this expected behavior for nifi node to be active although it is not in clusterCan we alter the behavior through configuration to stop processors temporarily while node is not connected to cluster?Thanks for in advance for your inputs. Let me know if more details are required.Thanks
Hi all,we are experiencing a progressive socket leak from the LLAP HiveServer2 daemon to HDFS DataNodes in a cluster running HDP 3.1.5The fd grow constantly until the limit of 6400 and the only resolution is to restart hiveserver2Interactive:[hive@myhost hive]$ netstat -tanp | grep "CLOSE_WAIT" | awk '{print $NF}' | awk -F'/' '{print $1}' | sort | uniq -c(Not all processes could be identified, non-owned process infowill not be shown, you would have to be root to see it all.)1734 -55443 27915 49167[hive@myhost hive]$ ps -ef | grep 2791hive 2791 1 31 Apr11 ? 6-01:44:32 /usr/jdk64/jdk1.8.0_112/bin/java -Dproc_jar -Dhdp.version=3.1.5.0-152 -Djava.net.preferIPv4Stack=true -Xloggc:/var/log/hive/hiveserverinteractive-gc-%t.log -XX:+UseG1GC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCCause -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/grid/0/tmp/hsi_heapdump.hprof -Dhive.log.dir=/var/log/hive -Dhive.log.f
Hello,I need to enable the HSTS header for Cloudera Management Services - Host Monitor Service and Service Monitor Service.Whilst I managed to do this for all the other services in the cluster using CORE_SETTINGS -> via HTTP Strict Transport Security parameter, this doesn't seem to be applied to Host Monitor Service and Service Monitor Instance from Cloudera Management Services . Is there a way to enable this?I am running a cloudera manager 7.13.1 with a cloudera runtime 7.3.1.Thank you so much!
Hi Cloudera Cummenity, This documentation lists the versions of components used in Cloudera CDP 7.1.9 SP1:https://docs.cloudera.com/cdp-private-cloud-base/7.1.9/runtime-release-notes/topics/rt-pvc-runtime-component-versions-719sp1.htmlThe Hadoop version is 3.1.1.7.1.9.1000-103.However, when I look at Apache Hadoop Website, I could not find the same version there:The similar thing also happens for HBase:So my question is, why can't I find the hadoop and hbase version that Cloudera CDP used from Apache Hadoop and HBase website?
HiWe are using SiteToSiteReportingRecordSink to generate file transfer report with below settingWe are trying to send the data to the same server where we have added input port processor.Below is the nifi.property setting, do we need to change anything here ?? # Site to Site propertiesnifi.remote.input.host=52564f1f10ffnifi.remote.input.secure=truenifi.remote.input.socket.port=10000nifi.remote.input.http.enabled=truenifi.remote.input.http.transaction.ttl=30 secnifi.remote.contents.cache.expiration=30 secs# web properties ############################################### For security, NiFi will present the UI on 127.0.0.1 and only be accessible through this loopback interface.# Be aware that changing these properties may affect how your instance can be accessed without any restriction.# We recommend configuring HTTPS instead. The administrators guide provides instructions on how to do this.nifi.web.http.host=nifi.web.http.port=nifi.web.http.network.interface.default=we are getti
hi How do we get a report for all the file transfers for a given period ?We are using Nifi to only transfer file from one location to another using SFTP and no transformation on file data.Would like to generate a report with the transferred file name and its transfer status.Thanks
Hello I need helpI want to unzip file.zip with NiFiI have used unpackContent processor but that didn't work because of my nifi version 1.13I have also used executeStreamCommand to execute python script but I didn't found until now the solutionCan you help me Thanks
I am using HBase 2.1.6.Exception happened As following : hbase(main):001:0> scan 'FPCA_ITEMS_TY_NEW',{STARTROW => '08', LIMIT => 2}ROW COLUMN+CELLorg.apache.hadoop.hbase.DoNotRetryIOException: org.apache.hadoop.hbase.DoNotRetryIOException: java.io.FileNotFoundException: File does not exist: hdfs://ha:8020/apps/hbase/data/archive/data/default/FPCA_ITEMS_TY_NEW/bf92b15900f190730a5482b53d350df0/cf/ab741ac0919480a47353778bda55d142202502239bf346dbbfc6475c8967734c2edfaaf4at org.apache.hadoop.hbase.regionserver.HMobStore.readCell(HMobStore.java:440)at org.apache.hadoop.hbase.regionserver.HMobStore.resolve(HMobStore.java:354)at org.apache.hadoop.hbase.regionserver.MobStoreScanner.next(MobStoreScanner.java:73)at org.apache.hadoop.hbase.regionserver.KeyValueHeap.next(KeyValueHeap.java:153)at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.populateResult(HRegion.java:6581)at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.nextInternal(HRegion.java:6745)
Hello everyone,I'm seeking technical advice about designing data flows in Apache NiFi. I extract data from my source (Postgres), and my question is whether I should separate as process groups for Extract, Transform, and Load, or one process group covers end-to-end ETL for one table.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.