Find answers, ask questions, and share your expertise
Recently active
Hi,I am new to NIFI, and I was wondering if I could change the specific column in the csv file.for example, if the column has numerical values it is supposed to be converted to string type like if the column had a numerical value 1 it should be converted to apple in the same columnI tried doing it by referring to websites but still I was not successful. Looking forward for some response for this problem. Thanks in advance
I'm trying to connecting to a remote hbase from a java application.The remote hbase version is 2.1.0, such as my local hbase-client.The code is working well with another cloudera environment, the only difference is that this environment is protected with kerberos, but I get a successfull login with keytab in the log.In the RpcServer log I found "Expected HEADER=HBas but received HEADER=\x00\x00\x01\x0B from :61866".I can't find any post on internet and I don't know what to check.Any help on what should I check?
Hi All,I need to assess a Cloudera platform for a particular application of a Bank and create a utilization report. How to approach this task. I couldn't find any sample reports for reference. I found steps to download utilization report through Cloudera manager, but how to interpret it. What does each metric mean ? -- Does the CPU / memory utilization percentage we get in the report are w.r.t the total resources that is allocated to that particular application or the overall available resources. What is the difference between pool vs users... etc.I haven't worked on this before. Any help is much appreciated.Thank You.
Hello!I'm trying to insert into a managed table from an external table created with hbase structure. insert overwrite table managed_ml select key, cf1_id , cf1_name from c_0external_ml;My CDP contains 3 nodes so my question is If I need to make a copy of hbase-site.xml into /etc/hive/conf so Hive is able to make the connection to HBase in order to populate my Hive table?Currently the insert is failing and the log shows that sentence is trying to call a different node instead the one where the tables are located. Thanks in advance!!
I am trying use LookupRecord LookupRecord from Oracle table and i am using Avro reader/writer in LookupRecord . BUt i am receiving below errorAny suggestion @mburgess 2024-08-13 18:09:09,214 ERROR [Timer-Driven Process Thread-4] o.a.n.processors.standard.LookupRecord LookupRecord[id=3a641d1a-1b3c-1a47-2c18-b3541562e3ea] Could not determine schema to use for enriched FlowFilesorg.apache.avro.InvalidAvroMagicException: Not an Avro data file.
My application is streaming data to NIFI continuosly. During that time If NIFI Restartsthen the data flow in progress between any processors lost it's content with below error.Note: This is not related to processor, it happens for any processor.Before Restart:List queue->View-> I can able to see my streaming record.Now After doing NIFI RestartList Queue ->View or Download->My flowfile atrributes are there and other details are available but the flowfile content is not there.Kindly help me to solve this issue. All relevant idea's are welcome.
Hi,I have been struggling for sometime now trying to figure out if Nifi cluster can be deployed using windows docker-desktop where each node lives on a different host. I managed to do it using Ubuntu system but since Ubuntu is not supported by our IT I'm trying to see if the same can be implemented in the windows env.I knew there will be challenges with windows since it has some limitations specially to containers networking over Unix. One of those limitations is that if you are trying to use host networking the IP address of the host doesnt bind to the container , instead it uses what is called a loop back. When I try to set the nifi host property to the machine fqdn or ip I keep getting the error: java.net.BindException: Cannot assign requested address Which I imagine that is a result of the IP already being reserved to the host and not accessible to the container.After doing some research to work around this problem, I came across Reverse Proxy. The
hi cloudera community i am using the "ExecuteScript" processor and executing python code using the "python" engine (python 2.7 (jython 2.7.3)) and when running the code, I get the error below:"org.apache.nifi.processor.exception.ProcessException: javax.script.ScriptException: ImportError: No module named <name_module> in <script> at line number 3- Caused by: javax.script.ScriptException: ImportError: No module named <name_module> in <script> at line number 3- Caused by: Traceback (most recent call last):File "<script>", line 3, in <module>ImportError: No module named <name_module>" i would like to know how to install libs in this python that the processor is using?
I'm running Apach Hive in a Docker container and using the following image: https://github.com/big-data-europe/docker-hiveI want to add kerberos authorization to connect to Apach Hive via JDBC from a Java application.everything I could find:hive-site.xml <property> <name>hive.server2.authentication</name> <value>KERBEROS</value></property><property> <name>hive.server2.authentication.kerberos.principal</name> <value>hive/hive-server.example.com@EXAMPLE.COM</value></property><property> <name>hive.server2.authentication.kerberos.keytab</name> <value>/home/mykeytab.keytab</value></property> I generated a valid keytab file but the container start and after a while stoped.There is only one configuration file in the container repository:ivysettings.xml <ivysettings> <!--name of the defaultResolver should alway
Hello,We are in process of adding new servers to existing CDP PB cluster. These servers will have master and worker roles along with Kafka brokers distributed / assigned to them. As part of the process, we will also decommission few servers which will be replaced by these new ones.Questions are:1. What will be the functional impact of this change on data engineers / analysts / developers of team?2. What changes they will need to do in their codes / applications / integrations / connections, etc? I am aware of few like: - Zookeeper ensemble will need to be modified - Teams will need to be informed of new brokers - Custom Knox topologies will need to be modifiedWhat are the other changes that will need to be done by the user / engineers group?3. I am aware that connection strings will need to be modified. Which ones, just Hive or any other as well?Services that will be impacted of this change are:HDFSYARNHIVEIMPALAKAFKAHBASEAlso, we have Tableau and ot
Hello, I have recently built a CDP 7.1.7 SP1 cluster and have all the services running except YARN QueueManager WebApp. QM Store is running with no errors. Even in logs for WebApp, only entry i see is:WARN WebApp Properties Reading conf/webapp.properties. I am almost clueless what to do to bring this up.Any suggestions please. Thankssnm1523
Need to save Json data to multiple child tables. How should i do?
I had an authorization error after running successfully NiFi service on the Cloudera Private Cloud Base Cluster. Here is the error log in nifi-user.log file:2024-08-07 17:57:56,775 INFO [main] o.a.n.a.FileAccessPolicyProvider Authorizations file loaded at Wed Aug 07 17:57:56 ICT 20242024-08-07 17:58:48,621 INFO [NiFi Web Server-30] o.a.n.w.s.NiFiAuthenticationFilter Authentication Started 10.62.142.124 [CN=node2, ST=CA, C=US] GET https://node2:8443/nifi-api/flow/metrics/json2024-08-07 17:58:48,627 INFO [NiFi Web Server-30] o.a.n.w.s.NiFiAuthenticationFilter Authentication Success [node2] 10.62.142.124 GET https://node2:8443/nifi-api/flow/metrics/json2024-08-07 17:58:48,747 INFO [NiFi Web Server-30] o.a.n.w.a.c.AccessDeniedExceptionMapper identity[node2], groups[nifi] does not have permission to access the requested resource. No applicable policies could be found. Returning Forbidden response.Here are all the services I am using:I am using Java 11, I changed the NiFi directory from /var
Below is the query causing row locks in Mariadb Galera Cluster 10.2.32 (3Node Cluster). select MT_COMMENT from AUX_TABLE where MT_KEY1='Cleaner' and MT_KEY2=0 for update > Hive is a framework, we couldn't get the flow to understand also can't alter the logic from app end. > Looking for solutions like any version that works in Mysql/Postgresql or any Metastore DBs that can scale for Hive Metastore without lockign issues. > Also looking for any work around solution from DB end for this Mysql Row Locking.
Hello there.. I am new to Nifi and have started using QueryDatabaseTable for incremental fetch. I want to know how to handle a situation as below. For exampleQDT processor fetched new data based on id column - id 50 to id 55State of QDT processor (max value QDT processor processed/View State) - 55Next Steps - ConvertAvrotoJson----->ConvertJsontoSQL ---->PutSQLNow what if the PutSQL processor failed for some reason ? Should not the QDT processor roll back the state of max value from 55 to 49 so that next time QDT processor executes it again starts fetching id from 50 ? When I checked the state of QDT processor it showed me 55 although the new records were not inserted in final table and when i execute the QDT processor again it fetched data from 56 causing data loss at the destination side.. Is there any way to let the QDT processor know that the downstream processors failed and it should now roll back the state to previous value before the current run ?
[10/Aug/2024 14:57:40 +0800] 3876691 MainThread redactor INFO Started launcher: /opt/cloudera/cm-agent/service/csd/csd.sh setup[10/Aug/2024 14:57:40 +0800] 3876691 MainThread redactor INFO Re-exec watcher: /opt/cloudera/cm-agent/bin/cm proc_watcher 3876714[10/Aug/2024 14:57:40 +0800] 3876715 MainThread redactor INFO Re-exec redactor: /opt/cloudera/cm-agent/bin/cm redactor --fds 3 5[10/Aug/2024 14:57:40 +0800] 3876715 MainThread redactor INFO Started redactorSat Aug 10 14:57:41 CST 2024+ locate_java_home+ locate_java_home_no_verify+ JAVA17_HOME_CANDIDATES=('/usr/java/jdk1.17' '/usr/lib/jvm/jdk-17' '/usr/lib/jvm/java-17-oracle')+ local JAVA17_HOME_CANDIDATES+ OPENJAVA17_HOME_CANDIDATES=('/usr/lib/jvm/java-17' '/usr/lib/jvm/jdk-17' '/usr/lib/jvm/jdk1.17' '/usr/lib/jvm/zulu-17' '/usr/lib/jvm/zulu17' '/usr/lib64/jvm/java-17' '/usr/lib64/jvm/jdk1.17')+ local OPENJAVA17_HOME_CANDIDATES+ JAVA11_HOME_CANDIDATES=('/usr/java/jdk-11' '/usr/lib/jvm/jdk-11' '/usr/lib/
Hi everyone,I'm setting up nifi to run in cluster, I have 3 instances configured, but when I start them I get this error.2024-04-10 20:42:59,080 INFO [main] o.a.n.c.c.n.LeaderElectionNodeProtocolSender Determined that Cluster Coordinator is located at myip3:11443; will use this address for sending heartbeat messages2024-04-10 20:42:59,081 INFO [main] o.a.n.c.p.AbstractNodeProtocolSender Cluster Coordinator is located at myip3/<unresolved>:11443. Will send Cluster Connection Request to this address2024-04-10 20:42:59,165 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 anchors Has anyone already ever faced this issue?
We are trying to set up a 3 node nifi cluster on GCP virtual machine (Ubuntu). Have used a CA signed certificate for creating truststore and keystore (Followed this link for creation). Have attached them through nifi.properties file. Still getting below exception on tailing logs:2022-05-26 18:14:26,544 INFO [main] o.a.n.c.p.AbstractNodeProtocolSender Cluster Coordinator is located at hostname:7474. Will send Cluster Connection Request to this address2022-05-26 18:14:26,780 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 building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target2022-05-26 18:14:31,783 INFO [main] o.a.n.c.c.n.LeaderElectionNodeProtocolSender Determined that Cluster Coordinator is located at ho
how are you? I need assistance with converting a string to an integer or numeric value using Apache NiFi’s UpdateRecord processor. I’ve tried using toNumber and toInt, but neither worked. Can you provide guidance on how to achieve this conversion?tHANK
We are experiencing an issue with converting data from string to timestamp in Hive, where the timestamps undergo unexpected hour changes during conversion and processing. We would like to verify if this could be a bug in the tool or if there are additional configurations required. Process and Steps to Reproduce the Issue: Loading Data into HDFS:1. We use the hdfs put command to load a positional file into HDFS and store it in a directory accessible via an external table ex_sa_beneficios_mantidos where the data is in string format. 2. We create an external table in Hive to access the data as strings. 3. Converting String to Timestamp and Writing to ORC Table: When converting the string to timestamp, we notice an alteration in the hour of the dt_afast_trabalho field. 4. Verifying the Conversion and Data Reading: When reading the data from the ORC table, the hours in the dt_afast_trabalho field were different from expected. 5. Counting Timestamps by Hour: We performed a count by hour of t
My requirement is to retrieve the total number of files in a given HDFS directory and based on the number of files proceed with the downstream flowI cannot use the ListHDFS processor as it does not allow inbound connections. The GetHDFSFileInfo processor generates flowfiles for each HDFS file, causing all downstream processors to execute the same number of times.I have observed that we can use ExecuteStreamCommand to invoke a script and execute HDFS commands to get the number of files. I would like to know if we can obtain the count without using a script? Or if there is any other option available besides the above.
Support QuestionHow to solve the following issue?We run CDP 7.1.7 SP2 CHF 18.We followed Cloudera's description "CDP 7.1.7 / Authenticating Hue users with Knox SSO".- The details given below are redacted -IssueWith a newly started browser Knox was called, having no Cookies cached.When connecting the service Hue a second time by clicking the appropriate icon in Knox, it works fine. The URL https://knox.mydomain.com/gateway/Business/hue/hue/editor/?type=impala is used.The first connection to Hue via Knox fails, and the browser calls the URL https://knox.mydomain.com/gateway/Business/hue/%3FdoAs%3Duserid.We get an HTTP error 404 (Page not found) with following details:Request Method:GETRequest URL:https://hue_loadbalancer.mydomain.com:8888/%3FdoAs%3Duserid?doAs=useridfollowed by the messageUsing the URLconf defined in desktop.urls, Django tried these URL patterns, in this order: 1. ^hue/accounts/login [name='desktop_auth_views_dt_login'] 2. ^accounts/l
When accessing the project page in cdsw, we can' t find that page will display an error page. The project has been deleted, but is now displayed in the project list. Any idea how to erase this?
Hi We are configuring ConsumeJMS Processor using JNDI Controller service and ConsumeJMS Properties. as Shown here.and the controller service configurations are as follow.This works perfectly in test pod, but when we deploy same changes in other server different environment pod we get following error.o.apache.nifi.jms.processors.ConsumeJMS ConsumeJMS[id=xxxxxxxxxxxx] Failed to initialize JMS Connection Factory: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target↳ causes: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target↳ causes: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target↳ causes: javax.naming.CommunicationException: WFNAM00018: Failed to connec
Hello Team,I have scenario, where whenever there is a failure in the ETL process with NiFi at the SOURCE layer, would like to rerun the failed ones !! I agree to the fact that Apache NiFI does not support directly the option of rerun/reprocessing of the failed files, still some kind of a hack exists and below is my approach.Configure a path to move all the failed file(s) for reprocessingclone the flowfile (from the original/failed ones) and make use of the UpdateAttribute optionTrigger a new run for the failed onesNow, will the above approach works in case if NiFi is deployed in distributed mode?Kindly help me to get a feasible solution for this problem statement
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.