Setting a Hard Link
Explains how to create a hardlink to a file.
To set a hard link using:
- POSIX loopbacknfs client or NFS client, run the following command:
where <sourcefile> is the name of the file to link to and <newfile> is the name of the hard link, which must not already be present.ln <sourcefile> <newfile>
- Hadoop, run the following command:
where <sourcefile> is the name of the file (including full path) to link to and <newfile> is the name of the hard link (including the full path). When running this command, specify the full path to both files.hadoop mfs -lnh <sourcefile> <newfile>