ibis.HDFS.head

HDFS.head(hdfs_path, nbytes=1024, offset=0)

Retrieve the requested number of bytes from a file

Parameters:

hdfs_path : string

Absolute HDFS path

nbytes : int, default 1024 (1K)

Number of bytes to retrieve

offset : int, default 0

Number of bytes at beginning of file to skip before retrieving data

Returns:

head_data : bytes