This will create an empty file specified by the source path. The path should reflect a full path originated at the root. The name-node does not have a notion of "current" directory for a client.
Once created, the file is visible and available for read to other clients. Although, other clients cannot {@link #delete(String)}, re-create or {@link #rename(String,String)} it until the file is completedor explicitly as a result of lease expiration.
Blocks have a maximum size. Clients that intend to create multi-block files must also use {@link #addBlock(String,String)}. @param src path of the file being created. @param masked masked permission. @param clientName name of the current client. @param overwrite indicates whether the file should be overwritten if it already exists. @param replication block replication factor. @param blockSize maximum block size. @throws AccessControlException if permission to create file is denied by the system. As usually on the client side the exception will be wrapped into {@link org.apache.hadoop.ipc.RemoteException}. @throws QuotaExceededException if the file creation violates any quota restriction @throws IOException if other errors occur.
|
|
|
|
|
|
|
|
|
|
|
|