Transfer files between Watson Studio Local and HDP cluster
You can transfer files between the HDP cluster and the Watson Studio Local cluster using Python utility functions or from a Python environment within your notebook.
To download files from the HDP cluster to Watson Studio Local:
dsx_core_utils.download_hdfs_file("https://9.87.654.321:50070/gateway/dsx/webhdfs/v1/", "/user/user1/sample_07.csv", "/user-home/1001/DSX_Projects/sample_07.txt")
To upload files from Watson Studio Local to the HDP cluster:
dsx_core_utils.upload_hdfs_file("https://9.87.654.321:50070/gateway/dsx/webhdfs/v1/", "/user-home/1001/DSX_Projects/sample_07.txt", "/user/user1/sample_07.csv" )