A, hadoop file operations
1 Ls
hadoop fs -ls /
2、Put
hadoop fs -put xx /path
3、Mkdir
hadoop fs -mkdir
4, delete files from HDFS, you can use the following command:
hadoop fs -rm -r -skipTrash /path_to_file/file_name
5, from HDFS delete a folder, you can use the following command:
hadoop fs -rm -r -skipTrash /folder_name
6、mv
hadoop fs -mv
Two, TF access Hadoop file
file = 'hdfs://x.x.x.x:9000/x-path/xx.tfrecord'