Find answers, ask questions, and share your expertise
Recently active
Hello,I'm triyng to sort record in parquet file like below in order of timestamp.{"Src_obj__event_metadata":"{\"timestamp\":\"2024-11-01T00:23:58.440995\",\"severity\":\"Info\"}","Src_obj__user_data":"{\"message\":\"Message AAA\"}{"Src_obj__event_metadata":"{\"timestamp\":\"2024-11-01T00:23:58.429579\",\"severity\":\"Info\"}","Src_obj__user_data":"{\"message\":\"Message BBB\"}{"Src_obj__event_metadata":"{\"timestamp\":\"2024-11-01T00:23:08.441709\",\"severity\":\"Info\"}","Src_obj__user_data":"{\"message\":\"Message CCC\"}{"Src_obj__event_metadata":"{\"timestamp\":\"2024-11-01T00:23:08.428501\",\"severity\":\"Info\"}","Src_obj__user_data":"{\"message\":\"Message DDD\"}{"Src_obj__event_metadata":"{\"timestamp\":\"2024-11-01T00:23:48.440624\",\"severity\":\"Info\"}","Src_obj__user_data":"{\"message\":\"Message EEE\"}I confugured the following query in QueryRecord processor and it passed validation in the processor.SELECT * from flowfile ORDER BY JSON_EXTRACT(Src_obj__event_metadata, "$.t
I am facing an issue with Notify and Wait starting from version 2.0.0. In order for them to listen to each other in version 1.28, I need to configure them with the MapCacheClientService 2.0.0 and MapCacheServer 2.0.0 services. However, in version 2.0.0, although I can still find both services in the documentation, in practice, the configuration only includes the MapCacheClientService 2.0.0 service, and I can no longer find the MapCacheServer 2.0.0 service.Using Wait and Notify in version 2.0.0 seems much more difficult compared to previous versions. I spent two days trying to figure it out, but I haven't made any progress. If possible, could you please guide me on the correct configuration so that Wait and Notify can work properly, like they did in the older versions?
I'm trying to configure NiFi for OIDC but when I start the nifi process it dies with the error below. A curl shows that at least basic connectivity is working to the IDP. Any ideas what could be causing this? I can provide my nifi.properties and/or authorizers.xml if needed.2024-11-20 00:22:09,786 ERROR [main] o.s.web.context.ContextLoader Context initialization failedorg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependencyexpressed through method 'setFilterChains' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityFilterChain' defined in org.apache.nifi.web.security.configuration.WebSecurityConfiguration: Unsatisfied dependency expressed through method 'securityFilterChain' parameter 7; nested exception is org.springframewo
HI All, Im getting below error after new fileds are being added to the payload from KafkaOpenTX, datatype: double precisioncharges, Datatype: stringnote:before these 2 fields added to the payload its working fine with existing json reader and writerError:05:25:40 UTCERRORConsumeKafkaRecord_2_6[id=8f8pq352c-0rcb] Failed to parse message from Kafka using the configured Record Reader. Will route message as its own FlowFile to the 'parse.failure' relationship: org.apache.nifi.serialization.MalformedRecordException: Successfully parsed a JSON object from input but failed to convert into a Record object with the given schema- Caused by: org.apache.nifi.serialization.record.util.IllegalTypeConversionException: Cannot convert value [[Ljava.lang.Object;@6b9b8a0c] of type class [Ljava.lang.Object; for field invoiceLineList.ecoTaxValues to any of the following available Sub-Types for a Choice: [ARRAY[STRING], ARRAY[DOUBLE]]input payload:{"Identifier":"123456","creationDate":"2024-11-22
I created the following project:and I want to connect 2 files by field "id"Processor name "GenerateRecord" has the following settings:Processor name "GenerateRecord2" has the following settings:Processor name "JoinEnrichment" has the following settings:The error occurs when "JoinEnrichment" works, I can’t understand why there, I tried everything I could
I'm trying to get a set of file .csv from a directory in a server sftp. My nifi is deployed in a cluster with only one node for nifi. If I try to download a file .csv through sftp> from the same node on which nify is deployed, I can get it without problem. However the processor SFTP in nifi is not able to do it, but I continuosly get the following stacktrace ERROR org.apache.nifi.processors.standard.FetchSFTP: FetchSFTP[id=1f5b3ddd-2d4c-1889-ffff-ffffa3d58254] Failed to fetch content for StandardFlowFileRecord[uuid=ccf2a3ae-51cc-470c-80e0-6477b045a536,claim=,offset=0,name=file.csv,size=0] from filename /test/nifi on remote host 10.100.201.248:22 due to org.apache.nifi.processor.exception.ProcessException: IOException thrown from FetchSFTP[id=1f5b3ddd-2d4c-1889-ffff-ffffa3d58254]: java.io.IOException: error; routing to comms.failure: org.apache.nifi.processor.exception.ProcessException: IOException thrown from FetchSFTP[id=1f5b3ddd-2d4c-1889-ffff-ffffa3d58254]: java.io.IOE
Hi ,I haven been playing with nifi on docker lately and its been quite the challenge and the learning experience. To best understand how to utilize docker for nifi, Im hoping the community can help me with addressing the following observations\questions: 1- Most of the examples I found on the internet including the nifi official docker page seem to be suitable for single host deployment ! Im finding this is strange - unless Im missing something - but doesnt that defeat the purpose of having cluster with no single point of failure ? What are the the scenarios where someone wants to deploy single host multiple container cluster vs multiple host single container ? 2. Getting to understand docker networking I found that if I want to create multi host cluster and have the cluster to have visibility to our work network then the ideal way to do it is using "host" networking, is this correct or is there a better way (maybe using overlay networking with swarm? if I d
Hi everyoneI try to split to records an Excel sheet, using ExcelReader. But get this error:Spoiler (Highlight to read)SplitRecord[id=01921045-9bc9-1353-b2a2-96dfb4f1e8af] Failed to split FlowFile[filename=test.xlsx]: org.apache.nifi.processor.exception.ProcessException: IOException thrown from SplitRecord[id=01921045-9bc9-1353-b2a2-96dfb4f1e8af]: java.io.IOException: org.apache.nifi.serialization.MalformedRecordException: Read next Record from Excel XLSX failed on row 546 in sheet reportdata1- Caused by: java.io.IOException: org.apache.nifi.serialization.MalformedRecordException: Read next Record from Excel XLSX failed on row 546 in sheet reportdata1- Caused by: org.apache.nifi.serialization.MalformedRecordException: Read next Record from Excel XLSX failed on row 546 in sheet reportdata1- Caused by: java.lang.NumberFormatException: For input string: ""SplitRecord[id=01921045-9bc9-1353-b2a2-96dfb4f1e8af] Failed to split FlowFile[filename=test.xlsx]: org.apache.nifi.processor.exception.P
How to configure OIDC authentication in nifi-registry 1.19.1?When configuring secure access ssl + oidc does not display the UI when trying to access. In the log I don't see errors just warnings, one of them is this:o.s.l.core.support.AbstractContextSource Property 'userDn' not set - anonymous context will be used for read-write operationsIs it possible to access this version through OIDC?
I have a text file which needs to be fetched from remote server through SFTP. File will be having 26k+ rows with | separated values like below:I have used below processor's to do the data manipulation. But facing “Processing halted.Out of memory heap” error after splitJSON.Please help with the better approach to handle this case.
I have create two partitioned tables with same ddl, except for that one is internal table , another is external table 。Both has same file location (oss://xxxx/xxx )。 create table test_analyze( id int, name varchar(20)) partitioned by (dt string) ; create table test_analyze_external( id int, name varchar(20)) partitioned by (dt string) ;msck repair table test_analyze;analyze table test_analyze partition(dt='20241121') compute statistics; msck repair table test_analyze_external;analyze table test_analyze_external partition(dt='20241121') compute statistics; when I query count() for table 'test_analyze', then quickly get the result , it seems fetch result from stats。 but when I send the same query to table 'test_analyze_external', it can't return stats result , and active a MR job。And it's sql-explain below: +----------------------------------------------------+|
Hello, I am having an issue on cleanning my flow file. I have tried everything. The message that NiFi returns is Failed to drop FlowFiles due to java.lang.IllegalStateException: Cannot update journal file /flowrepo/flowfile_repository/journals/13211407.journal because no header has been written yetI do not know nothing about this issue. My processors are already stopped and all other services are disabled. Thank you in advance.
Hello everyone. Hope you are doing well.I am trying to achieve to run simple query on hive, using nifi processors. I Have tested couple scenarios, with different versions (also tried apache kyuubi 1.8.0 with jdbc drivers).CDP private cloud 7.1.7EnvironmentApache NiFi - Version 1.18.0 (java 11)Hive - Version 3.1.3jdbc driver is downloaded from cloudera, version 2.6.25 and using HiveJDBC41.jar1. scenariousing Apache NiFi DBCPConnectionPool 1.24.0URL : jdbc:hive2://example.com:10000/default;KrbRealm=EXAMPLE.COM;KrbHostFQDN=example.com;KrbServiceName=hive;AuthMech=1;KrbHostFQDN=_HOST;principal=test@EXAMPLE.COMDriver Class : com.cloudera.hive.jdbc41.HS2DriverDriver Location : /opt/nifi/nifi-current/lib/DRIVER.jarand using kerberos credential service with principal/keytabNifi error log same as on screenshot.2. scenariousing HiveConnectionPool 1.19.1url : jdbc:hive2://example.com:10000/defaultHive Configuration Resources : /opt/nifi/nifi-curre
My NiFi flow fails when encountering a CSV with a column containing a double quote within a string, such as:"Protection from Abuse Order on file against dad Raul Martinez Lopez." NO CONTACT WITH DAD. 12/16/2014 kb.The error is occurring at the Record Reader stage. Has anyone else successfully handled CSV data with embedded double quotes?From csv:My record reader config
Hi at all,I got a timeseries table with existing range partitions based on timestamp field, that covers years from 2022 to 2024 month by month. The problem is that last partition has an open bound (PARTITION 1717200000000 <= VALUES) and contains data from "1717200000000" (Saturday, June 1, 2024 0:00:00) to now, and is still storing live data with obviously performance loss during query.From the docs I haven't found a command that lets me split last partition in other partitions in order to update them, but the only way seems to drop last partition and continue adding since this time, and the problem is that by dropping last partition I will lose three and more months of data, that is obviously not possible.Is there an alternative to prevent data loss and adding range partitions to improve performances?Thanks in advance
Hi Team,I am trying to implement for the scenario where the events should sleep for 5 minutes and let all the flow files are queued up, then check the count of the files if it is greater than 10 route to failure else route to SUCCESS.I did in Execute script processor as below. However, i am trying to avoid the executescript for this and try to use Native nifi processors.====== Executescript ===============Thread.sleep(300000)def flowFiles = session.get(100)if (!flowFiles || flowFiles.size() <= 10) {session.transfer(flowFiles, REL_SUCCESS)} else {session.transfer(flowFiles, REL_FAILURE)}
We have a Nifi cluster with 3 nodes running in docker containers that are always processing something. I included keys in the truststore.jks file of each node and for the changes have effect, I need to restart each node at a time, so that Nifi could still be running and we don't lose any data . There a way to restart them safely? ChatGPT said that it's possible to execute inside the container the command nifi.sh stop, but I don't know if this will cause data loss.
Hello , I am trying to access Nifi in a way that all users in the AD group memberof=CN=AG-Y-DEF-LJKGH,OU=Groups,DC=corp1,DC=ad1,DC=xyz,DC=net can have access to it, since it is getting quite tedious for the admin to keep adding the users one by one and assigning them policies. My authorizers.xml looks like : <?xml version="1.0" encoding="UTF-8" standalone="yes"?><authorizers> <userGroupProvider> <identifier>file-user-group-provider</identifier> <class>org.apache.nifi.authorization.FileUserGroupProvider</class> <property name="Users File">./auth-conf/users.xml</property> <property name="Legacy Authorized Users File"></property> <property name="Initial User Identity 0">CN=my-nifi-0.my-nifi-headless.nifi-test.svc.cluster.local, OU=NIFI</property> <property name="Initial User Identity 1">CN=ABC123,OU=Service Users,OU=User Accounts,
I've been racking my brain for the past couple of days attempting to connect to a Hive server with a Python client using pyhive on Windows. I'm new to Hive (pyhive too for that matter), but am a reasonably experienced Python dev. Invariably I get the following error:(pyhive-test) C:\dev\sandbox\pyhive-test>python test.pyTraceback (most recent call last):File "test.py", line 3, in <module>conn = hive.Connection(host='192.168.1.196', port='10000', database='default', auth='NONE')File "C:\Users\harnerd\Anaconda3\envs\pyhive-test\lib\site-packages\pyhive\hive.py", line 192, in __init__self._transport.open()File "C:\Users\harnerd\Anaconda3\envs\pyhive-test\lib\site-packages\thrift_sasl\__init__.py", line 84, in openraise TTransportException(type=TTransportException.NOT_OPEN,thrift.transport.TTransport.TTransportException: Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable to find a callback: 2'when executing the following script:from py
Hello!Input flowFile has column "date_time" with timestamp-millis type The task is to update each value of column, by substracting 3 hours from datetime value. In fact I need to transform datetime value from timezone GMT +3 to timezone GMT +0For example, value "2024-11-24 19:43:17" to be transformed in "2024-11-24 16:43:17"I tried to use UpdateRecord with following script: format(toNumber((/date_time):minus(3600)), "yyyy-MM-dd HH:mm:ss")And, as expected, transformation failed with exception: "Unrecognized token 'minus'..."Operation "minus" applied to attributes values. And "date_time" is not an attribute.As an alternative, I considered next way:1. SplitText for splitting one FlowFile into N FlowFiles, where N - is the number of records.2.UpdateAttribute to add new attribute "dateTime" for each of N flowFiles by: dateTime <- /date_time3. UpdateRecord for each of N flowFiles with script: /date_time <- ${dateTime:toNumber:minus(
Does Apache Nifi 2.0 supports IBM MQ 9.2 using JMS processor?As per this article from IBM, MQ 9.3 added support for Jakarta messaging. That is working fine for Apache Nifi 2.0 using JMS processor. However, it is failing for MQ 9.2 and throwing class cast exception as shown below2024-11-22 17:26:01,822 ERROR [Timer-Driven Process Thread-5] o.a.n.j.cf.JMSConnectionFactoryProvider JMSConnectionFactoryProvider[id=5375f4df-0193-1000-3023-0c7084045874] Failed to configure JMSConnectionFactoryHandlerjava.lang.ClassCastException: class com.ibm.mq.jms.MQConnectionFactory cannot be cast to class jakarta.jms.ConnectionFactory (com.ibm.mq.jms.MQConnectionFactory is in unnamed module of loader org.apache.nifi.nar.InstanceClassLoader @5a30ab46; jakarta.jms.ConnectionFactory is in unnamed module of loader org.apache.nifi.nar.NarClassLoader @383790cf)
Background: I'm a new admin to our existing CDP environment. Current prod set up uses Nifi, Ranger, Impala, HMS, Hive on Tez, Isilon/HDFS on Dell Powerscale. New directive is to create databases and Iceberg tables via S3 using buckets on the same Powerscale in a different access zone and redirect Nifi processes writing to hdfs to write to S3 buckets.Steps: I update the core-site.xml and hive-site.xml files with the following properties - "fs.s3a.secret.key", "fs.s3a.access.key" and "fs.s3a.endpoint".Success: I validated connection to the S3 bucket with aws cli and can run Nifi PutS3Object and the file is in the expected S3 bucket directory.Challenge: I'm getting a error in Impala when I attempt to create an Iceberg table in the same bucket to use with the Nifi PutIceberg processor."ImpalaRuntimeException: Error making 'createTable' RPC to Hive Metastore:CAUSED BY: MetaException: Got exception: org.apache.hadoop.fs.s3a.AWSClientIOException getFileStatus on s3a://ce-dev-bucket-3/s3
Hello everyone, I wanted to know if it is possible to connect to a server in GCP to start using the ML offered by Cloudera. Thanks!
Hi, Is there any probnlem in 6.21 mirror ,server2 jmx http://10.10.61.35:10002/jmxexception: HTTP ERROR 401,Problem accessing /jmx. Reason:Unauthorized access, Powered by Jetty:// 9.3.25.v20180904
Hi,I am trying to create json, that is always the same, {"status":"APPROVED"}I have used replace text, used alwaysreplace and put that text there.Here is the specification of the invokehttp Am I missing something?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.