Пример #1
0
        /// <exception cref="System.IO.IOException"/>
        private static void VerifyTargetFile(FSDirectory fsd, string target, INodesInPath
                                             targetIIP)
        {
            // check the target
            if (fsd.GetEZForPath(targetIIP) != null)
            {
                throw new HadoopIllegalArgumentException("concat can not be called for files in an encryption zone."
                                                         );
            }
            INodeFile targetINode = INodeFile.ValueOf(targetIIP.GetLastINode(), target);

            if (targetINode.IsUnderConstruction())
            {
                throw new HadoopIllegalArgumentException("concat: target file " + target + " is under construction"
                                                         );
            }
        }