我尝试了解此hadoop bash命令。
hdfs dfs -ls -R /file/path > log_$(date +"%y-%m-%d")_file.txt
我知道
hdfs dfs -ls -r /file/path
是一个简单的递归ls
命令。但是,这个bash命令中的>
有什么作用?埃里亚斯
最佳答案
它是标准输出重定向到文件。因此,命令将-ls的结果保存在log_ $ current_date_file.txt文件中
关于bash - Hadoop -ls命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60753398/