ls is like dir in windows. It shows you the content of a specific folder.
hdfs is Hadoop Distributed File System. In your example the output is like a ls -l
For your 2nd question:
Your file isn't in your hdfs.
If you do this:
hdfs dfs -ls
There shouldn't be a titles.csv file. In fact, you have done this in your first picture. There are no files at all (except maybe there are invisible files).
If you do this:
hdfs dfs -ls titles.csv
The output would be: "No such file or directory"
You should use just:
发布评论
评论(1)
LS
就像Windows中的dir
。它向您显示特定文件夹的内容。HDFS是Hadoop分布式文件系统。 的示例中
在您
您的文件不在您的HDF中。
如果这样做:
不应该有titles.csv文件。实际上,您已经在第一张图片中完成了此操作。根本没有文件(也许有隐形文件除外)。
如果您这样做:
输出将是:“没有这样的文件或目录”
您应该只使用:
进一步信息:
https://man7.org /linux/man-pages/man1/ls.1.html
https://hadoop.apache.org/docs/r2.7.0/hadoop-project-dist/hadoop-common/FileSystemShell.html#ls
ls
is likedir
in windows. It shows you the content of a specific folder.hdfs is Hadoop Distributed File System. In your example the output is like a
ls -l
For your 2nd question:
Your file isn't in your hdfs.
If you do this:
There shouldn't be a titles.csv file. In fact, you have done this in your first picture. There are no files at all (except maybe there are invisible files).
If you do this:
The output would be: "No such file or directory"
You should use just:
For Further informationen:
https://man7.org/linux/man-pages/man1/ls.1.html
https://hadoop.apache.org/docs/r2.7.0/hadoop-project-dist/hadoop-common/FileSystemShell.html#ls