Package | Description |
---|---|
org.apache.hadoop.fs |
An abstract file system API.
|
org.apache.hadoop.hdfs.server.namenode | |
org.apache.hadoop.hdfs.util | |
org.apache.hadoop.io |
Generic i/o code for use when reading and writing data to the network,
to databases, and to files.
|
Constructor and Description |
---|
MD5MD5CRC32CastagnoliFileChecksum(int bytesPerCRC,
long crcPerBlock,
MD5Hash md5)
Create a MD5FileChecksum
|
MD5MD5CRC32FileChecksum(int bytesPerCRC,
long crcPerBlock,
MD5Hash md5)
Create a MD5FileChecksum
|
MD5MD5CRC32GzipFileChecksum(int bytesPerCRC,
long crcPerBlock,
MD5Hash md5)
Create a MD5FileChecksum
|
Modifier and Type | Method and Description |
---|---|
static MD5Hash |
TransferFsImage.doGetUrl(URL url,
List<File> localPaths,
Storage dstStorage,
boolean getChecksum) |
static MD5Hash |
TransferFsImage.downloadImageToStorage(String fsName,
long imageTxId,
Storage dstStorage,
boolean needDigest) |
Modifier and Type | Method and Description |
---|---|
void |
FSImage.saveDigestAndRenameCheckpointImage(long txid,
MD5Hash digest)
This is called by the 2NN after having downloaded an image, and by
the NN after having received a new image from the 2NN.
|
Modifier and Type | Method and Description |
---|---|
static MD5Hash |
MD5FileUtils.computeMd5ForFile(File dataFile)
Read dataFile and compute its MD5 checksum.
|
static MD5Hash |
MD5FileUtils.readStoredMd5ForFile(File dataFile)
Read the md5 checksum stored alongside the given file, or null
if no md5 is stored.
|
Modifier and Type | Method and Description |
---|---|
static void |
MD5FileUtils.saveMD5File(File dataFile,
MD5Hash digest)
Save the ".md5" file that lists the md5sum of another file.
|
static void |
MD5FileUtils.verifySavedMD5(File dataFile,
MD5Hash expectedMD5)
Verify that the previously saved md5 for the given file matches
expectedMd5.
|
Modifier and Type | Method and Description |
---|---|
static MD5Hash |
MD5Hash.digest(byte[] data)
Construct a hash value for a byte array.
|
static MD5Hash |
MD5Hash.digest(byte[] data,
int start,
int len)
Construct a hash value for a byte array.
|
static MD5Hash |
MD5Hash.digest(InputStream in)
Construct a hash value for the content from the InputStream.
|
static MD5Hash |
MD5Hash.digest(String string)
Construct a hash value for a String.
|
static MD5Hash |
MD5Hash.digest(UTF8 utf8)
Construct a hash value for a String.
|
static MD5Hash |
MD5Hash.read(DataInput in)
Constructs, reads and returns an instance.
|
Modifier and Type | Method and Description |
---|---|
int |
MD5Hash.compareTo(MD5Hash that)
Compares this object with the specified object for order.
|
void |
MD5Hash.set(MD5Hash that)
Copy the contents of another instance into this instance.
|
Copyright © 2013 Apache Software Foundation. All rights reserved.