Find answers, ask questions, and share your expertise
Recently active
This is my input JSON,[{"CustomFields": [{"PrimaryId": 598870,"ColumnName": "TRX_ORDER_CUSTOMFIELD2","FieldName": "PaymentMode","DataType": "nvarchar","Value": "Cash","HideFromExternalDistributor": 0,"IsRequired": 1,"ViewName": "PaymentMode","Type": "dropdown","Id": 118},{"PrimaryId": 598870,"ColumnName": "TRX_ORDER_CUSTOMFIELD3","FieldName": "test","DataType": "nvarchar","Value": "","HideFromExternalDistributor": 0,"IsRequired": 0,"ViewName": "test","Type": "inputfield","Id": 119},{"PrimaryId": 598870,"ColumnName": "TRX_ORDER_CUSTOMFIELD4","FieldName": "Reason for Transfer","DataType": "nvarchar","Value": "","HideFromExternalDistributor": 0,"IsRequired": 1,"ViewName": "ReasonforTransfer","Type": "dropdown","Id": 120},{"PrimaryId": 598870,"ColumnName": "TRX_ORDER_CUSTOMFIELD5","FieldName": "Remption Mode","DataType": "nvarchar","Value": "","HideFromExternalDistributor": 0,"IsRequired": 1,"ViewName": "RemptionMode","Type": "dropdown","Id": 128},{"PrimaryId": 598870,"ColumnName": "TRX_OR
Hello,We have cloudera 7.4.4 installed on customer network with 8 Kafka broker node. When the application get used heavily the memory of all Kafka node get exhausted(more that 98%) because of the messages get stuck. We have heap size of 4GB, 8 CPU, 32GB memory on all Kafka nodes.$ ps -ef| grep kafkakafka 508659 16233 0 May29 ? 00:00:00 /usr/bin/python2 /opt/cloudera/cm-agent/bin/cm proc_watcher 508665kafka 508665 508659 15 May29 ? 1-09:22:48 /usr/lib/jvm/jre-openjdk/bin/java -Xmx4096M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/amdocs/external/cloudera/kafka/heap/kafka_kafka-KAFKA_BROKER-6bc6dfe85482761059e0f8085a79733f_pid508665.hprof -XX:OnOutOfMemoryError=/opt/cloudera/cm-agent/service/common/killparent.sh -server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:G1HeapRegionSize=16M -XX:MinMetaspaceFreeRatio=50 -XX:MaxMetaspaceFreeRatio=80 -XX:+DisableExplicitGC -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dcom.sun
Hi, we would like to have a setup in which we manage two separate CDP base clusters (for dev and test) with one Cloudera Manager instance and also share some services between these two clusters.For example, we would like to have one instance of Solr, but have two instances of Ranger (one installed on each cluster) that share the same Solr service (indexes are logically separated like dev_ranger_audits and test_ranger_audits).But it seems that Cloudera Manager doesn't allow installation of Ranger service if Solr is not installed on the same cluster.Does anyone know if this is possible to accomplish somehow? Thanks
Everyone, can help meHow to create keytab krb5.keytab in kerberos ?when I list keytab use " klist -k" show error like belowroot@master1:~# klist -kKeytab name: FILE:/etc/krb5.keytabklist: Key table file '/etc/krb5.keytab' not found while starting keytab scan
Does Cloudera CDP still support the Sqoop service?
Hi ClouderaBackground: We run nifi as a standalone instance in a docker container in on all our stages, the statemanagement provider used by our instance is the local WAL backed provider.Description: We observed that the flowfiles in front of one of our processor groups stopped to be ingested once in a while and it happens on all our stages without noticeable pattern. The flowfile concurrency policy of the processor group that stopped ingesting data is set to SINGLE_BATCH_PER_NODE and the outbound policy is set to BATCH_OUTPUT. The ingestion should continue since the processor group had already send out every flowfile in it, but it stopped. There is only one brutal solution from our side(We need to delete the processor group and restore it from nifi registry again) and the occurrence of this issue had impacted our data ingestion. As you can see in the screenshot that the processor group 'Delete before Insert' has no more flowfile to output but s
In an UpdateAttribute processor I am trying to get the date of yesterday, at midnight in the CET timezone then have it transformed to a specific format in UTC.What I did was : ${now():minus(86400000):format('yyyy-MM-dd\'T\'00:00:00\'Z\'' , 'CET')} but this still gave me the time at midnight in UTC and not CET.What I want basically is if today is 2024-06-11 I want to get : 2024-06-10T22:00:00Zalso, there is this issue with the CEST , If I specify CET is CEST not considered ? I just don't want to have to change my processor every 6 months a year and have something that works no matter what
Hi Everyone can help me,I'm strat NodeManger in ambari but show error "failure to login: for principal: nm/slave1.hadoop.com@HADOOP.COM from keytab /etc/security/keytabs/nm.service.keytab" for detail like below 2024-06-11 09:30:28,202 INFO impl.MetricsSystemImpl (MetricsSystemImpl.java:shutdown(611)) - NodeManager metrics system shutdown complete.2024-06-11 09:30:28,202 ERROR nodemanager.NodeManager (NodeManager.java:initAndStartNodeManager(965)) - Error starting NodeManagerorg.apache.hadoop.yarn.exceptions.YarnRuntimeException: Failed NodeManager login at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:488) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164) at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:962) at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:1042)Caused by: org.apache.hadoop.security.KerberosAuthException: failure to lo
Hi,I m trying to put files into AWS S3 browser from Nifi using PutS3Object processor and getting below error.Bucket Name , AccessKeyID and SecretAccessKey are used correctly.I m stuck here. Please help.
Hello, I'm quite new to Nifi. I'm using v. 1.24.0I'm working on a project which requires fetching blobs from Azure Blob Storage and putting them into SFTP. To achieve the desired result, there are two major steps : Get Token Bearer from Authentification ServerCalling a webservice to get SAS key with Token Bearer gotten from previous call.There are two limitations : The SAS Key expires every 1440 minutes. The ListAzureBlobStorage processor doesn't accept any incoming flowfiles. Therefore, I thought about dynamically updating Parameter Context and using the parameter as property value in the ListAzureBlobStorage. Following is the high-level approach of my nifi job : GenerateFlowFile : scheduled to trigger at every 1430 minutes + contains the body of the InvokeHTTP requestInvokeHTTP (Get Bearer Token) : processor to request a bearer token from the authentication
Hi everyone,I have a requirement for Apache Nifi. In a nifi flow if there are files stuck in queue for more than some specified time let say 5 mins , I should get an email saying that file is stuck in the nifi flow.Is that possible ? Please let me know if there is any possible solution.Thanks in advance !!
Hallo,When to enable Kerberos via ambari, I am facing the following window popup at the time of Testing client after client installation sayingin my log ambari-server listed below2024-06-04 06:27:43,380 WARN [agent-report-processor-2] ActionManager:162 - The task 76 is not in progress, ignoring update2024-06-04 06:27:43,861 INFO [ambari-client-thread-6248] AmbariManagementControllerImpl:4086 - Received action execution request, clusterName=hadoop, request=isCommand :true, action :null, command :KERBEROS_SERVICE_CHECK, inputs :{HAS_RESOURCE_FILTERS=true}, resourceFilters: [RequestResourceFilter{serviceName='KERBEROS', componentName='null', hostNames=[]}], exclusive: false, clusterName :hadoop2024-06-04 06:27:44,149 WARN [ambari-client-thread-6248] KDCKerberosOperationHandler:329 - Failed to kinit as the KDC administrator user, admin/admin@HADOOP.COM: ExitCode: 1 STDOUT: STDERR: kinit: Server not found in Kerberos database while getting initial credentials2024-06-04 06:27:44,151 ERRO
Hello Community,I am working on a data ingestion pipeline using Apache NiFi, and I am using the `ExecuteSQL` processor to read data from a database table and ingest it into my data flow. I want to ensure that all records from the table have been successfully ingested, but I am unsure how to verify this within NiFi. Here are the details of my current setup and the specific challenges I am facing:Current Setup:1. Database Source: I am querying a relational database.2. NiFi Processor: I am using the `ExecuteSQL` processor to execute a SQL query and fetch data from the table.3. Downstream Processors: The flow files generated by `ExecuteSQL` are processed by subsequent processors such as `ConvertRecord`, `PutHDFS`, etc.Specific Challenges:1. Ensuring Completeness: How can I verify that all rows from the table have been ingested? Is there a mechanism within NiFi to confirm that no records have been missed?2. Record Counting: Is there a way to count the number of records fetched by `ExecuteSQ
i am trying to check the files that are created under data folder when we export table to hdfs location.I have single column table with 5000 rows but after export it created only one data file named as 000000_0I have another table with partition, 2 partitions with 95 rows each approx. and for this table export is see 2 folders each for partition and then under it only one file. Can you please help me to know how are the data files for the exported table are created and how is it distributed? I mean is it only one data file for each table without partitioned? or it will create multiple files based on specific row count or size count or on what criteria it is split?
Hello,Has anyone encountered an issue were Knox is not writing audit logs of specific topology. We have below topologies created including few of them migrated from HDP, however, necessary modifications were done and are listed in Knox UI.cdp-proxycdp-proxy-apicdp-proxy-tokenhealthtokenexchangeuser1 - created for user grouptopo1 - created for user group and migrated from HDPtopo2 - created for user group and migrated from HDPapp - Used by app accountsKnox is successfully writing Ranger audit logs in HDFS for only cdp* topologies which were created by Cloudera during setup of Knox service and not for other. Written logs are visible in access tab of Audit section in Ranger Admin UI. We have total of 3 clusters and this is the case 2 clusters, for 1 cluster everything works fine. I have compared the configuration and also topology xmls and all seems correct (except for instance details which is obvious).Would it be anything related to Ranger or Solr configuration for Knox? However, i
Hello,We have a 3 node cluster where one of the nodes is only 64 cores 128 GB RAM and other two machines are each 128 cores 128 GB RAM. I am using Round Robin load balancing in the flow as Listfile --> LB --> FetchFile, as a result of which load is getting divided (almost) uniformly among all the machines, which is expected behavior. However, the load average on smaller machine is exceeding 64 (this machine is sweating!) whereas the load average on other two machines is almost 50.So my question is there a way in NiFi to distribute load in such a way that the load on the smaller machine can be maintained to stay less than 64, and give the other two machines some more work to do?I tried using DistributeLoad processor, but not sure which strategy to use because Round robin would distribute load equally, next available would distribute when the next node is available. However, how do I configure DistributeLoad such that it divides load equally among two bigger machines but lesser loa
We have 2 instances of nifi-registry with git as flowProvider, when we make some changes and commit from nifi instances, sometimes appears everything is ok, sometimes appears "there is a new version of the flow". I think one of the nifi-registry instances it's not synced.¿How can we force the sync between multiple nifi-registry instances?
Example:Flowfile databranches,name,id,acc,serialNoparent1,abc,123,1234567788,1child1,eee,345child2,rrr,678parent2,mno,786,97865662762,2child1,ttt,764child2,ryy,456output:parent1,abc,123,1234567788,1child1,eee,345,1234567788,1child2,rrr,678,1234567788,1parent2,mno,786,97865662762,2child1,ttt,764,97865662762,2child2,ryy,456,97865662762,2I have to add the parent last two columns details to Childs of the same parent like parent1 last column details to child1, child2 rows in the flow file.Please suggest a possible way to use the processor.
Input Json,==============[{"CustomFields": [{"PrimaryId": 2191300,"ColumnName": "TRX_CUSTOMER_CUSTOMFIELD2","FieldName": "Business Registration No","DataType": "nvarchar","Value": "","HideFromExternalDistributor": 0,"IsRequired": 0,"ViewName": "BusinessRegistrationNo","Type": "inputfield","Id": 99},{"PrimaryId": 2191300,"ColumnName": "TRX_CUSTOMER_CUSTOMFIELD3","FieldName": "Type of Business ","DataType": "nvarchar","Value": "","HideFromExternalDistributor": 0,"IsRequired": 0,"ViewName": "TypeOfBusiness","Type": "dropdown","Id": 100},{"PrimaryId": 2191300,"ColumnName": "TRX_CUSTOMER_CUSTOMFIELD4","FieldName": "Birth Certicate No / Other","DataType": "nvarchar","Value": "","HideFromExternalDistributor": 0,"IsRequired": 0,"ViewName": "BirthCerticateNoOther","Type": "inputfield","Id": 101},{"PrimaryId": 2191300,"ColumnName": "TRX_CUSTOMER_CUSTOMFIELD5","FieldName": "Passport No","DataType": "nvarchar","Value": "","HideFromExternalDistributor": 0,"IsRequired": 0,"ViewName": "PassportNo","T
Hello,I have a JSON data in the ClickHouse database with a type of string. The JSON data looks like this: [{ "Name": "Gta V" "Type": "Xyz" "content": "{"Game":{"Subject":[{"Time":{"@value":"201511021057"}}]}}" }] The output I get using Nifida ExecuteSqlRecord is like this. I can remove the \ character using the ReplaceText process. The output looks like this: [{ "Name": "Gta V" "Type": "Xyz" "content": "{"Game":{"Subject":[{"Time":{"@value":"201511021057"}}]}}" }] However, the value part for the content key is still a string. How can I make its type as JSON?The desired output is like this: [{ "Name": "Gta V" "Type": "Xyz" "content": {"Game":{"Subject":[{"Time":{"@value":"201511021057"}}]}} }]
Hi Team, Zepplin is Installed in CDP which does not contain Kerberos.I tried with default username and password as admin/admin, zeplin is not working in GUI.Let me know the default password of zeplin to login
Hello, Is there a straight documentation available that would help to side car migrate Oozie jobs (50+) from HDP to CDP PB? I know of the properties file that might need some modification to point to CDP RM and relevant servers, however, facing it hard to understand / map properties file as we have 50+ workflows to be migrated. Thankssnm1523
Hello,Can you assist me in retrieving the values stored in the "customfield_10161" field from JSON input? My expectation is to consistently receive the values and name it "DEFECT_ROOT_CAUSE" , whether they are stored as a list or as a single value."How to write JOLT which will handle the both the case. let say If I will get list then extract last element of it, if not list then record as it is.?Extracting List: (works fine when input is list)when input is not list: then DEFECT_ROOT_CAUSE column is missing My expectation to get the records in DEFECT_ROOT_CAUSE columns whether its list or not.
HelloI am trying to set up a cluster with NiFi 2.0-M3 but have an error. My docker-compose file is here - https://hastebin.com/share/woqezesefi.yamlError:2024-06-02 08:10:54,535 INFO [main] o.a.n.c.c.n.LeaderElectionNodeProtocolSender Determined that Cluster Coordinator is located at 248301603f5c:8082; will use this address for sending heartbeat messages2024-06-02 08:10:54,536 INFO [main] o.a.n.c.p.AbstractNodeProtocolSender Cluster Coordinator is located at 248301603f5c/<unresolved>:8082. Will send Cluster Connection Request to this address2024-06-02 08:10:54,571 WARN [main] o.a.nifi.controller.StandardFlowService Failed to connect to cluster due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'CONNECTION_REQUEST' protocol message due to: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchorsThe same docker-compose is working fine with
2024-05-31 19:23:17,927 ERROR org.apache.hadoop.mapreduce.v2.hs.JobHistoryServer: Error starting JobHistoryServerorg.apache.hadoop.yarn.exceptions.YarnRuntimeException: Error creating done directory: [file:/user/history/done]at org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.tryCreatingHistoryDirs(HistoryFileManager.java:701)at org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.createHistoryDirs(HistoryFileManager.java:637)at org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.serviceInit(HistoryFileManager.java:598)at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164)at org.apache.hadoop.mapreduce.v2.hs.JobHistory.serviceInit(JobHistory.java:97)at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164)at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:108)at org.apache.hadoop.mapreduce.v2.hs.JobHistoryServer.serviceInit(JobHistoryServer.java:150)at org.apache.hadoop.service.AbstractService.init(AbstractService
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.