Example usage for org.apache.hadoop.mapreduce.security SecureShuffleUtils hashFromString

List of usage examples for org.apache.hadoop.mapreduce.security SecureShuffleUtils hashFromString

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce.security SecureShuffleUtils hashFromString.

Prototype

public static String hashFromString(String enc_str, SecretKey key) throws IOException 

Source Link

Document

Aux util to calculate hash of a String

Usage

From source file:it.crs4.pydoop.mapreduce.pipes.Application.java

License:Apache License

public static String createDigest(byte[] password, String data) throws IOException {
    SecretKey key = JobTokenSecretManager.createSecretKey(password);
    return SecureShuffleUtils.hashFromString(data, key);
}

From source file:it.crs4.pydoop.mapreduce.pipes.CommonStub.java

License:Apache License

protected String createDigest(byte[] password, String data) throws IOException {
    SecretKey key = JobTokenSecretManager.createSecretKey(password);

    return SecureShuffleUtils.hashFromString(data, key);

}