ibis.HDFS.head

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

Retrieve the requested number of bytes from a file

Parameters
hdfs_pathstring

Absolute HDFS path

nbytesint, default 1024 (1K)

Number of bytes to retrieve

offsetint, default 0

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

Returns
head_databytes