- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
NiFi Tailfile - Unable to open file (squid access.log tutorial/runbook)
Created ‎05-10-2018 10:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm running the HCP run book, and the parallel tutorials.
Have the Squid file at the default location: /var/log/squid/access.log
Also, both NiFi and this squid log (squid server) are on the same host.
But I'm getting: Warning TailFile Unable to open file /var/log/squid/access.log; will attempt to access file again after the configured Yield Duration has elapsed: {}
Why is this happening?
Created ‎05-10-2018 01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What are the permissions/owner of the access.log file and the directory path? The nifi user may not have permission to read the file?
Created ‎05-10-2018 01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What are the permissions/owner of the access.log file and the directory path? The nifi user may not have permission to read the file?
Created ‎05-10-2018 09:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Make sure the nifi user has access down the entire path of the file. Easy way to be sure, is to sudo as the nifi user and then see if you are able to access the file.
Ambari is in various stages of maturity. Some things are good to go, others are still being worked.
Created ‎05-10-2018 09:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, that was the first thing I checked.
It's not in front of me right now, but it was -rwx r-- --- and I changed that to -rwx r-- r--
So it should be able to get read by anyone. Or should I change the whole path permission?
Also, shouldn't these things be taken care of by the Ambari installation, or at least appear in the documentation, if indeed it is a permissions issue?
Created ‎05-13-2018 05:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay, that seems to have done the trick.
But now, I see in NiFi that data is moving from processor to processor, but nothing shows up in Storm or Metron UIs.
Weird.
