Using the DSEFS REST interface

DSEFS provides a REST interface that implements all the commands from WebHDFS.

DSEFS provides a REST interface that implements the commands from WebHDFS.

The REST interface is enabled on all DSE nodes running DSEFS. It is available at the following base URI: http://node hostname or IP address:5598/webhdfs/v1

For example from a terminal using the curl command:

curl -L -X PUT 'localhost:5598/webhdfs/v1/fs/a/b/c/d/e?op=MKDIRS'
$ curl -L -X PUT -T logfile.txt '127.0.0.1:5598/webhdfs/v1/fs/log?op=CREATE&overwrite=true&blocksize=50000&rf=1'
$ curl -L -X POST logfile.txt 'localhost:5598/webhdfs/v1/fs/log?op=APPEND'

Or from the DSE Spark shell:

val rdd1 = sc.textFile("webhdfs://localhost:5598/webhdfs/v1/fs/log")