Net::Hadoop::WebHDFS::LWP - Client library for Hadoop WebHDFS and HttpFs, with Kerberos support
version 0.010
use Net::Hadoop::WebHDFS::LWP; my $client = Net::Hadoop::WebHDFS::LWP->new( host => 'webhdfs.local', port => 14000, username => 'jdoe', httpfs_mode => 1, ); $client->create( '/foo/bar', # path "...", # content permission => '644', overwrite => 'true' ) or die "Could not write to HDFS";
This module is a quick and dirty hack to add Kerberos support to Satoshi Tagomori's module Net::Hadoop::WebHDFS, to access Hadoop secure clusters. It simply subclasses the original module, replacing Furl with LWP, which will transparently use LWP::Authen::Negotiate when needed. So the real documentation is contained in Net::Hadoop::WebHDFS.
As mentioned above, the real work was done by Satoshi Tagomori
Thanks to my employer Booking.com to allow me to release this module for public use
David Morel <david.morel@amakuru.net>
This software is copyright (c) 2014 by David Morel.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::Hadoop::WebHDFS::LWP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Hadoop::WebHDFS::LWP
CPAN shell
perl -MCPAN -e shell install Net::Hadoop::WebHDFS::LWP
For more information on module installation, please visit the detailed CPAN module installation guide.