예제 #1
0
        /// <exception cref="System.IO.IOException"/>
        /// <exception cref="Org.Apache.Hadoop.FS.UnresolvedLinkException"/>
        public override FileStatus GetFileLinkStatus(Path f)
        {
            HdfsFileStatus fi = dfs.GetFileLinkInfo(GetUriPath(f));

            if (fi != null)
            {
                return(fi.MakeQualified(GetUri(), f));
            }
            else
            {
                throw new FileNotFoundException("File does not exist: " + f);
            }
        }
예제 #2
0
 /// <exception cref="System.IO.IOException"/>
 public static HdfsFileStatus GetFileStatus(DFSClient client, string fileIdPath)
 {
     return(client.GetFileLinkInfo(fileIdPath));
 }