hdfsread
- :
data =hdfsread(location)¶ - :
data =hdfsread(namenode, path)¶ Read a file from Hadoop HDFS via the WebHDFS REST API.
data = hdfsread (location)downloads the object at location and returns its raw bytes as a columnuint8vector. location may be one of:"hdfs://hostname[:port]/path"(MATLAB remote-data form)"hdfs:///path"or"hdfs:/path"(default host fromNEXUS_WEBHDFS_HOST)"webhdfs://hostname[:port]/path"- an absolute WebHDFS URL
"http(s)://host:port/webhdfs/v1/path"
data = hdfsread (namenode, path)uses an explicit namenode ("host","host:port", or"http://host:port") and an absolute HDFS path.When the location omits a port,
NEXUS_WEBHDFS_PORTis used (default"9870", the Hadoop 3 namenode HTTP port). The HTTP user isHADOOP_USER_NAME, falling back toUSER.A missing object raises
MATLAB:FileIO:InvalidRemoteLocation. Transport failures useMATLAB:webservices:*identifiers matchingwebread.