Find answers, ask questions, and share your expertise
Recently active
Team,Need help in setting up NiFi Cluster with 3 nodes, while i am trying to setup with below parameters, i am getting error. Please suggest where i am going wrong NiFi Version: nifi-2.2.0state-management.xml<cluster-provider><id>cluster-provider</id><class>org.apache.nifi.controller.state.providers.raft.RaftStateProvider</class><property name="Connect String">Host1_IPAddress:2181,Host2_IPAddress:2181,Host3_IPAddress:2181</property><property name="Root Node">/nifi</property><property name="Session Timeout">10 seconds</property><property name="Access Control">Open</property></cluster-provider>NiFi Properties:nifi.cluster.is.node=truenifi.cluster.node.address=Host1_IPAddressnifi.cluster.node.protocol.port=9999nifi.cluster.flow.election.max.candidates=3nifi.sensitive.props.key=KeyValuenifi.state.management.provider.cluster=cluster-providernifi.web.https.host=localhostnifi.web.https.port=8444Error
I have set up Apache NiFi in a Docker container and am using Nginx as a reverse proxy to handle SSL termination. However, when I try to access the NiFi UI through the custom domain configured in Nginx, I receive an "HTTP ERROR 400 Invalid SNI" message. Below is my Docker Compose configuration: version: '3'services: nifi: build: context: . dockerfile: Dockerfile ports: - "8443:8443" volumes: - nifi-data:/opt/nifi/nifi-current nginx: image: nginx:latest volumes: - ./nginx.conf:/etc/nginx/nginx.conf - ./sslcert:/etc/nginx/sslcert ports: - "80:80" - "443:443" depends_on: - nifivolumes: nifi-data: And here is the relevant part of my nginx.conf: events {}http { server { listen 80; server_name nifi.xxx-xxx-python-mps; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name nifi.xxx-xxx-python-mps; ssl_certificate /et
Hi Community,I recently upgraded Apache NiFi from 1.27.0 to 2.2.0 in my Kubernetes environment. After the upgrade, I noticed that the web server is not getting the correct IP address in the logs, and my NiFi UI is not accessible.Setup Details:Previous Version: NiFi 1.27.0Current Version: NiFi 2.2.0Deployment: Running in KubernetesLogs Behavior:In 1.27.0, the NiFi web server correctly binds to the expected IP.In 2.2.0, the web server logs do not show the correct IP, and the pod eventually restarts after a few minutes.Troubleshooting Done:Verified nifi.properties settings, including nifi.web.https.host.Checked kubectl logs --previous but did not find any fatal errors before the restart.Ensured the container has enough memory and CPU.Checked for readiness/liveness probe failures in Kubernetes but found no failures.Questions:Has anyone faced a similar issue after upgrading to NiFi 2.2.0?Are there any new configuration changes in 2.2.0 that could affect the web server binding/IP resol
@MattWho Is there anywhere I can find what types of filters I can use in the "User Search Filter" or the Group one? I am trying to widdle down the amount of objects that are populated from LDAP into my Users. In my AD Server, users are in 2 different OU's. So, for example, I'll have users in ou=Admin Accounts,ou=Domain Admins,dc=my,dc=network,dc=com but I'll also have users in ou=Regular Users,ou=Testers,dc=my,dc=network,dc=com. And the only way to really pull both are to have my base search set to dc=my,dc=network,dc=com. Doing this pulls computer accounts and all users, even users that would never need access (like service type accounts). I can filter out the computer accounts by using this filter: (objectCategory=cn=Person,cn=Schema,cn=Configuration,dc=my,dc=network,dc=com) But I'd like to also filter out the accounts, or OU's that aren't needed. Or, if possible just use the 2 NiFi groups I have in AD (Nifi Admins/Nifi Users) wi
Hi All,I want to calculate data from a CSV file as the data source, then retrieve the formula from the database table. For example, the CSV file contains columns for "id" and "amount," while the database has columns for "id" and "formula." When the "id" from the CSV file is found in the database, the "amount" will be calculated using the corresponding formula based on that "id". How can I create this using NiFi? Thanks
The error from my Spark job is++++Failing this attempt.Diagnostics: Application application_1738011234567_0014 initialization failed (exitCode=255) with output: main : command provided 0main : run as user is xxxxmain : requested yarn user is xxxxUser xxxx not found++++I read this post <https://community.cloudera.com/t5/Support-Questions/MapReduce-job-failing-after-kerberos/td-p/160273>. My group mapping configuration is hadoop.security.group.mapping = org.apache.hadoop.security.LdapGroupsMapping. I kinited xxxx before the job run. I added the AD user xxxx to an AD group hadoop. But I still got the same error.This online doc might be appliable <https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/security-authorization/topics/cm-security-authorization-ldap-group-mappings.html#ariaid-title3>I might need to add the flag -Dcom.cloudera.cmf.service.config.emitLdapBindPasswordInClientConfig=true to the variable CMF_JAVA_OPTS flag. But the documentation is for CDP 7.1.8 and does
When trying to insert using hive on tez, the insert operations hangs. With mapreduce, it works fine. How can i resolve this problem?
Hi Team,I’m seeking your support in converting a string to a timestamp with microseconds in Hive. When using unixtimestamp, I notice that the milliseconds are being dropped. Could you please advise on how to capture milliseconds (and microseconds) correctly, and which data type I should use to store the value in Hive?SELECT from_unixtime(unix_timestamp('2024-11-05-10.03.17.872195', 'yyyy-MM-dd-HH.mm.ss.SSSSSS')) as times,'2024-11-05-10.03.17.872195' as valeFROM
Hi, I have a json in the below format[{"order_id": 1,"category": 123},{"order_id": 2,"category": 123 },{"order_id": 3,"category": 456},{"order_id": 4,"category": 321}] I want to create flowfiles seperatly for all the categories,flowfile1 - orders of category 123:[{"order_id": 1,"category": 123},{"order_id": 2,"category": 123 }]flowfile2 - orders of category 456[{"order_id": 3,"category": 456}]flowfile3 - orders of category 321:[{"order_id": 4,"category": 321}] I don't want to use splitjson, because this will be applied on millions of records. I don't want millions of flowfiles.I tried EvaluateJsonPath and RouteOnAttributeall_category : $.[*].category - this creates on attribute with all category valuesRouteOnAttribute category_123 : ${all_category:contains(123)}category_321 : ${all_category:contains(321)}category_456 : ${all_category:contains(456)}But all the 3 flowfiles routed has all the order details.Please guide me here, I am new to NIFI
i am new at nifi . i want to use listftp with tracking entities with rides cache . i use those configs but no files listed i donot now whats is wrong here
I need to configure nifi for log rotation. I have seen this article: Understanding how the logback.xml configuration in... - Cloudera Community - 248662Here I have few doubts regarding the property.<maxHistory>30</maxHistory> It's mentioned in comments as<!-- keep 30 log files worth of history -->But on checking I have come across a document logback.xml Example - Mkyong.com where its mentioned as <!-- each archived file, size max 10MB --> <maxFileSize>10MB</maxFileSize> <!-- total size of all archive files, if total size > 20GB, it will delete old archived file --> <totalSizeCap>20GB</totalSizeCap> <!-- 60 days to keep --> <maxHistory>60</maxHistory> So, my doubt is does maxhistory refers to number of file or number of days. Also do we really need to add totalSizeCap because anyway
Hi Team,I am upgrading my old nifi 1.14 to 2.0 M2 version. But i want to support of both flow xml and flow json. for this reason what should my approach to migrate it as soon as possible.. So my nifi can work either with xml or with json as per my requirement.Thank you for your time.
Hello Cloudera Community,I was wondering if is it a good practice to install a CDP in a server where I installed CDH previously?Is it something achievable?If yes, which would be the considerations that I need to take care of? Any advice? Thanks!!
Hello,I have got a JXM exporter configured for Kafka brokers to send metrics to prometheus which allows me to monitor Kafka via Grafana Dashboards. All is working okay, however, stuck with a weird issue.Backaground:JMX exporter is configured using below property for Kafka brokers:in Kafka Broker Environment Advanced Configuration Snippet (Safety Valve) have added a key KAFKA_JMX_OPTS and its value as -javaagent:/var/lib/prometheus_jmx_config/jmx_prometheus_javaagent-0.20.0.jar=9091:/var/lib/prometheus_jmx_config/kafka_jmx_exporter.yml.The jar and yml files provided in the configuration are in place and all works okay. We are able to get required metrics to Grafana via Prometheus.Issue:Whenever we attempt to restart Kafka brokers, it does happily, however, when attempted a rolling restart it fails with below error in stderr log file: + [[ healthy partitions stay healthy == *\p\a\r\t\i\t\i\o\n\s\ \s\t\a\y\ \h\e\a\l\t\h\y* ]]+ call_kafka_topics --at-min-isr-partit
Hello,I have setup NiFI 2.1.0, and am trying to figure out how to allow users in a NiFi Microsoft AD Group to authenticate to the GUI. I have it setup so users can log in if I add their LDAP account. But, I'd rather just have users in the group I created in AD be able to login instead of having to go in and add new users to NiFi each time.Here are the configs I have setup for my authorizers.xml: <userGroupProvider> <identifier>file-user-group-provider</identifier> <class>org.apache.nifi.authorization.FileUserGroupProvider</class> <property name="Users File">./conf/users.xml</property> <property name="Initial User Identity 1">ldapuser</property> </userGroupProvider> <userGroupProvider> <identifier>ldap-user-group-provider</identifier> <class>org.apache.nifi.ldap.tenants.LdapUserGroupProvider</class> <property name="Authenticat
I'm currently trying to get Nifi running in docker in the insecure mode without tls enabled. The reason for this is I want to run Nifi with ssl termination upstream and not have to deal with the complications of having to manage truststores and keystores.By default it seems that even configuring the environment variables for `nifi_web_http_port` and `nifi_web_http_host` will not remove the default configuration for the https port and host.I've modified the start.sh script for the container to set the http_port and http_host to be the expected values and removing the default values for https_port and https_host. I've also set the configuration `nifi.remote.input.secure` to be false. Now on startup Nifi failing to load a Key Store at ./conf/keystore.p12. Even with tls seemingly disabled by the means I've found necessary from all other guides on the matter Nifi is still expecting a keystore?Has anyone had success with running nifi 2.0 insecure in docker?
Hello Team,We are planning to upgrade our use of NiFi from 1.x to 2.x, and we are looking very much forward to try the new version.In NiFi 1.x we are using the "file-manager.sh" script in the toolkit for making backup and restore. It appears that this file is no longer present in NiFi 2.x.1) Has this file been removed from NiFi 2.x permanently, or do you know of any plans for adding it to NiFi 2.x in a future release? 2) If the file is not coming to NiFi 2.x will there be any replacement file for making backup/restore, or should we collect files for backup ourselves such as flow.json.gz?Best Regards
Hi TeamWe recently upgraded our AKS cluster from 1.28.5 to 1.29.4 . The apache nifi - version 1.16.3 was already installed in it and running successfully. After the upgrade to 1.29.4 , one of the Pod - Nifi was continuously restarting and goes to Crashloopbackoff. When we investigate, the server container keeps restarting and there were no logs showing any error as it is changing status to Running and then to Not ready very quickly and pod reports Crashloopbackoff. We are also unable to login inside the pod due to this. At times when the status is running , it is allowing to connect for few seconds and we noticed that the KeyStore.jks and truststore,jks from certmanager is not present within tls folder. We are not sure what is the cause of the continuous restart of the server container after upgrade of aks cluster to 1.29.4when we compared the logs of the nifi-0 and nifi-1 pod, the nifi -0 pod showing below log and running successfully. Whereas nifi-1 and nifi-2 do not
Hi,We want to stop Cloudera environment. After we stopped it via Management Console, we discovered there are liftie-***-liftie-infra-NodeGroup instances still running on AWS. Liftie Nodes are part of Scaling Group.Is it safe to stop those instances by hand via AWS console?We would be able to start them also by hand and later start Cloudera env.
Hello! I'm trying to convert float values on my flow files into integers. My Jolt Specification looks like this:[{"operation": "modify-default-beta","spec": {"progress": "=toInteger","setup_value": "=toDouble","proposed_setup_cost": "=toDouble","real_setup_cost": "=toDouble","invoiced_value": "=toDouble","last_recognized_value": "=toDouble","starting_date": ["=toDateTime", "yyyy-MM-dd HH:mm:ss", "coerceOrNull"],"last_progress_change": ["=toDateTime", "yyyy-MM-dd HH:mm:ss", "coerceOrNull"],"end_date": ["=toDateTime", "yyyy-MM-dd HH:mm:ss", "coerceOrNull"]}}] But somehow my "progress" value is still being outputted like a float. If I have the value 100.0, it is not transformed to 100, for example. I also tried using "=toInteger(@(1,value))", but that also didn't worked.
I am trying to integrate NIFI with Solace event broker and have created JMSConnectionFactoryProvidor service, which is enabled and running. However my JMSConsume processor gives this error - ConsumeJMS failed to process session due to Host not specified;Below are the configs for my FactoryService and processor:What am I missing in the configuration?Thanks.
Hi, all,To improve the throughput of nifi, I enlarged my standalone nifi to a three nodes cluster. And, configured my data flow accordingly, now it works but the load balance doesn't work as expected.The load balancing is configured as round-robin, and it seems that all flow files are dispatched to three nodes at the beginning. However, later I noticed that the cluster slowed down dramatically, with only one node being processing and the other two running nothing. However, I think the unfinished flow files in the queue should be dispatched to other nodes.192.168.1.200 is the master node and the slowest node in the cluster. My nifi version is 1.12.1, is it the expected behavior of round robin on this version?I want to maximize throughput, please tell me how I can do that.
Hi, someone have passed certification exam of CDP 4001?I do the exam once but i didn't pass (58% of score 😞 ). Someone can suggest me a good material for preparation?Thank you
Hello , i am trying to use sftp with nifi . this is my docker image : volumes:nifi-conf: services:nifi:image: apache/nifi:latestcontainer_name: nifiports:- "8089:8443"- "5656:5656"volumes:- nifi-conf:/opt/nifi/nifi-current/confenvironment:NIFI_WEB_PROXY_HOST: localhost:8089SINGLE_USER_CREDENTIALS_USERNAME: adminSINGLE_USER_CREDENTIALS_PASSWORD: sftp:image: atmoz/sftpvolumes:- ./sftp/upload:/home/foo/ports:- "2222:22"command: foo:pass:1001 at first the found the sftplist running with no output and when i stop it i get 2 active threads and canot stop or start it just terminal when the docker image load and debug it i founds that the owner of /home/foo not foo it is root and when i change it manually i get bad ownership error of chroot directory
Hello, Im currently setting new cluster. When I try to start some role I get notifications that: Role is missing Kerberos keytab. Go to the Kerberos Credentials page and click the Generate Missing Credentials button.So I try to Generate Missing credentials and I got: failed script:/opt/cloudera/cm/bin/merge_credentials.sh due to:/opt/cloudera/cm/bin/merge_credentials.sh failed with exit code 1 and output of <<+ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/kerberos/bin:/usr/kerberos/sbin:/usr/lib/mit/sbin:/usr/sbin:/usr/lib/mit/bin:/usr/bin+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/kerberos/bin:/usr/kerberos/sbin:/usr/lib/mit/sbin:/usr/sbin:/usr/lib/mit/bin:/usr/bin+ KEYTAB_OUT=/var/run/cloudera-scm-server/cmf-merged-out15742810764060677617.keytab+ shift+ ktutil+ chmod 600 /var/run/cloudera-scm-server/cmf-merged-out15742810764060677617.keytabchmod: cannot access '/var/run/cloudera-scm-server/cmf-merged-out15742810764060
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.