Test::HadoopSingleNode - Single node hadoop module for tests.
use Test::More; use Test::HadoopSingleNode; # Load from $HADOOP_DIR/conf my $hadoop = Test::HadoopSingleNode->new( default_hadoop_conf_dir => "./hadoop_conf", ); $hadoop->start_all(); $hadoop->construct_fixture( '/path/to/hdfs/file' => '/path/to/local/file', ); $hadoop->stop_all();
Test::HadoopSingleNode is automatically setups a hadoop instance in a temporary directory, and destroys it when the perl script exits.
Set hadoop configuration. Default configuration is load filed from default_hadoop_conf_dir or $Test::HadoopSingleNode::conf_files, and set make a temporary dir.
Launch a hadoop instance.
Put a fixture file to a hdfs.
Stop the launched instance.
Test::HadoopSingleNode <ya.yohei@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Test::HadoopSingleNode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::HadoopSingleNode
CPAN shell
perl -MCPAN -e shell install Test::HadoopSingleNode
For more information on module installation, please visit the detailed CPAN module installation guide.