The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Hadoop::Oozie::DelegationTokenContainer

VERSION

version 0.002

SYNOPSIS

    use Hadoop::Oozie::DelegationTokenContainer;

    my $container = Hadoop::Oozie::DelegationTokenContainer->new_from_file( $ENV{HADOOP_TOKEN_FILE_LOCATION} );
    my $token = $container->base64token_for( 'WEBHDFS' );

DESCRIPTION

Hadoop::Oozie::DelegationTokenContainer parses token container files produced by Hadoop, and can produce the base64 tokens used in REST queries.

NAME

Hadoop::Oozie::DelegationTokenContainer - Perl interface to Hadoop delegation token

METHODS

base64token_for

    my $token = $container->base64token_for( $query );

Return the base64-encoded delegation token for the given query.

If the string is not an exact match for a token name, return the first token which name matches the query.

new_from_file

    my $container = Hadoop::Oozie::DelegationTokenContainer->new_from_file( $file );

Parse the content of $file and return a Hadoop::Oozie::DelegationTokenContainer object.

token_for

tokens

    my @tokens = $container->tokens;

Return the list of tokens in the container.

AUTHORS

  • Philippe Bruhat

  • Somesh Malviya

COPYRIGHT AND LICENSE

This software is copyright (c) 2023 by Booking.com.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.