Find answers, ask questions, and share your expertise
Recently active
Hi,I have an issue with the split/merge of a flowfile containing data in GeoJSON format. The input records have a "geometry" field. Out of the 100,000 elements, 99,999 are polygons (schema ARRAY[ARRAY[ARRAY[DOUBLE]]]), and 1 is a multipolygon (ARRAY[ARRAY[ARRAY[ARRAY[DOUBLE]]]]). The split appears to work fine, but the merge fails with the following reason: MergeRecord[id=018d1000-b9c2-12b6-b7e9-c2b9feebd172] Failed to write MapRecord[{idu=17142000BE0307, geometry=MapRecord[{type=MultiPolygon, coordinates=[Ljava.lang.Object;@49cbb2a3}], statut_foncier=Privé}] with reader schema ["idu" : "STRING", "geometry" : "RECORD", "statut_foncier" : "STRING"] and writer schema ["idu" : "STRING", "geometry" : "RECORD", "statut_foncier" : "STRING"] as a JSON Object due to org.apache.nifi.serialization.record.util.IllegalTypeConversionException: Cannot convert value [[Ljava.lang.Object;@201dfc5d] of type class [Ljava.lang.Object; to Double for field coordinates: org.apache.nifi.serialization.rec
I have a mysql destination table with column type datetime.my nifi flow is like convertJsontoSQL -> putsql (into destination table) The action is delete for putsql.after conversion of jsontosql i am getting a value '2023-03-28 15:54:28' which is a valid timestamp.but the flow is failing with below error: duetoThevalue of the sqlargs. 14.value is '2023-03-28 15:54:28',which cannot be converted to a timestamp; routing to failure: java.sql.SQLDataException:The value of the sql.args. 14.value is '2023-03-28 15:54:28',which cannot be converted to a timestamp- Caused by: java. text. ParseException: Unparseable date: "2023-03-28 15:54:28" I can able to use the same "2023-03-28 15:54:28" for manually inserting into a sample datetime column.and can able to delete a record with where clause as this value.I could not understand why Nifi is still not able to convert it to timestamp. Any suggestions are appreciated.
Hi All,we try to fetch the results from database according to the content of cvs file.after converting the csv to json format by SpileRecord then we try to get the content of Json record by EvaluateJsonPath then we try to get value of attribute by UpdateAttribute but the FF_Content attribute into inEvaluateJsonPath not recognized . listFile->FetchFiles->SpileRecord->EvaluateJsonPath ->UpdateAttribute ->ExecuteSQL
Facing above exception when connecting to Phoenix :Facing above exception when connecting to Phoenix failed on local exception: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)] [Caused by javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]] Using below Phoenix jars with version :phoenix-5.0.0-cdh6.2.0-client.jarphoenix5-spark-6.0.0.7.1.8.44-1.jarphoenix-spark-5.0.0-cdh6.2.0.jarScala : 2.4.0Spark : 2.11
Hi We have a nifi cluster of 3 nodes on which we are implementing SSL. All the configuration changes are done but when we access NIFI UI on our browser It throws this error - System ErrorThe request contained an invalid host header [127.0.0.1:<port>] in the request [/nifi/]. Check for request manipulation or third-party intercept.Valid host headers are [empty] or:Our port forwarding is like this - ssh -L 18443:<node-1-ip-adress>:8443 -i ~example.comssh -L 28443:<node-2-ip-adress>:8443 -i ~example.comssh -L 38443:<node-3-ip-adress>:8443 -i ~example.comThen our ssh tunelling via putty is like this - L28443 127.0.0.1:18443L48443 127.0.0.1:38443L58444 127.0.0.1:58443Any ideas how to resolve it ?
the platform is : CDH 5.14.4after setting federation, the hdfs entrypoint is: viewfs://cluster6/ , the back namenode entrypoint is : hdfs://nameservice/ and hdfs://nameservice2/add new warehouse directory is /user2/hive/warehouse and managed by nameservice2.but i found the strange things is if i create database using hdfs://nameservice2, sentry can sync ACL with hdfs, but if i used viewfs://cluster6/ , sentry can not sync ACL.for example:create database test location '/user2/hive/warehouse/test.db' can not sync ACLbut create database test location 'hdfs://nameservice2/user2/hive/warehouse/test.db' is ok.who knows why ?
Dear all, I have a query regarding the insertion of a flowfile into a MySQL Database. Specifically, I would like to know how to retrieve the auto-incremented ID from the database and store it as a flowfile attribute.Consider the following example flowfile (representing one record, with many more records in reality):My goal is to insert this data into 'table1,' which has an auto-incremented ID field (let's assume that after insertion, the ID will be 3001). Could you please guide me on how to retrieve this auto-incremented ID and assign it to a flowfile attribute?
Hi there, I need some help regarding using a flow.xml.gz from 1.13 to 1.24. First our nifi setup: 2 node cluster running on ec2 instances in aws where we run nifi in docker containers. We have succesfully upgraded from 1.13 to 1.24 after making a backup of the flow.xml.gz file.We then stop the nifi containers and put back the flow.xml.gz from version 1.13. Then startup nifi. Unfortunately we get the following error:Jan 19 07:20:58 nifi-node-1 docker[27934]: 2024-01-19 07:20:58,216 INFO [main] org.eclipse.jetty.server.Server Started @78240msJan 19 07:20:59 nifi-node-1 docker[27934]: 2024-01-19 07:20:58,304 INFO [main] org.apache.nifi.web.server.JettyServer Loading Flow...Jan 19 07:20:59 nifi-node-1 docker[27934]: 2024-01-19 07:20:58,326 INFO [main] o.apache.nifi.io.socket.SocketListener Now listening for connections from nodes on port 8888Jan 19 07:20:59 nifi-node-1 docker[27934]: 2024-01-19 07:20:59,036 WARN [main] o.a.nifi.fingerprint.FingerprintFactory Schema validation error pa
After having lost all my test work I decided it is time to investigate how to persist data in NiFi when running it in a docker image. I use the official image. This is what I managed to gather so far: services: nifi: container_name: nifi image: apache/nifi:latest ports: - "8443:8443" - "16543:16543" volumes: - "C:/nifi/data:/data" - "C:/nifi/state:/opt/nifi/nifi-current/state" - "C:/nifi/database:/opt/nifi/nifi-current/database_repository" - "C:/nifi/flowfile:/opt/nifi/nifi-current/flowfile_repository" - "C:/nifi/content:/opt/nifi/nifi-current/content_repository" - "C:/nifi/provenance:/opt/nifi/nifi-current/provenance_repository" When stopping/staring the container everything is OK (login credentials and content)When removing the container, the credentials are persisted but the content is gone. I presume that there is yet another directory that I should mount in order to have the data saved there. Which one is it? 
Hi All,I have created a profile with organization email but i have selected the wrong company. Now I would like to change the company.Any help would be appreciated. Thanks,Rajan
I am new to the Cloudera CDP and got stuck at the CMS level
My previous processor group is for update and insert a table. After that, I want to use ExecuteSQL processor.My question is: How to clear all flowfiles and proceed to the ExecuteSQL processor, so the ExecuteSQL processor only run once.For example, my pic above, there are 3 flowfiles queued, it means that the ExecuteSQL processor will run 3 times? (I think). how to clear them and only run once
As an admin of a CDH cluster , some query has submitted to the hiveserver2 , but the query still in the hiveserver make the explain stage , which does not submit to the yarn cluster and has no application id on yarn . And the query make the hiveserver2 wrong which has a too long query such as select * from aaa where code in ('xxx','xxx1','xxx3',.......'xxx2000000') ;A sql has more than milion row may make the hiveserver2 corrupt . The 10002 web page seems does not have some action button like yarn web the deal with the query . The cdh version is 6.3.2 . hive version 2.1.1 .When this situation occur , I have to restart the hiveserver2 .I want to know if there is some way to kill a query through hive queryid or hive sessionid o instead of yarn applicationid . It is also usefull when someone query the metastore which multithread such as "use hadoop " sql with 30 or more active connect , The adminastritor
Greetings,I'm currently grabbing data from a website, "splitting" it into its separate components and trying to route them so I can save them into a single zipped file.My workflow currently works as follows:InvokeHTTP --> SplitText --> RouteText ...The original Dataset is a bunch of satellite data (example below). I’m then splitting it into separate 3 line records. I then run RouteText and try and grab specific records. For example, if I wanted TDRS 3 and AMSC 1 and SKYNET 4C, how do I pull them out with its respected 2 lines? I tried adding a Property: SatelliteData1 = ${literal('TDRS 3')}. This only gives me the first line of the Split record (I need all 3). I tried OR-Statement, but don't think I'm using it right. ${literal('TDRS 3''):or(${literal('AMSC 1')}):or(${literal('SKYNET 4C')})}Any suggestions will be greatly appreciated. Thanks in advance.Original Data:Splitting:
Hi, I have a Hadoop 3.1.1 cluster and recently I found that the NameNode heap memory usage in the cluster is very high. I saw 629973631 file objects in the cluster through WebUi, so according to my calculations, it should occupy no more than 90GB of memory, right? Why is the current memory usage consistently above 140GB? Is this related to me enabling erasure codes?
Hi All,I am facing the issue of adding the hue service in CDP 7.1.9, after using the correct DB credentials, the DB test is failing for the hue service only.Facing the following issues, can anyone suggest any solution?2024-01-17 11:15:08,066 INFO scm-web-5531:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/dbTestConn/testConnection2024-01-17 11:15:08,067 INFO scm-web-5531:com.cloudera.cmf.service.ServiceHandlerRegistry: Executing host command HueTestDatabaseConnection with sensitive arguments. Host: DbHost{id=1546335515, hostId=41e041ff-13f3-47c0-b9a3-8b8e23e8cea7, hostName=NVMBDPRP005704CDPNN1}2024-01-17 11:15:08,172 INFO scm-web-5531:com.cloudera.cmf.service.ServiceHandlerRegistry: Host command HueTestDatabaseConnection launched with id=15463512302024-01-17 11:15:08,180 INFO CommandPusher-1:com.cloudera.server.cmf.CommandPusherThread: Acquired lease lock on DbCommand:15463512302024-01-17 11:15:08,182 INFO scm-web-5531:com.cloudera.enterprise.Java
Hello everyone,in the execution of a Spark script, which invokes several applications, we have different timings in each of the runs performed, in fact it went from about 8h on 18/11/2023, to about 17h on 09/12/2023 to about 33h on 02/12/2023.Since this is a very heavy process, all daily schedules were disabled to give the application a chance to allocate all resources.The application is run sporadically during weekends, and we do not know exactly when the next run will be.We have noticed that when running Spark applications that are part of the script, a delay of about 3 to 4 hours is encountered between the execution of one job and its next.Do you have any suggestions regarding a possible cause of the anomaly encountered? Thank you
Hello Community,I am getting below error on my HBase table. The table has been fine for close to a year until 2 days ago. What's the cause?org.apache.nifi.hbase.PutHBaseRecord PutHBaseRecord[id=ee1b356c-aa58-13f5-ac63-84a796230216] Failed to put records to HBase.org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException: Failed 1 action: org.apache.hadoop.hbase.exceptions.FailedSanityCheckException: Requested row out of range for batchMutate on HRegion USAGE:DATA_TRANSPARENCY,a11ced068cb301a6c6c502932d686a05_20200621142500_189290_366,1676533563461.bbbebf59c6e4e9750e9f5825850d6f4f., startKey='a11ced068cb301a6c6c502932d686a05_20200621142500_189290_366', getEndKey()='a11f2100d30ecc142b4c0466c01797ad_20230202125000_129718_339', row='a1200e570c1a24fee95b1004dbff50eb_20240108193317_2079_8316'at org.apache.hadoop.hbase.regionserver.RSRpcServices.doBatchOp(RSRpcServices.java:1041)at org.apache.hadoop.hbase.regionserver.RSRpcServices.doNonAtomicBatchOp(RSRpcServices.java:959)
Hi, I have email archived in .MSG format files in folder location which is mentioned in SQL database table.I need to get the file from folder location , read the file , check if there is any attachment in msg file , if yes then need to extract that attachment and make the entry of that file into database tableI am new to NIFI , So anyone can help me with some sample flow for this requirement? Thanks In advance , Prats
As seen from the image above. My requirement is for the "ExecuteSQL" processor to run only once after all the queued files are processed via "PutDatabaseRecord" processor.Right now it will run 190+57 times but I want to run after all the queued files are processed through. Is there any way to do this in Nifi ?
Hello Everyone,We are facing below issue in our CFM.Background: We have NiFi Flow which uses GetHDFS processor to fetch all the HDFS files and performs few transformation and put the data back to HDFS using putHDFS processor. The CRON used for this was: 0 0/45 06-19,21-05 1/1 * ? *Now: Now based on the requirement we have changed the CRON schedule to "0 30 10-19 1/1 * ? *" (0 30 10-19 * * ? *) , the getHDFS processor runs at CRON schedule and also process the data on the day of change. But from next day/tomorrow onwards the processor is running/threads are intiated on all nodes based on CRON schedule however it does not process the data and gives a below warning.Warning: Error while retrieving list of files due to DestHost:desport <master_hostname>:<port> LocalHost:localport <worker_node>:<port>Failed on Local Exception: java.io.IOException: Couldn't setup connection for <nifi_user>@principal to <master_hostname> Doe
Hello,it's not clear to me how users are managed in CDP Public Cloud / Machine Learning / Cloudera Cloudera Data Visualization.It's ok I can create a new user from the the DataViz menu, but in this case, how are they linked to users that I manage from Management Console / User Management in Control Pane?In DataViz Users & Groups, do I have to create a new user with same workload username and password assigned to the user in the User Management section?Are these users synchronized somehow?I'm asking because once a user has been created in DataViz, I am not able to change its password, so I'm wondering if somehow they are synchronized and can be managed from the User Management section in Management Console.Thank you,Andrea
Hi all,My nifi crash for some reasons that I could not figure out, can anyone helps?1. A chain of lookups that I have, the table being looked up contains around 50,000,000 rows2. After running some node, it crashed like this:3. After this, I relogged into NiFi to see what error happened:My Lookup service setup:I can provide more details upon request.Please help!!!Thanks
Hello about log4j2 failure (CVE-2021-44228) in cloudera there is the KB: https://my.cloudera.com/knowledge/Resolution-for-TSB-2021-545---Critical-vulnerability-in-log4j2?id=332012 instructs to run the script to remove a class in the jar etc. our doubt is, do we need to run this script in any version of CM / CDH or just the version from 6.x.x?
Hi, I just started using Nifi and i would like to know if it's possible to perform a POST with a content-type set to `x-www-form-urlencoded`. I need to pass these key/values to my request : grant_type refresh_tokenclient_id myClientIdclient_secret myClientSecretrefresh_token myRefreshToken
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.