Find answers, ask questions, and share your expertise
Recently active
hi all, I am very new to nifi, i have try to adopt backpressure to control the throughput and i did a test as bleow, setting the highlight link backpressure threshold as screen cap. however, seems the 37.05MB data pass from "ConvertCSVToAvro" to "ConvertAvroToJSON" quickly , feels like backpressure doesn't work. I have read https://community.hortonworks.com/articles/9785/nifihdf-dataflow-optimization-part-2-of-2.html and flow the setting. Would anyone share me tips of using controlrate and backpressure to prevent overwhelm to the system? currently if the input data is large than 500M (CSV), it has OOM error.
I have created a new user (user2) and when running any MapReduce jobs the JobHistoryServer portal (port 19888) does NOT show any!!! I can see the job from witihin the ResourceManager Web UI (port 8088) and when I click on the 'History' link (under the Tracking UI column) I am getting the error: "No Found: job_xxxxxxxxxxxxx_xxxx). This happening for the MapReduce jobs only!!! When I run Spark Jobs (under the same userid, user2) I am able to see the 'History' logs!!! An existing userid (user1) works fine! It seems to me that the issue is permissions-related. Here are the HDFS permissions of the userids: [root@master ~]# hdfs dfs -ls /tmp/logsFound 5 itemsdrwxrwxrwt - user1 hadoop 0 2015-04-20 08:48 /tmp/logs/user1drwxrwxrwt - hdfs supergroup 0 2015-04-09 14:59 /tmp/logs/hdfsdrwxrwxrwx&nbs
I'm in the America/New_York timezone and my servers run ntp, and they show the right time. The header of NiFi running on those servers is off by one hour, eg system time says 11:00 and NiFi says 10:00. This question is very similar to https://community.hortonworks.com/questions/76724/change-timezone-in-nifi.html but I've tried that solution and no joy. This feels like a daylight savings problem, as the gui says 10:00:00 EST, and really that should be EDT since at time of writing it is summer. I'm using Oracle Java 1.8.0_71. Any ideas?
1. I am trying to get data from https://support.appsflyer.com/hc/en-us/articles/207034356-Push-APIs-Real-Time-Installation-and-Conversion-Notification-APIs The page say: NOTE: Push API only supports the use of port 80 and 443. I believe I can use NIFI to stream data from a webhook. My question is how to run the HttpListen Processor on port 80 or 443. I tried putting these ports in there and that seems to not work. Secondly, I tried posting to my small workflow in Nifi that has just two components httplistener and putHDFS. It just shows the bytes stuck in the queue and not being written to hdfs. Besides how do I run this on port 80 or 443 as these are the only two ports supported. Are there any other processors I could possibly use? Any help me is appreciated
I want to give all Read access for UI and all new crated processes and process groups by default from coding for each new user. Instead of explicitly go and give the view rights. I think we can do this by making changes in java files. But I am not able to find out the exact flow from java files. Expecting a solution for this. Thanks in advance.
I am running a ListHDFS processor pointing to a directory on hdfs on a timer driven schedule set to execute once per hour. After making sure the state is clear on the processor, I run it and see that it creates a flow file for all but 1 file in the directory. There are 5 files in the directory, and only 4 flowfiles are created. If I add more files and clear the state and attempt to run again, the pattern repeats, always one less flowfile is create, so one file is missed. It is not the same file that is missed with each run. Why is the processor missing 1 file each time? Is this by design? This is in HDF 2.1.0.1 and Apache NiFi - Version 1.1.0.2.1.0.1-1
I am working with nifi cluster. As in tutorial it is suggestion to use remote process group with cluster for load balancing. But to use Remote process group, we have to provide url of other nifi instance which is hardcoded. So what will happen if that nifi instance goes down in between of workflow execution. Is remote process call is working in that situation as load balancing concept is implemented in Remote process call.
Current setup is using getSftp --> puSFTP to sync data from sftp server to a remote linux host. Problem is with getSFTP i cannot define File age i wish to download, though i found getFile has the min max file age option, however nifi doesn't allow on canvas link between getSFTP and getFile. I was wondering how i can accomplish this, thanks in advance.
NULL
Hi, I have a Process Group which has an internal output port with a large queue. When I exit the Process Group and view the queue from the output of that Process Group to another group it seems to be very small. It seems as though there is a limit/time on the number of FlowFiles being transferred from one port to another even though these ports are both within Nifi without a process in between. Example: Process Group A has an internal output Port ExampleOutputPortA with a queue of XX,XXX FlowFiles. When you exit ExampleA and view the queue into port ExampleInputPortB the queue is XXX which is constantly lower than the queue within ExampleA.
Hi All, Is there any steps we have to deploy custom nars because i am facing the below errors when deploying custom nars in default lib dir. https://community.hortonworks.com/questions/97610/nifi-javalangnosuchmethoderror.html Please advice.
I am working on a flow getting files from a sftp site, i am not shure what i am during wrong configuring the listSftp processor I this flow ( just startet ) and keep getting this error My configuration in listSftp is current I have validated that the file exits on the nifi server in my directory, even tried to chmod 777 so everybody can do everything on it. ( i did this just for debug purpose ) I have this sence that i am during something basiclly wrong. I have keyfile, hostname, username, a password (key phrase i thing ) there are 100 chars I thing it is strange that nifi cannot validate that the file exits in /home/230960adm/ on the nifi server Any suggestions ?
Hello Everytime i face an error in my nifi workflow, the gethdfs processor recrawls the hdfs directory right from the beginning. I want to keep the files where they are in hdfs (keep source file = true) How can i have the gethdfs processor continue from where it stopped? Thanks
Hi all, There are something strange with data provenance of listHDFS (name listHDFS) processor in process group ExLibris. When I see the data provenance of this processor and i'm suprising that it is talk about the component that is outside of this process group. The data provenance seems get info from process group AutoClean. I think it is more clear with these images : data provenance of listHDFS from process group EXLIBRIS, in the data provenance we can see about component come from AUTOCLEAN dataflow ! process group AUTOCLEAN
Hi All, In mynifi flow i have two processor one is GetFTP and PutS3Object . consider i have one file in FTP a.txt .after the data get into the S3 the a.txt's timestamp is 12:00:00 in S3 after sometime again one file 'b.txt' is put into ftp now the S3 have two files as below but the timestamp in the S3 is changed for both a.txt and b.txt a.txt 12:01:00 b.txt 12:01:00
Checkpointing process is defined in 2 configuration parameters: dfs.namenode.checkpoint.period -> 10 hr which will set the time for every checkpoint. Aslos dfs.namenode.checkpoint.txns is by default set to 1 million. What does this configuration do, in apache wiki website it says this configurations sets the number of uncheckpointed transactions. In the first configuration we are setting it for every 10hrs, in such scenario what is the necessity for setting value for uncheckpointed transactions.
I am trying to set an order to the files Tared in a merge content processor, is this possible somehow? I need the order of the binary bits to be set so that one file (based on filename) can always be first. In this case I need the testfile1.txt to be first and then then testfile2.txt to be second. It seems to ignore my priorityattrbribute prioritizer. Thank you!
The remote process group on insance-1 trying to connect to instance-2 says forbidden. How can i fix this?
My Usecase: Pick log data and send it to PutSplunk. Solution I am trying is: I used TailFile processor which will have details of path of log file. And it will keep fetching the updated data from this file and will put in FlowFile routed to PutSplunk. As in the image attached, its not picking any more data and seems like hung, although the data is queued up. and the processors are in running state. Also added the screen dump of Processor Configuration
Hi all, Do you know how use deleteHDFS to remove empty directories ? thanks
I try to load data from my local system file into HDFS by using Getfile processor in Nifi, but it produces "invalid directory" error
Hi I have the processors unpackContent -> MergeContent. I use this to untar a file and then zip the files. I am using the defragment merge strategy and have been noticing that when MergeContent has to handle many flowfiles at once (flowfile queue builds up before MergeContent) from many different fragments I get "Expected number of fragments is X but only getting Y". Simply routing failures back to merge content or creating a run schedule delay helped solve this but wondering why this would be happening. Thanks,
mergecontent.png I'm new to NIFI. I'm trying to consumeKafka json message and write to hdfs in one file, also the filename should be date of the day. I've tried to use mergecontent and write to hdfs, but it created multiple files. This is my mergecontent looks like:
I have an external table which is created with partitions and i would like to delete/drop few partition along with data as i no longer require it. Appreciate any suggestions.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.