CData Python Connector for HDFS

Build 24.0.9060

DownloadFile

Open and read a file.

Input

Name Type Required Description
Path String True The path of the file which will be opened.
Offset Integer False The offset from which the reading will start.
Length Integer False The amount of how much will be read from the file.
BufferSize Integer False The internal size of the buffer which will be used for the reading of the file
WriteToFile String False The local location of the file where the output will be written to.
Encoding String False The FileData input encoding type.

The allowed values are NONE, BASE64.

The default value is NONE.

Result Set Columns

Name Type Description
Output String The file's content. Output will be displayed only if WriteToFile and FileStream are not set.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060