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

Safe HaskellNone
LanguageHaskell2010

Data.Hadoop.Protobuf.Hdfs

Synopsis

Documentation

data FileStatus Source

Status of a file, directory or symbolic link. Optionally includes a files block locations if requested by client on the RPC call.

Constructors

FileStatus 

Fields

fsFileType :: Required 1 (Enumeration FileType)
 
fsPath :: Required 2 (Value ByteString)

local name of inode (encoded java utf8)

fsLength :: Required 3 (Value Word64)
 
fsPermission :: Required 4 (Message FilePermission)
 
fsOwner :: Required 5 (Value Text)
 
fsGroup :: Required 6 (Value Text)
 
fsModificationTime :: Required 7 (Value Word64)
 
fsAccessTime :: Required 8 (Value Word64)
 
fsSymLink :: Optional 9 (Value ByteString)

if symlink, target (encoded java utf8)

fsBlockReplication :: Optional 10 (Value Word32)

default = 0, only 16bits used

fsBlockSize :: Optional 11 (Value Word64)

default = 0

fsLocations :: Optional 12 (Message LocatedBlocks)

supplied only if asked by client

data FileType Source

The type of a file (either directory, file or symbolic link)

Constructors

IS_DIR 
IS_FILE 
IS_SYMLINK 

data FilePermission Source

File or directory permission, same spec as POSIX.

Constructors

FilePermission 

Fields

fpPerm :: Required 1 (Value Word32)

actually a short, only 16 bits used

data LocatedBlock Source

Information about a block and its location.

Constructors

LocatedBlock 

Fields

lbExtended :: Required 1 (Message ExtendedBlock)
 
lbOffset :: Required 2 (Value Word64)

offset of first byte of block in the file

lbLocations :: Repeated 3 (Message DataNodeInfo)

locations ordered by proximity to client IP

lbCorrupt :: Required 4 (Value Bool)

True if all replicas of a block are corrupt. If the block has a few corrupt replicas, they are filtered and their locations are not part of this object.

lbToken :: Required 5 (Message Token)
 

data ExtendedBlock Source

Identifies a block.

Constructors

ExtendedBlock 

Fields

ebPoolId :: Required 1 (Value Text)

block pool id - globally unique across clusters

ebBlockId :: Required 2 (Value Word64)

the local id within a pool

ebGenerationStamp :: Required 3 (Value Word64)
 
ebNumBytes :: Optional 4 (Value Word64)

does not belong, here for historical reasons

data DataNodeId Source

Identifies a data node

Constructors

DataNodeId 

Fields

dnIpAddr :: Required 1 (Value Text)

IP address

dnHostName :: Required 2 (Value Text)

Host name

dnStorageId :: Required 3 (Value Text)

Storage ID

dnXferPort :: Required 4 (Value Word32)

Data streaming port

dnInfoPort :: Required 5 (Value Word32)

Info server port

dnIpcPort :: Required 6 (Value Word32)

IPC server port