Skip to content

hdfswrite

io · scripts/io/hdfswrite.m

: hdfswrite (location, data)
: hdfswrite (namenode, path, data)

Write data to Hadoop HDFS via the WebHDFS REST API.

hdfswrite (location, data) creates or overwrites the object at location. location uses the same URL forms as hdfsread. data may be a character vector, string scalar, or uint8 array.

hdfswrite (namenode, path, data) writes to an absolute HDFS path on namenode.

Environment variables match hdfsread (NEXUS_WEBHDFS_PORT, NEXUS_WEBHDFS_HOST, HADOOP_USER_NAME).