Find answers, ask questions, and share your expertise
Recently active
We have the below requirements in the Nifi flowa) Fetch a file from HDFS and transfer it to a Linux Server. I have achieved this using FetchHDFS and PutSFTP NiFi Processors, and it is working fine as expected for a single file.Now, we have a requirement that this HDFS directory may contain multiple files, and all of them need to be transferred to the SFTP server. I tried passing the HDFS directory path in the "HDFS File Name" Property of the FetchHDFS processor; however, it seems to accept only file names. Could you please suggest an alternative processor/method to achieve this?I tried to use ListHDFS -> FetchHDFS -> PutSFTP Actually the HDFS files are output of sqoop jobs. I tried connecting RouterAtribute to ListHDFS, but that connection is not allowed.b) The second requirement is to combine all the files in a specific HDFS directory. Can we achieve this using the MergeContent processor?Could you please provide some inputs?
Hello,My team is about to deploy a clustered scaling NiFi, along with NiFi Registry and Zookeeper. We are deploying on Openshift Kubernetes.We are determining which directories to mount our persistent storage to on both NiFi and the Registry.1. Since we are using Registry, do we need to back anything up on the NiFi pod?2. What are all of the locations we would want mount persistent storage for both NiFi and Registry? 3. What are all of the locations we would want to establish a backup procedure for on NiFi and Registry if we are using local filesystem persistence?4. Do we still need to backup any locations if we use the Git and S3 persistence providers?5. What does the restoration process look like for bothA. local persistence providers onlyB. Git + S3 persistence6. Do we need to worry about Zookeeper at all for backups?Thanks ahead of time!
Installed CFM (Nifi) on Cloudera 6.2 using parcels. I see default 512 M being allocated for Heap size and want to increase it. I did not see nifi.properties file where I could do the same... Any guidance would be appreciated..
I am getting the following error message when I try to refresh my datasource in Tableau. I have gotten this error when I try to refresh in an existing workbook and when I try to connect in a new workbook.Has anyone seen this error before?An error occurred while communicating with the Other Databases (JDBC) data source 'ShowData'Bad Connection: Tableau could not connect to the data source.Error Code: B19090E0[Cloudera][HiveJDBCDriver](500051) ERROR processing query/statement. Error Code: 10002,SQL state: TStatus(statusCode:ERROR_STATUS,infoMessages:[*org.apache.hive.service.cli.HiveSQLException:Error while compiling statement:FAILED: SemanticException [Error 10002]: Line 1:20Invalid column reference 'tableausql.fieldname':38:37, org.apache.hive.service.cli.operation.Operation:toSQLException:Operation.java:335, org.apache.hive.service.cli.operation.SQLOperation:prepare:SQLOperation.java:199, org.apache.hive.service.cli.operation.SQLOperation:runInternal:SQLOperation.java:260,org.apache.h
I'm new to NiFi. I have a flow that's consuming messages from Kafka and producing them to Redis. The issue I'm experiencing is the MergedContent queue is filling up within seconds, which is slowing down the process of getting the records into Redis. I'm wondering what the recommended approach is to improve things (being new to Redis, I'm aware that I'm most likely missing some obvious things). My flow looks like this:
I want to implement Apache Nifi on my webapp and i need to customize a little bit the UI to make it more compliant with my app. I have some troubles in understanding where is the code of frontend in the Source2.0.0-M2 package you can download from the official website.Where can I find the code? Thank you in advance.I have tried to change the js code in multiple folders but nothing has changed.
Hello,I am in the process of transferring data from an Oracle database to HDFS, formatted as Parquet. The workflow, as depicted in the attached screenshot, employs the GeneratedTableFetch method for data ingestion in segments. Additionally, the ExecuteSQL processor runs the generated queries, UpdateAttribute is utilized to add an attribute, and QueryRecord is used to introduce a new column in the flow files.The source table contains approximately 22 million records. In this procedure, the 'Date' column is set as the 'Maximum-value Column' with the GenerateTableFetch processor, and a partition size of one million rows has been configured. This approach has allowed for the successful transfer and storage of all 22 million records into HDFS.However, during data quality checks, I encountered some issues: there were missing rows and instances of duplicate records in the HDFS storage, a situation not mirrored in the source database, which maintained an accurate and duplicate-free record coun
I am getting the following error message when running a refresh. Do I have an invalid date field causing the issue? Unable to complete actionNot all extracts were refreshedAn error occurred while refreshing outputtable[Cloudera][HiveJDBCDriver](500051) ERROR processing query/statement. Error Code: 40000, SQL state: TStatus(statusCode:ERROR_STATUS, infoMessages:[*org.apache.hive.service.cli.HiveSQLException:Error while compiling statement: FAILED: ParseException line 1:7 cannot recognize input near '{' 'fn' 'TIMESTAMPADD' in select clause:38:37, org.apache.hive.service.cli.operation.Operation:toSQLException:Operation.java:335, org.apache.hive.service.cli.operation.SQLOperation:prepare:SQLOperation.java:199, org.apache.hive.service.cli.operation.SQLOperation:runInternal:SQLOperation.java:260, org.apache.hive.service.cli.operation.Operation:run:Operation.java:247, org.apache.hive.service.cli.session.HiveSessionImpl:executeStatementInternal:HiveSessionImpl.java:541, org.apache.hive.se
Hi there,Maybe some one can help us out. Searching on the web for similar error's doesn't give us a lead on what is going on.Let me sketch out what is happening. Last week we were cleaning up some old buckets with flows from the nifi-registry manually thru the web gui. At some point we received an error that pointed us the registry logs. Actually didn't see anything there. To test if everything is still working, we tried to commit a change to a versioned flow. Which failed. Unfortunately I don't have the error anymore. So decided to restart the registry hoping that this will help. And now it has gotten worse, the registry isn't starting anymore and is showing the error below.2024-03-26 09:40:28,551 INFO [NiFi logging handler] org.apache.nifi.registry.StdOut Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getFlowPersistenceProvider' defined in class path resource [org/apache/nifi/registry/provider/StandardProviderFactory.class]: Bean in
I'm trying to use the cdp cli (v. 0.9.106 on my local machine) to get KPI metrics from CDF. I'm using the command `cdp df list-deployment-system-metrics --deployment-crn my-deployment-crn` but struggling to correctly format the required `--metrics-time-period` arg. The documentation isn't helpful here:I've tried a few things like:`--metrics-time-period "2024-03-24T12:00:00Z:2024-03-24T16:00:00Z"``--metrics-time-period LAST_24_HOURS``--metrics-time-period "yesterday"`But they all scream back:An error occurred: No enum constant com.cloudera.dfx.metrics.TimeSpan.TimePeriod.yesterday (Status Code: 400; Error Code: INVALID_ARGUMENT; Service: df; Operation: listDeploymentSystemMetrics;If someone could elaborate on what this command is expecting, or better yet, offer up some examples of successful executions, that'd be great!
We are working on deploying the NiFi Registry platform on kubernetes, however, we are hitting some issues. I've added a diagram of our deployment to help give some context as well. Test Case 1: When proxying NiFi registry with settings as unsecure, the proxying works fine. We are able to connect to https://nifi-registry.company.domain.com and view the registry as needed. Note the HTTPS in the URL still - we are using SSL offloading in our nginx's.Test Case 2: When proxying NiFi registry with settings as secure, we get ERR_TOO_MANY_REDIRECTS. I have attached our nifi-registry.properties file as well. One thing that we found interesting, was that when we tried the below curl request from within the pod we get back a normal responsecurl -k --cacert /opt/nifi-registry/nifi-registry-current/tls/cert-manager/ca.crt --key /opt/nifi-registry/nifi-registry-current/tls/cert-manager/tls.key --cert /opt/nifi-registry/nifi-registry-current/tls/cert-manager/tls.crt
hello everyone. is cloudera shop a product of this company? do you know this?
I am running a CDH 5.5 cluster, and my NameNode edit logs are not getting automatically deleted. How can this issue be fixed?
I come from a communication equipment company and we are using data services from cloud vendors. We mainly use services such as HDFS, Yarn, Hive, Spark, etc. Due to certain specific reasons, some cloud vendors do not provide EMR services in some regions, so we are now planning to deploy CDH6 cluster with K8S. As we know Hadoop and K8S are two different things, I want to know is it possible to deploy CDH on K8S? Is there any tutorials or best practices? Thanks.
What mount points we need to create before Cloudera installation?
Hello everyone,I have an issue with PutSplunkHTTP processor trying to push some Sysmon logs to my Splunk Indexer.Both NiFi and Splunk are in the same system (Windows).I keep receiving an error:"Error 404 - The requested URL was not found on this server"I use curl from a Linux box and event is added:curl -k http://ipaddress:8088/services/collector/raw?=a98d4602-3a79-4dbc-b733-0977d2aaaec7 -H "Authorization: Splunk <token>" -d '{"event": "Hello, world!", "sourcetype": "manual"}'Using latest NiFi 2.0.0-M2 Release and SplunkAny help would be appreciated.Thank you.
After disabling a service using both the CDP Web UI and the CDPCLI tool, when I list all of the services:$ cdp de list-servicesThe disabled services still appear with "status": "ClusterDeletionCompleted".Is it possible to completely remove these services from that list so they dissappear after being removed?As I understand, once disabled they cannot be restored, so whats the point of keeping that data?
We have Hadoop cluster with `487` data-nodes machines ( each data-node machine include also the Service node-manager ) , all machines are physical machines ( DELL ) , and OS is RHEL 7.9 version.Each data-node machine have 12 disks, each disk is with size of 12THadoop cluster type installed from HDP packages ( previously was under Horton-works and now under Cloudera )Users are complain about slowness from spark applications that run on data-nodes machinesAnd after investigation we seen the following warning from data-node logs2024-03-18 17:41:30,230 WARN datanode.DataNode (BlockReceiver.java:receivePacket(567)) - Slow BlockReceiver write packet to mirror took 401ms (threshold=300ms), downstream DNs=[172.87.171.24:50010, 172.87.171.23:50010]2024-03-18 17:41:49,795 WARN datanode.DataNode (BlockReceiver.java:receivePacket(567)) - Slow BlockReceiver write packet to mirror took 410ms (threshold=300ms), downstream DNs=[172.87.171.26:50010, 172.87.171.31:50010]2024-03-18 18:06:29,585 WARN data
We are running a HDP Cloudera Cluster version 3.1, kerberized.All the services but HBase are starting with no issue. For HBase, when the service starts, both nodes are starting as Master, then switch to Standby, and finally goes down. telling in the logs that the service doesn´t have owner permissions in an specific HDFS filesystem path, for an user that is not the one starting the service. Even further, eventhough the HDFS before I start the service, at the mentioned filesystem path has everything owned by an user with a name "userA" and a group "groupA", all of the sudden when starting, it changes, for instance, the .tmp directory to be owned by a different user, let´s call it "userB" In Ranger the rules are properly defined, Kerberos is working fine (tickets are valid), and it worth to mention that it started all of the sudden.Herewith the error stack trace (or part of it): 2024-01-11 13:01:05,695 DEBUG [Thread-18] util.FSTableDescriptors: Current path=hdfs://env1/app
Hi,We can access/read/write Ozone etc using aws s3api, but would like to see if we can do the same using curl. We may not have the option of using the awscli package in RHEL.We've tried curl with webhdfs, but that is a bit limited.This almost seems to work:$ curl -vvv -H "Authorization:AWS user@FQDN:aws_key" https://host73.fqdn:9879/s3v/bucket/curl_testBut it seems to get stuck here:> GET /s3v/bucket/curl_test HTTP/1.1> User-Agent: curl/7.29.0> Host: host73.fqdn:9879> Accept: */*> Authorization:AWS user@FQDN:aws_key>It makes the connection to the Ozone S3 gateway, but then just hangs. Does anyone know why it's getting stuck? Log messages seems to be inconsistent, and there's nothing in Ranger. Everything we've tried hasn't worked yet.
I have a flow usecase wherein I use RouteOnAttribute to route to FetchFile.FetchFile processor is then supposed to read a file from a directory and send it to PutSFTP processor.But I observe that file routed from RouteOnAttribute to FetchFile is what is forwarded to PutSFTP.What I want is that FetchFile forwards that file to PutSFTP that it reads from directory.Is it possible?
Hi there ,We are looking for a way to list all keys of redis cache thru nifi. The best solution we found was a groovy script from this article Get list of keys in NiFi DistributedMapCache The script looks good and exactly what we are looking for. But when we try to implement it, we get the following error:We are using the invokescriptprocessor and configure like thisWhat are we missing here 😉 Or another solutions is also more than welcome.Thank you in advanced.Kind regards,Dave
I am trying to kill an existing coordinator job and re-deploy it on oozie. I am running the command -oozie job -run --config siftcuration.properties. Here is my oozie properties file - nameNode=hdfs://ip-<ip>:8020jobTracker=ip-<ip>:8032master=yarnmode=clientqueueName=default#oozie.libpath=${nameNode}/user/oozie/share/liboozie.use.system.libpath=trueoozie.wf.rerun.failnodes=trueruntimeEnvironment=aws_prodappName=SiftCurationappBaseDir=${nameNode}/user/${user.name}/oozieJobs/${appName}oozie.coord.application.path=${appBaseDir}/workflow/coordinator.xmletl.OverwriteOrAppend=Overwritespark.driver.memory=4gspark.executor.memory=4gspark.num.executors=3spark.executor.cores=1etl.default.date.format=yyyy-MM-ddetl.run.date=yesterdaycoordinatorKickDate=2024-03-14 When I run this command, it gives me a coordinator job ID. But when I check the coordinator status, I see that is is still in PREP state. It has been in PREP state for over 4 hours.0000002-240312195311040-oozie-
FetchFile processor has property 'Move Conflict Strategy':Basically its about file conflict in destination folder.But it doesn't have any property for destination folder, and correctly so as this processor is only about pulling a file in nifi system.So why is this property needed?
I have to create a connection from RouteOnAttribute processor to GetFile processor based on value of an attribute which I have set in processor preceding RouteOnAttribute .But I am unable to do so on NiFi ui. Connection dialogbox jut doesn't appear.What am I missing?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.