<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Is there a way that inotify createEvent can capture the name of the created file? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-inotify-createEvent-can-capture-the-name/m-p/174436#M58166</link>
    <description>&lt;P&gt;Thanks for your reply, I just realize this is a stupid question lol&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 09:39:52 GMT</pubDate>
    <dc:creator>xiaqinglinv5</dc:creator>
    <dc:date>2017-03-29T09:39:52Z</dc:date>
    <item>
      <title>Is there a way that inotify createEvent can capture the name of the created file?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-inotify-createEvent-can-capture-the-name/m-p/174434#M58164</link>
      <description>&lt;P&gt;Hi Guys, I am writing a hdfs hook works with the apache atlas, but the atlas hdfs_path type requires the name of the hdfs file, I am currently working with the inotify api but cannot find a way to capture the name of the created file, do you guys have any idea about this? &lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 13:14:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-inotify-createEvent-can-capture-the-name/m-p/174434#M58164</guid>
      <dc:creator>xiaqinglinv5</dc:creator>
      <dc:date>2017-03-27T13:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way that inotify createEvent can capture the name of the created file?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-inotify-createEvent-can-capture-the-name/m-p/174435#M58165</link>
      <description>&lt;P&gt;Not sure if I got your question right, &lt;/P&gt;&lt;P&gt;the CreateEvent will contain the HDFS path. The name of the file is part of the HDFS path (comes after the last '/'). I hope this answers your question.&lt;/P&gt;&lt;P&gt;see the inotify patch here, &lt;A href="https://issues.apache.org/jira/secure/attachment/12665452/HDFS-6634.9.patch#file-8" target="_blank"&gt;https://issues.apache.org/jira/secure/attachment/12665452/HDFS-6634.9.patch#file-8&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;/**
* Sent when a new file is created (including overwrite).
*/
public static class CreateEvent extends Event {


public static enum INodeType {
  FILE, DIRECTORY, SYMLINK;
}


private INodeType iNodeType;
private String path;
private long ctime;
private int replication;
private String ownerName;
private String groupName;
private FsPermission perms;
private String symlinkTarget;
&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Mar 2017 20:36:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-inotify-createEvent-can-capture-the-name/m-p/174435#M58165</guid>
      <dc:creator>bpgergo</dc:creator>
      <dc:date>2017-03-27T20:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way that inotify createEvent can capture the name of the created file?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-inotify-createEvent-can-capture-the-name/m-p/174436#M58166</link>
      <description>&lt;P&gt;Thanks for your reply, I just realize this is a stupid question lol&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 09:39:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-that-inotify-createEvent-can-capture-the-name/m-p/174436#M58166</guid>
      <dc:creator>xiaqinglinv5</dc:creator>
      <dc:date>2017-03-29T09:39:52Z</dc:date>
    </item>
  </channel>
</rss>

