hadoop-rpc-1.0.0.0: Use the Hadoop RPC interface from Haskell.

Safe HaskellNone
LanguageHaskell2010

Network.Hadoop.Read

Contents

Synopsis

Documentation

openRead :: HdfsPath -> Hdfs (Maybe HdfsReadHandle) Source

Open an HDFS path for reading. This retrieves the block locations for an HDFS path, but does not yet initiate any data transfers.

hdfsMapM_ :: (MonadIO m, MonadMask m) => (ByteString -> m ()) -> HdfsReadHandle -> m () Source

Map an action over the contents of a file on HDFS.

hdfsFoldM :: (MonadIO m, MonadMask m) => (a -> ByteString -> m a) -> a -> HdfsReadHandle -> m a Source

Convenience utilities

hdfsCat :: HdfsPath -> Hdfs () Source

Print the contents of a file on HDFS to stdout