Find answers, ask questions, and share your expertise
Recently active
HiWe are using DecryptContentPGP(Private key) andEncryptContentPGP(Public key)to encrypt and decrypt the file at rest, which is working fine.This same cert is being used by multiple flows.We are facing an issue when we have to renew this cert. since we need to restart the controller service StandardPGPPublicKeyService.As this is being used by multiple flows, we need to stop and start all the flows.Is there a easier way to update cert without restarting StandardPGPPublicKeyService? Thanks
So the use case that I want to implement is some requests will be landing on my NIFI in XML format and then I want to control its rate and then pick the necessary inputs from the XML and then differentiate based on a report number and use rate limit on the the defined report numbers and then further a rate limit on a article number which I pick from the XML and then I call an API and send the response back the initial response now the issue is I am using control rate processor to hold the requests to 5 per second but with hold flowfile config as I cannot fail the request directly but also I want to fail the queueing requests after 5 second and with a specific status code and also I want to log on which of the three control rate failed the request. Any help how this flow can be created? And also monitor how many requests landed in the server per sec how many succeeded and how many failed per second.
I'm trying to create a new Nifi custom processor.I'm following instructions given on 4 differents tutorials.I only create the structure of the processor, I don't even try to modifiy the code and I'm always having the same mvn clean install [ERROR].Can you please help me to resolve this ?A huge thanks!!!OS : Windows 10 HomeNifi version : 2.0.0-M2Maven : Apache Maven 3.9.6JDK : Java version: 21.0.2, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-21Me version : Java and Maven newbi (0.0.1)Maven is installed and I have added its bin to the path env var.Jdk in installed and I have added its bin to the path env var.JAVA_HOME env var is defined as C:\Program Files\Java\jdk-21, where my jdk is installed.The error:[ERROR] Failed to execute goal on project nifi-helloworld-nar: Could not resolve dependencies for project org.apache.nifi:nifi-helloworld-nar:nar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.nifi:nifi-standard-services-api-nar:nar:1.0-SNAPSHO
Hi community,Our NIFI version: 1.23.0.We are converting JSON message to AVRO format and posting to KAFKA topic using PublishKafkaRecord_2_0 1.23.0:JSON Tree Reader:AVRO Record Set Writer:Confluent Schema Registry:We are not able to post the message with the error below.We are able to see the AVRO schema in the KAFKA registry through POSTMAN and using browser URL and we are able to connect to that KAFKA topic with the same parameters in NIFI .Could you please help us to resolve this issue.Error:
I have a table with one column as JSON file. I am using lateral explode to parse values.The code is working fine for classes except for one where subclasses have similar variable name :Json:{"Customer": {"CustomerId": "19900101","appl": [{***Some values}]"products": [{"ProductCOde": ABC,"Type": C1,"Offer": 16575.0,"Offer": [{"ProductCOde": A1,"Offer": 2000.0"Type": CBA,}{"ProductCOde": A2,"Offer": 2000.0"Type": DBA,}{"ProductCOde": A3,"Offer": 3000.0"Type": BBA,}]}{"ProductCOde": XYZ,"Type": C2,"Offer": 2001,"Offer": [{"ProductCOde": B1,"Offer": 2000.0"Type": BBA,}{"ProductCOde": B2,"Offer": 2000.0"Type": BBA,}]}]}} Code:with product as (selectxml_data,get_json_object(xml_data,'$.customer.customerid')as applicationid,regexp_replace(regexp_replace(get_json_object(xml_data, '$.customer.products'), '\\[|\\]', ''), '\\}\\,\\{', '\\}\\;\\{') AS product_JSOnfrom Custome_info)selectapplicationid,get_json_object(prod_item,'$.ProductCOde') as ProductCOde,get_json_object(prod_item,'$.type')
Hi,I'm trying to use Nifi 2.3.0 and 2.2.0 to list some ftp files using ListFTP and then fetching it using FetchFTP.The problem is that when I try to fetch using 2.3.0 ListFTP, it gets timed out, and using the same parameters in 2.2.0 ListFTP, I can get the files in the ftp. I also tested it with another ftp and got another error:"- Caused by: org.apache.commons.net.MalformedServerReplyException: Could not parse response code."
Hello, we need access to Cloudera archive in order to be able to setup our cdh docker image to test our cdh jar for h2o-3.https://archive.cloudera.com/cdh5/ubuntu/trusty/amd64/cdhHow can we request access to the repo?Thank you.Adam Valenta (adam.valenta@h2o.ai)
Can NiFi handle multiple users hitting a request? Say I have HandleHttpRequest or a ListenHttp processor and my requirement is to handle say 100 concurrent users. Can we do it in NiFi?
In the context of Cloudera CDP, I've noticed that unlike CDH, YARN does not automatically distribute the hive-site.xml file to the nodes. This seems to be a change in configuration practices, but I'm not sure if this is the correct approach or if there's another recommended method to ensure the hive-site.xml file is properly distributed. Can someone confirm if it is necessary to configure it manually in CDP, or if there is another automated process that YARN handles for distributing the configuration file?
Can we setup the Iceberg table to use ranger authorization on top of spark and how to configure that?
Hello everyone,I'm trying to build Ambari 2.7.9 by following this guide https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.9But when I run this command mvn -B clean install rpm:rpm -DnewVersion=2.7.9.0.0 -DbuildNumber=da8f1b9b5a799bfa8e2d8aa9ab31d6d5a1cc31a0 -DskipTests -Dpython.ver="python >= 2.6", I'm facing this issue Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.0.1:rpm (default-cli) on project ambari-web: RPM build execution returned: '1' executing '/bin/sh -c cd /ambari/apache-ambari-2.7.9-src/ambari-web/target/rpm/ambari-web/SPECS && rpmbuild -bb --buildroot /ambari/apache-ambari-2.7.9-src/ambari-web/target/rpm/ambari-web/buildroot --define '_topdir /ambari/apache-ambari-2.7.9-src/ambari-web/target/rpm/ambari-web' --target noarch-redhat-linux ambari-web.spec' I've already installed rpm-build, g++, and all tools needed to build Ambari, by following https://cwiki.apache.org/confluence/display/AMBAR
Please note that the previous text was translated using a translator, so it might sound a bit awkward. I apologize for any confusion.I’m encountering an issue where everything runs fine initially, but sometimes I experience this error. Could anyone help me understand what might be causing it? [Cloudera][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: ExecuteStatement failed: out of sequence response: expected 6 but got 5, SQL state: HY000,Query: select * from (SELECT tool_path,tag,act_time,value,row_number() over (partition by tool_path,tag order by act_time desc) as rownum FROM `X`.`Y` WHERE (tag like 'A%' or tag like 'B%' or tag like 'C%' or tag like 'D%' or tag like 'E%' or tag like 'F%' or tag like 'G%' or tag like 'H%' or tag like 'I%' or tag like 'J%' or tag like 'K%' or tag like 'L%' or tag like 'M%' or tag like 'N%' or tag like 'O%' or tag like 'P%' or tag like 'Q%' or tag like 'R%' or tag like 'S%' or tag like 'T%' or tag like 'U%') and act_time BE
My goal want to use Nifi to schedule to run python script like daily, monthly.My project are gonna be forecasting Which my python script are gonnaload the ML model then query data from data base and use it as input in my ML model then it will make a prediction then save that data into database.How can I use NiFi to do that? or Should I create API for the Model then use NiFi to call API or using cron Service to schedule it?
Hi Team,I am trying to develop a flow to update the Parameter context on the fly using the InvokeHTTP Processor. Based on the screenshot i have configured the same. However i am getting unAuthorized Error. My URL format is like : https://<nifi-host>:<port>/nifi-api/parameter-contexts/<context-id>Error Screenshot.
Hello Cloudera Community,I'm working on a project where I need to provide users with temporary access to call specific Cloudera AI API endpoints, particularly for interacting with deployed models.My goal is to avoid granting users long-lived API V2 keys and instead generate short-lived, scoped access credentials that expire after a set time (e.g., 2 hours).After exploring the CML API v2 and the cmlapi library, I'm finding it challenging to identify a direct method for generating these temporary, scoped access keys.My questions are:Is there a supported mechanism within the CML API v2 or cmlapi to generate temporary access keys with a specified expiration time?If not, are there recommended alternative approaches for providing users with limited, time-bound access to CML API endpoints?Are there plans to introduce temporary access key generation functionality in future CML releases?Is there a best practice to follow for this kind of implementation?I'm aiming for a solution that prioritizes
Hello everyone,I have developed an Apache NiFi flow that ingests streaming data, converts it to JSON, merges the records, and then stores them in HDFS. However, I have observed a couple of issues:File Structure: After the merge operation, many files retain their original structure rather than being merged as expected.Performance: Increasing the number of pins along with the minimum and maximum record counts and bin sizes causes the merge process to become significantly slower. Conversely, reducing these parameters results in files that mostly maintain their original structure.Could anyone provide insights or recommendations on how to resolve these issues?Thank you.My crrunt cnfigration that cause the flow to go the orginalcurrent comigration where it causes go to original The flowthe flow The congigration that never showsnmerged records.with this cofigration will take forever to merge I didn't see any output
Hi,I've got a Ambari 2.7.3 cluster with Ranger 0.7.0 (yes, I know it's old...).I also have usersync integration with FreeIPA. All these works fine, but I have one issue.I want to restrict access to Admin UI to admin only. No matter what I change in configuration, everytime all users are being added to "Resource Based Policies" and "Reports" modules. Is there any option to disable this?Is there any other option to restrict access to GUI?
Kafka policies created in Ranger are getting downloaded but not becoming active. Using Apache Ranger 2.6 and Apache Kafka 3.6. Couldn't find any specific errors related to this issue.Ranger and Kafka are configured with LDAP and no kerberos. What could be the possible issue? Any help is appreciated!Ranger policies for HDFS and Hive works fine.Below are the ldap and ranger configs in Kafkaauthorizer.class.name=org.apache.ranger.authorization.kafka.authorizer.RangerKafkaAuthorizersasl.enabled.mechanisms=PLAINlistener.name.sasl_plaintext.sasl.enabled.mechanisms=PLAINlistener.name.sasl_plaintext.plain.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required;listener.name.sasl_plaintext.plain.sasl.server.callback.handler.class=io.confluent.security.auth.provider.ldap.LdapAuthenticateCallbackHandlerldap.java.naming.provider.url=ldap://<ldap_host>:389ldap.java.naming.security.authentication=simpleldap.java.naming.security.principal=CN=<bind_user>,OU=Servic
Hi Team,We are looking for your help to troubleshoot & fix the below issue.Issue description : All yarn jobs are failing to get submitted with below error after enabling Ozone.ERROR :Caused by: org.apache.hadoop.yarn.exceptions.YarnException: Failed to submit application_1741072771401_0004 to YARN : Failed to renew token: Kind: OzoneToken, Service: <host ip>:9862, Ident: (OzoneToken owner=hdfs/<hostname>@PLATFORMKRB.COM, renewer=yarn, realUser=, issueDate=2025-03-06T06:57:54.532Z, maxDate=2025-03-13T06:57:54.532Z, sequenceNumber=13, masterKeyId=1, strToSign=null, signature=null, awsAccessKeyId=null, omServiceId=<hostname>, omCertSerialId=6)Regards,Sushant
That pretty much sums it up. We had a database server go down over the weekend, and I have a suspicion that things got backed up, but I can't get to the UI to try to unravel it. I have tried setting autoResumeState to false and setting everything in flow.xml.gz to "Disabled", but the UI still won't come up because of this error. Unfortunately, all of this is in an isolated environment, so sharing full logs is not impossible but very, very difficult. This vm has 23GB of RAM and Xms=4096m and Xmx=8192m. niagarafiles-community-11.6.3
Hi Everyone, I am Emmanuel Katto Dubai, United Arab Emirates (UAE) It appears you're encountering an issue when attempting to run an INSERT INTO query on a Hive table with the Tez execution engine. You mentioned that the query works fine when inserting data into integer columns but fails when inserting into string columns. Additionally, the issue seems related to the Kryo serialization in the logs, where Hive is unable to deserialize the required classes. Here's a breakdown and a few suggestions to troubleshoot the issue: Error Analysis: Error Type: The main error seems to be related to a serialization issue KryoException: Encountered unregistered class ID: 112 This indicates that Hive, during execution, is attempting to deserialize an object that hasn't been registered with the Kryo serializer. This might be related to how the Tez engine handles serialization during the execution of the query. YARN Logs: The error trace shows a failure at the map
How do I get the Client Id to make any processor update using REST PUT call ?
Hello Experts,I have a flow where I use 'SplitRecord' processors to split json records and then in downstream I am merging them back to single file using defragment strategy.Flow is dividing into 2 route downstream so I use merge in 2 places, where merge works fine in one place and does not work in another place.Flow diagram how it is setup - So on the left side MergeContent its merging fine with defragment strategy. But on the right side (red marked) its giving below error (since another api call is in between the flow file arrival to merge record processor might be not in order.)(Example Error : "Cannot defragment flow files with fragment Id XXXXXbecause the expected number of fragment is 5 but found only 3.")I am sending 20 request to end point (HandleHttpRequest) and each request has 5 json records so each request gets split into 5 FF. so it will be come total 100 flow files.(I am sending all 20 request one after other or parallely then this is the issue)Note : If I send
I was able to setup GitLabFlowRegistry in controller settings successfully (which is new feature in Nifi 2.0)From Nifi UI, I am able to import Nifi flow directly from Gitlab repository. After modifications, I was able to successfully commit into Gitlab repo, from Nifi UI.Do we have any toolkit commands to perform these operations? Currently we are using toolkit commands to deploy Nifi flow changes via CICD pipeline. Can I achieve the same with new GitLabFlowRegistry? Appreciate any help/pointers. Thanks
Hi,I'm trying to build something that depends on a bunch of ambari packages that are listed as available through the hortonworks maven repo at:https://repo.hortonworks.com/content/repositories/releases/However, when I attempt to make use of the maven repo, I receive a 504 Gateway Time-out, which indicates that something upstream of the awslb is not responding.Based on some notes from previous support questions this appears to have been happening since December of last year.Someone indicated a reference to nexus-private.hortonworks.com URL, which does not work (it's a cname to nexus-private.releng-internal.cloudera.com, which does not have any A/AAAA records)Is there any resolution to this?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.