Find answers, ask questions, and share your expertise
Recently active
Hi all!i faced out with the problem.I need to convert xml file to json.here is my flowConvertRecordXMLReaderJsonRecordSetWritterEverything is ok, but the problem is in convetring digit-valuesfor examplexml data<document_code> <code>000</code></document_code>converted to "document_code": { "code": 0} another one is:<service-code>0012388833456</service-code>converted to "service-code": 12388833456 this is critical data, so i want Ni-Fi to convert them as string.all values as string - is what i need.Help please.
Hi all,After establishing a connection to Cloudera Virtual Warehouse from PowerBI Desktop using Hive LLAP connector, I'm not able to load Iceberg tables. I receive the following error:DataSource.Error : ODBC : ERROR [42000] [Microsoft][Hardy] (80) Syntax or semantic analysis error thrown in server while executing query. Error message from server: Error while compiling statement: FAILED: Runtime Exception org.apache.hadoop.hive.ql.metadata.HiveException: Table XXXX is an Iceberg table format which is not currently supported.I tried also installing the Hive ODBC driver 2.7.0. I configured the User DSN and test was successful. When I try to connect form PBI Desktop, I can establish the connection but I receive the same error if I try to load an Iceberg table:DataSource.Error: ODBC: ERROR [42000] [Cloudera][Hardy] (80) Syntax or semantic analysis error thrown in server while executing query. Error message from server: Error while compiling statement: FAILED: Runtime Exception org.apache.ha
hi cloudera community,creating a full template using the nifi webui mode works perfectlywe need to create the template, export and import using the nifi api, has anyone managed to configure this?
Our group has tried connect janusgraph with Cloudera HBase, but it fails. In the documentation of CDP 7.2.18, these two Spark features: GraphX and GraphFrames are not supported by Cloudera. Is there any other Graph Data Base or Graph computation tool is supported by Cloudera?
We are trying to connect with cdh hdfs using java program and it's failing. With pre authentication failed error. I tested the hadoop fs commands all are working fine. We tried soo many way nothing is working fine. Can you please help me with this issue.
Greetings, I am trying to migrate from Nifi 1.16.2 to 1.16.3.When I try to use my flow file form my 1.16.2 installation, the application goes up but the controller service StandardRestrictedSSLContextService 1.18.0, shows a problem with the sensitive properties that are not supported.After updating anything inside the controller, everything starts working as expected. But if a restarts Nifi, the application does not restarts.I try to find some errors in the nifi-app.log but none is logged, just Warnings, here some of them 2022-11-23 17:01:00,812 WARN [main] o.a.nifi.fingerprint.FingerprintFactory Schema validation error parsing Flow Configuration at line 9, col 21: cvc-complex-type.2.4.a: Invalid content was found starting with element 'description'. One of '{url}' is expected.2022-11-23 17:01:00,825 WARN [main] o.a.nifi.fingerprint.FingerprintFactory Schema validation error parsing Flow Configuration at line 71, col 19: cvc-complex-type.2.4.d: Invalid content was foun
Using NiFi, I am processing a file. Once processing is done, I want to shift it to an archive folder. I want it to keep only say 30 days files and older files to be deleted. How to do. One more question is how to have timestamp name appended to file name. Like if file name is file1.txt then how to have it renamed like file1_09_09_2024_15_54.txt where we have 09_09_2024 as date and 15_54 as time(hour and mins)
HiI have a question on our Nifi flow design and specifically about the usage of DuplicateFlowFile processor.The latest documentation mentions that, it is intended for load test.Does that mean, it can not be used in regular production flows? Please confirm.https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/nifi-2.0.0-M4/org.apache.nifi.processors.standard.DuplicateFlowFile/index.html"Intended for load testing, this processor will create the configured number of copies of each incoming FlowFile." Please verify the current and improved designs below and advise if any implications with the new approach (where DuplicateFlowFile processor is used to clone flow files)Current Design: New Design is below (with DuplicateFlowFile processor)
Hi,I am testing nifi 2.0.0-M4 in cluster mode (secured mode).But whenever I start the second node I get the following error when connecting to nifi UI. 024-09-07 13:50:16,976 WARN [Replicate Request Thread-107] o.a.n.c.c.h.r.ThreadPoolRequestReplicator Failed to replicate request GET /nifi-api/flow/current-user to desktop:11443java.net.ConnectException: Failed to connect to desktop/192.1.1.39:11443at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)at okhttp3.internal.http.RealI
Hello Experts,We have couple of Eventhub consumers running in nifi 1.16.3 version.The output connection is configured with default backpressure - 10,000 messages and 1GB.But I see 'ConsumeAzureEventhub' is keep on consuming data even after crossing backpressure.What is the reason for this behavior and how to fix this?@mattw ThanksMahendra ThanksMahendra
Say I have a file having 100 records. In this file I want to ignore the first line as it's data I do not want to process (It contains some info like file name, date and number of records). I want to process from second line. How to do that?
I create draft from ReadyFlow Hello World and start test session. Then error showed up as below
I am facing an issue with my Nifi as I am unable to access the Nifi anymore. I think this maybe because I have modified and replaced the nifi.properties file from the original downloaded version of the file.When I try to run Nifi as a service using sudo service nifi start it does not start the service.Here are the nifi-app.log that I can see... ERROR [main] org.apache.nifi.NiFi Failure to launch NiFijava.lang.IllegalArgumentException: There was an issue loading properties at org.apache.nifi.NiFi.initializeProperties(NiFi.java:361) at org.apache.nifi.NiFi.convertArgumentsToValidatedNiFiProperties(NiFi.java:343) at org.apache.nifi.NiFi.convertArgumentsToValidatedNiFiProperties(NiFi.java:339) at org.apache.nifi.NiFi.main(NiFi.java:331)Caused by: java.lang.IllegalStateException: Sensitive Properties Key [nifi.sensitive.props.key] not found: See Admin Guide section [Updating t at org.apache.nifi.properties.NiFiPropertiesLoader.getDefaultPr
Need to connect from apache nifi to AWS app config to get the details from app config. Able to connect to aws secret manager but not able to connect to aws app config. Can anyone guide in this process
I have a flow file that I want to enrich with the contents from a list of JSON values based on the "id". Basically perform an inner join of the flow file with this look-up data set. However, I need the look-up dataset to be in memory, then using the "id", query the look-up dataset and append the results to the current flow file. Here is an example: Incoming flow file: { "id": "abc123", "fname": "The", "lname": "Rock"} Contents of the look-up data set: [ { "id": "abc123", "dob": "03/09/1977", "phone": "987-654-0001" }, { "id": "def765", "dob": "04/08/1976", "phone": "789-654-0001" }, { "id": "hij765", "dob": "05/06/1975", "phone": "456-654-0001" }] Enriched flow file:{ "id": "abc123", "fname": "The", "lname": "Rock", "dob": "03/09/1977", "phone": "987-654-0001"} I need to be able to look up the correct record in the look-up dataset based on the "id" then append the
Hi all, I installed Hue on my CDP 7.1.8 cluster recently but not able to access the UI. Here are the screencap when trying to access the UI:1.2. I have tried a solution found in the Cloudera Community and checked the Bind Hue Server to Wildcard Address option. However, the problem doesn't solved. Please help me out with this issue. Thanks in advanced.
So I can't seem to sum up correctly to show that there is no difference, even though I've verified in Excel that there is no difference- and that Column A + Column B = Column C in all cases. It appears to be adding or subtracting incorrectly at times- no matter if I use minus or add(even tried switching them around), or using ABS(absolute).Data from table Sales:CurrencyColAColBTotal_ColCAED2,600,0000{null}2,600,000AUD465,000(406,000)59,000CAD(1,450,000,000)35,000,000(1,415,000,000)CHF490,000(114,000)(376,000)CNH(216,000)2,200,0001,984,000This is the query that I'm trying to double-check that the sum of column ColA + ColB = column Total_ColC:SELECT currency,CASEWHEN SUM(COALESCE(ColA,0)) + SUM(COALESCE(ColB,0)) = (SUM(COALESCE(Total_ColC,0)))THEN 0ELSE SUM(COALESCE(ColA,0)) + SUM(COALESCE(ColB,0)) - (SUM(COALESCE(Total_ColC,0)))END AS Total_CheckFROM `reports`.salesWHERE DateOfBusiness = '2024-08-10'GROUP BY CurrencyHere are the incorrect results that I get for some rows- notably,
Hello,We are tring to use hadoop distcp command to transfer data from on-prem hadoop cluster to GCS by using a private endpoint.We have tested many different method, and finally we added directly the following lines into /etc/hosts. (Other GCP auth info has been added into core-site.xml.)XX.XX.XX.XX storage.googleapis.comXX.XX.XX.XX googleapis.com*XX.XX.XX.XX is the IP of our private endpointhadoop fs -ls and -cp command can list or copy object correctly to the GCS bucket.But with hadoop distcp command, its mapreduce jobs always go to public endpoint...Does anyone knows how to make the distcp working with GCS private endpoint?Or does anyone have any idea about the private endpoint of distcp trying to reach (so that I can add it into /etc/hosts)?Thank you.
I have a problem with the topic __consumer_offsets, the topic is very large, kafka metrics show that I have 4 billion messages on it, I suspect that message compaction does not work correctly, I constantly see an increase in new messages in the metrics on this topic (however, the total log dir size fluctuates periodically between 19 and 20 GB). What could be the reason that this topic is not being cleaned up?
My service is to forcibly interrupt the impala query, but the interrupt requires queryId, impala driver does not find the corresponding method, jdbc does not see queryId return, driver log level LogLevel=6, and queryId is not seen
24/08/29 10:21:15 WARN DataStreamer: Exception for BP-942923949-172.20.0.202-1722967626672:blk_1074290600_560526Aug 29 10:21:15 gws-siem-dnt-3 bash[2218954]: java.io.EOFException: Unexpected EOF while trying to read response from serverAug 29 10:21:15 gws-siem-dnt-3 bash[2218954]: at org.apache.hadoop.hdfs.protocolPB.PBHelperClient.vintPrefixed(PBHelperClient.java:521)Aug 29 10:21:15 gws-siem-dnt-3 bash[2218954]: at org.apache.hadoop.hdfs.protocol.datatransfer.PipelineAck.readFields(PipelineAck.java:213)Aug 29 10:21:15 gws-siem-dnt-3 bash[2218954]: at org.apache.hadoop.hdfs.DataStreamer$ResponseProcessor.run(DataStreamer.java:1137)Aug 29 10:27:30 gws-siem-dnt-3 bash[2218954]: 24/08/29 10:27:30 WARN DataStreamer: DataStreamer ExceptionAug 29 10:27:30 gws-siem-dnt-3 bash[2218954]: java.net.SocketTimeoutException: 495000 millis timeout while waiting for channel to be ready for write. ch : java.nio.channels.SocketChannel[connected local=/172.20.0.194:40396 remote=/172.20.0.194:9866]Aug 29
I want to stop a processor on the same machine with restApi but I get an authorization error when I call the rest api.I can solve this problem with bearer token, but since the token has expired, I need to change the bearer token manually again.Is there a way I can authorize automatically?I am using the executeScript processor when calling the API.Script engine is Groovy.My Nifi version 1.23.2 and Nifi is secure and not clustered.I login with ldap on UI. This is the part where I call the API in the script:def post = new URL(NifiBaseUrl.value + NifiComponentId.value).openConnection();post.setSSLSocketFactory(sslContext.getSocketFactory())post.setRequestMethod("PUT")post.setDoOutput(true)post.setRequestProperty("Content-Type", "application/json")post.getOutputStream().write(content.getBytes("UTF-8"));post.getResponseCode() Error:java.io.IOException: Server returned HTTP response code: 401 for URL
Good Day!We have a requirement to read the TCP port data and publish it to Kafka. But at times the Kafka gets into a hung state and we need to restart the processor manually. So please help us with a way to configure the "Put Email" processor to trigger an email whenever this queue gets 80% full. Thanks in advance!
Hi all, in my test cluster I am noticing a slowdown in the execution of acid queries. Analyzing in detail I noticed that the compactions remain stuck at "ready for cleaning" and there are many delta files. I also tried to manually launch the compaction without any result. hive.metastore.housekeeping.threads.on and hive.metastore.housekeeping.threads.on is true only in 1 hive metastore host. This is a table properties:bucketing_version 2transactional truetransactional_properties defaulttransient_lastDdlTime 1720453037In the development cluster with the identical configuration I do not have this problem. Do you have any suggestions?I'm running in CDP 7.1.9Thanks, Lorenzo
Hi,I'm trying to use PowerBI to analyze my Hive data.But when I'm connecting to Hive by using ODBC, I can see all databases even if I don't have right permissions for other databases.These are the databases I have permissions in Ranger. This is a PowerBi screenshot when I connected Hive by using ODBC.As you can see above, I can see all databases. This is a ODBC setting for connecting to Hive. But if I connect to Hive by using HiveLLAP, I can see right databases like below. So question isWhy can I see all hive databases without permissions when I connected to Hive by using ODBC. If anyone knows the reason, please let me know.I would really appreciate it. Thanks.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.