NAME

Hadoop::Inline::ClassLoader

VERSION

version 0.002

SYNOPSIS

use Hadoop::Inline::ClassLoader qw( org.apache.hadoop.conf.Configuration );
use Hadoop::Inline::ClassLoader \%options, @java_classes;

DESCRIPTION

Hadoop Java class loader through Inline::Java. This module tries to setup the environment needed for the Hadoop classes and also has auto-study feature and short name aliasing for Perl packages' name mappings.

NAME

Hadoop::Inline::ClassLoader - Hadoop Java class loader through Inline::Java

IMPORT ARGUMENTS

Options

You can specify a hashref with the optional options to override some functionality. When setting this options hash yourself, you will be disabling most defaults. So, if you set one of them, then you may need to specify the rest, if you need those to be present.

alias

Boolean. Enable or disable short name aliasing. This will create short names for the undelying Java class name mappings.

Enabled by default.

export_to

By default, the environment and definitions will be in the caller namespace which can be altered by this option. Normally, you won't need this, but it can be useful if you'd like to wrap this module.

extra_classpath

Hadoop configuration might be missing some of the classpaths and if you need to include them, then this option can be used.

It needs to be an arrayref.

hadoop_command

The full path to the hadoop command line executable, which will be used to probe the Hadoop Class Paths and other options to be utilized by this module.

The default value is /usr/bin/hadoop.

Java Classes

You need to define a list of java classes to be loaded by this module. they will be auto-studied and will be made available to your program.

AUTHOR

Burak Gursoy <burak@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Burak Gursoy.

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