Find answers, ask questions, and share your expertise
Recently active
Due to data masking, I can't read tables directly using 'vanilla' Spark. The workaround is connecting Spark to Impala via JDBC and the problem is: when I use reserved words or some operations like `+ INTERVAL 1 DAY` Impala returns the column names as values in the DataFrame.That's how I start the Spark session:spark = ( SparkSession .builder .config("spark.jars", "/home/cdsw/ImpalaJDBC42.jar") .getOrCreate())and how I query data:( spark .read .format("jdbc") .option("driver", "com.cloudera.impala.jdbc.Driver") .option("url", "jdbc:impala://MY_IMPALA_HOST:443/default;AuthMech=3;transportMode=http;httpPath=cliservice;ssl=1") .option("PWD", "MY_PASSWORD") .option("UID", "MY_USERNAME") .option("query", "SELECT 'a' AS index FROM MY_TABLE") .load() .show())That's what I get:+-----+|index|+-----+|index||index||index||index||index||index||index||index||index||index||index||index||index||index||index||index|+-----+Other errors are derived from this one.
I want to filter rows of a CSV file based on a regular expression, but so far I didn't get any row as a match.CSV:F;0;00003;;;SA;30012025;012025;;0456;3790;4940;0;0;150.00;"- Sachbezug (sonstiger)";;;EURF;0;00003;;;SA;30012025;012025;;0461;3790;4949;0;0;50.00;"- Abzug Gutschein stfr.";;;EURG;0;00003;;;SA;30012025;012025;;0486;3790;3725;0;0;970.00;"- sonstiger Abzug";;;EURG;0;00003;;;SA;30012025;012025;;0487;3790;6301;0;0;50.00;"- Abzug Arbeitskleidung";;;EURF;0;00003;;;SA;30012025;012025;;1160;3790;6010;0;0;-25.91;"Ausgl. Zuschl.b.Krankheit";;;EURF;0;00003;;;SA;30012025;012025;;1161;3790;6010;0;0;-63.36;"Ausgl. Zuschl. Feiertag";;;EURNifi-Workflow:Because I don't have any permission to upload images I need to describe what the workflow looks like - sorry.I have a GetFile processor to read the CSV file. This processor is connected directly with the 'RouteText' processor. This processor is connected via the 'unmatches' output to a disabled 'Wait' processor. An output called 'MatchedG' ha
Hi All, I am new to Apache NIFI ,I did the setup on AWS ECS using latest NIFI image and with LDAP authentication. Everything is fine, but when Admin or any other user logs in, then all of the control sections are hidden (processor, input port, output port, funnel).Not sure where I am doing wrong. Pleaes assist me
Hello, everyone!We have a three-node Apache NiFi cluster with LDAP auth and now, users must enter node name to access NiFi UI, e.g.:https://nifi-node-01.company.com:9443/nifiI'd like to do it more friendly for them and create some LB with HAProxy/Nginx etc. You know, to access NiFi with address like that:https://nifi-service.company.comI've read a lot of articles about LB, but all of them talk about LB for data flow, not for UI. So, what do you think - it is OK? Are where any potential pitfalls?
Can NiFi be used to send AS2 messages for EDI file ?If Yes, please provide some information.Thanks
Hi Team,Could you please confirm whether the CountText processor is a standard NiFi processor? I couldn't find it listed under the "Supported NiFi Processors" section in the Cloudera Flow Management 2.1.7 release notes:https://docs.cloudera.com/cfm/2.1.7/release-notes/topics/cfm-supported-processors.htmlYour insights would be appreciated.
Hi We've an existing HDP cluster with version 2.6.5.0-292 with Ranger service setup. Will this Ranger work with MySql 8.4 (without upgrading HDP itself)? From the documentation, it looks like it doesn't but wanted to confirm.Thanks
Hi PutFile adds extra slash at the end, which create a unwanted dir with the filename.Tried using EL to remove the extra slash at the end, but its not working├── abc101c.csv│ └── abc101c.csv├── abc.txt│ └── abc.txt├── abcxyz.txt│ └── abcxyz.txt├── demo│ └── xyz.txt├── fex│ └── test999.txt├── folder│ ├── folder1.txt│ └── folder.txt Thanks
Legal question about using Cloudera ODBC Driver (Connector) for Apache Hive: would it be possible to include its package into my software package (i.e. to bundle them) and install them altogether?
Hello,I am attempting to unzip a series of simple .zip files in my NiFi flow. All of my flow executes with no issues except when I try to unpack. There is nothing special about these zip files (i.e. no passwords, etc...). But no matter which way I try to unpack the zip files, I get the error that the zip file does not contain any entries. I have verified that the zip files do contain entries. I can easily unzip with WinZip. I can also easily unzip with our old custom C# application that we are replacing with NiFi.I have tried adjusting the UnpackContent settings and even have added an UpdateAttribute to add the application/zip mime type as well. Still keep getting the failure. I have also tried the CompressContent processor and still get these errors on simple WinZip files.I am attaching my flow, my processor settings and error message.
Hello.We have ORC tables loaded from Hive (Tez) and queried from Impala. Due to their number of partitions, we had to increase the TEZ AM task's heap, and the note https://my.cloudera.com/knowledge/Tez-AMtask-fails-with-OOME-because-of-huge-impala-stats-chunk?id=348603 seems to match our issueWe'd like to reduce the AM memory footprint, but the solution doesn't work in our 7.1.9 and 7.3.1 environments:* After setting the option in the hive-site.xml, the "impala_intermediate_stats_chunk*" messages are still present in the Hive's plans.* Setting the option at the session level returns the error "Cannot modify hive.plan.mapwork.serialization.skip.properties at runtime. It is not in the list of params that are allowed to be modified at runtime (state=42000,code=1)".* https://github.com/apache/hive/pull/2620 shows that the option should be allowed to be set at the session level, as the HIVE-25501 was implemented in the CDP-7.1.7.After some research we came across the Jira https://
Hi all,I'm working with Cloudera Hive for the first time, seen that my company chose to use this database.I received the JDBC connectionString and I created a little method in java.Here the scriptpublic String[] getEmployee(){ String[] idcod ={"ABC123", "FLS163","XYZ001","PLE456", "ERV021", and so on......}; String[] names= new String[idcod.length]; int ncount=0; long start1, elapsedTimequery; try{ Statement s = conn.createStatement(); System.out.println("Fetch size: "+s.getFetchSize()); ResultSet r=null; for(int i=0; i<idcod.length; i++) { String query=""; query+=" SELECT code, surname, name FROM mytable where code='"+idcod[i]+"'"; ncount=0; start1 = System.nanoTime(); r = s.executeQuery(query); elapsedTimequery = System.nanoTime() - start1; System.out.println((double)(elapsedTimequery/1000/1000)/1000+" seconds"); while(r.next()){ names[i]=r.getString("surname") + " " +r.getString("name"); ncount++; } System.out.println(ncount+"--"+idcod[i])
Hey all,We recently upgrade to nifi 2.4.0 from 1.x and have noticed something weird about the parameter provider in 2.x. From time to time, for some reason, the parameter provider will complain about invalid revision given when fetching for parameters with nifi-cli. Specifically we are using AzureKeyvaultParameterProvider. And the only way to get rid of it is the re-creation of the parameter provider.See the screenshot And it looks like the revision manager was messed up that every time the new revision is always one version below, we are running nifi in a standalone mode and consecutively triggering of the parameter fetch will constantly get the invalid revision(each time the revision is up by 1) until the parameter provider is recreated, even restarting nifi won't help. I'm also quite sure there is only one person sending request to fetch for parameter and attempt to change the parameter provider at the same time so no concurrent operation. And once this problem happe
Hi all,I have the requirement that to do the unit testing for each nifi processors while send hl7 message via a python script. The following are the needs:1. After sent the HL7 test message it should receive the ACK/NACK data= Done2. After processed the validation check this flow file will move into another upstream processors = [ Here I need the status of the flow file on each upstream processors whether it successful / fails.For that I am trying to extract or fetch the provenance data through nifi rest api, I am using NiFi version 2.0.0 with the python script I sent the payload aspayload = {"provenance": {"request": {"componentId": "f6ca227e-0196-1000-13c2-d66cf56e69f2","sort": "eventTime","maxResults": 1}}}with url https://localhsot:port/nifi-api/provenanceI am getting this output ::clipboard::clipboard: Showing 1 recent provenance events::three_o_clock: 05/14/2025 15:48:24.041 IST:wrench: Component: ExecuteGroovyScript (ExecuteGroovyScript):page_facing_up: Type: CLONE🧾
Please help me,I got an issue with the posted job by Livy with the error " table not found", even though the table exists.this script for run job Livycurl -X POST --data '{ "file": "hdfs:///scripts/get_count.py", "conf": { "spark.executor.memory": "17g", "spark.executor.cores": "5", "spark.executor.instances": "23", "spark.driver.memory": "17g", "spark.driver.cores": "5", "spark.default.parallelism": "110", "spark.driver.maxResultSize": "17g", "spark.driver.memoryOverhead": "1740m", "spark.executor.memoryOverhead": "1740m", "spark.dynamicAllocation.enabled": "false", "spark.sql.adaptive.enabled": "true", "spark.sql.extensions": "org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions", "spark.sql.catalog.spark_catalog": "org.apache.iceberg.spark.SparkCatalog", "spark.sql.catalog.spark_catalog.type": "hive", "spark.sql.catalog.spark_catalog.uri": "thrift://master1.com:9083,thrift://master2.com:9083", "spark.sql.catalog.spa
Spark job is writing event log to hdfs://namenode:8021/spark-history , but our job creates many events within 10 to 12 minutes.As per the document spark.eventLog.buffer.kb =100kbDoes it mean when event writes to /spark-history/application_xxxxxx_xx/xx , whenever buffer gets 100kb? It means every time it is going to call fsync? spark.eventLog.buffer.kb100kBuffer size to use when writing to output streams, in KiB unless otherwise specified.
I'm encountering persistent issues setting up NiFi 2.4.0 on Kubernetes (deployed via a Helm chart, celtic) with OIDC authentication (Keycloak) for an initial admin user. My goal is to have a specific OIDC user (e.g., 'nifi-admin') fully permissioned to manage flows and processors upon deployment.When I first start up the pod, the users and authorizations file look like the following.<?xml version="1.0" encoding="UTF-8" standalone="yes"?><authorizations> <policies> <policy identifier="f99bccd1-a30e-3e4a-98a2-dbc708edc67f" resource="/flow" action="R"> <user identifier="0482ca97-7afc-3d5a-8a3f-21803898bde0"/> </policy> <policy identifier="b8775bd4-704a-34c6-987b-84f2daf7a515" resource="/restricted-components" action="W"> <user identifier="0482ca97-7afc-3d5a-8a3f-21803898bde0"/> </policy> <policy identifier="627410be-1717-35b4-a06f-e9362b89e0b7" resource="/tenants" action="R
Hi,We're upgrading some Custom Processors directly from 1.23.2 to 2.4.0, but the newest artifact for nifi-nar-bundles we can find is 2.0.0-M2. Has this artifact been deprecated? And if so, what dependency/ies should we use instead?thanks,C.
Hi,What is the steps to create Python Custom Processor in NiFi 2.3.0 Version. I have created it but its not showing in NiFi GUI.Can you please help me with the process/steps to create python custom processor in NiFi.Thank you
Hi NIFI Team, We are fairly new to apache NIFI and planning to onboard it into our production environment soon. And we are actually in need of a dedicated professional from the Apache NIFI team who can support or troubleshoot in case of any issues. Please let us know where I can find the appropriate information for professional services provided by NIFI and its pricing. Thanks in advance!
Hello,I have a 3-node NiFi cluster, and I want to manage it using NiFi Registry. I configured both NiFi and NiFi Registry with a single certificate using the TLS Toolkit. I also set up LDAP integration. I can successfully connect to both NiFi and NiFi Registry individually using my LDAP users.However, the LDAP user that I added and authorized in the Registry does not appear in NiFi. With the certificate user, I can view the bucket in NiFi Registry from NiFi and perform flow version control. But I cannot do this with my LDAP user.NOTE: Even if I generate separate certificates for NiFi and NiFi Registry and trust each certificate independently, the certificate user does not have permission to view the bucket. This is because the certificate user from the Registry is also not created in NiFi. For this reason, I generated both from the same certificate.Nifi / Nifi Registry version: 1.28.1Nifi Registry nifi-registry.properties# Licensed to the Apache Software Foundation (ASF) under one or m
Hi Team,I'm currently using a custom NiFi processor to convert JSON file content into flow file attributes, and I'm looking to replace it with a standard NiFi processor if possible.Sample JSON Input:The JSON files look like this (keys may vary per file):{"SourceFilePath": "/root/rdw/SrcFiles","SourceFilePattern": "Sales_data","SourceFile": "Sales_data_20241211.csv"}Current Setup:I'm using a custom processor of type CreateFlatJSON (Bundle: NestedJSONToFlatJSON) to extract the key-value pairs from the JSON and assign them to attributes.After processing, the flow file attributes look like:SourceFilePath = /root/rdw/SrcFilesSourceFile = Sales_data_20231111164536.csvSourceFilePattern = Sales_dataThese attributes are then used in downstream processors like so:${SourceFilePath}/${SourceFile}Current Flow:FetchSFTP → ExtractText → CreateFlatJSON (Custom) → Downstream ProcessorsFetchSFTP: Retrieves the JSON file.ExtractText: Reads the content into the flow file.CreateFlatJSON: Parses JSON and co
Hello!I'm trying to set up Nifi-Registry OIDC authentication with Windows ADFS as oidc provider, but have no luck. Using self-signed sertificates for SSL connection i'm able to LOGIN in web interface with initial admin and create some groups with different priveleges, for examle nifi-reg-admins with full rights. In Active Directory this group is also present and the user nifi-admin-2@blackboks.ru is member of this group. In ADFS Management a have setup template Server application accessing a web API with issuance transform rule as "Send Groupmembership as a Claim". Respectively i choose nifi-reg-admins group as User group, Outgoing claim type - Group and Outgoing claim value - nifi-reg-admins. I can login with nifi-admin-2@blackboks.ru into web interface, but there is no admin priveleges at all and in logs i see this:INFO [NiFi Registry Web Server-39] o.a.n.r.w.m.AccessDeniedExceptionMapper identity[nifi-admin-2@blackboks.ru], groups[] does no
My NiFi pipeline fetches and processes files from an SFTP server.When the number of files to fetch does not exceed 500, everything works well.However, sometimes the number of files the pipeline has to list at once exceeds 2,000,000, which critically impacts performance.I’m trying to find a way to throttle the file stream so that no more than 500 files are processed at any given time.First Attempt: GetSFTP ProcessorFirst, I looked into the GetSFTP processor. It has a convenient property called "Remote Poll Batch Size".However, this deprecated processor has several disadvantages, the most significant being that it does not maintain state.Because of this, when I set "Delete original" to False, it fetches files infinitely.Setting "Delete original" to True is not desirable because my pipeline’s guaranteed delivery requirements mandate that files should only be deleted after successful processing (
Dear Community,I've faced with an issue when i try to send the following query to Apache Hive using ODBC driver:"-- Request ID: 4b9a2e0a-e250-45b7-b9cc-0915f20f848fSELECT *FROM (-- Request ID: 4b9a2e0a-e250-45b7-b9cc-0915f20f848fselect version()) AS Subquery__9LIMIT 1"then i get an empty response.However, if i remove the commented out fragments with Request Id and its uuid then it starts working as expected by returning the version.What am i missing here or is it an ODBC driver bug?PS: it's not reproducible when i do the same using JDBC.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.