cat: `output/*': No such file or directory
时间: 2023-10-30 08:05:25 浏览: 51
This error message means that the "cat" command is trying to read the contents of a directory called "output", but it does not exist. This could be because the directory was deleted or renamed, or because the command was mistyped. To resolve the error, you can either create the "output" directory if it does not exist, or check the spelling of the command and directory name to make sure they are correct.
相关问题
hadoop cat: './output/*': No such file or directory
这个错误的原因是 Hadoop 找不到指定的文件或目录。可能的原因有以下几个:
1. 您指定的路径有误,文件或目录不存在。您可以通过运行 `hadoop fs -ls <path>` 命令来检查该路径下是否存在您要读取的文件或目录。
2. 您没有权限访问该文件或目录。您可以通过运行 `hadoop fs -ls <path>` 命令来查看该文件或目录的权限信息,确保您拥有访问权限。
3. 您的命令语法有误。请确保您输入的命令语法正确,包括文件路径和命令选项的书写方式。
您可以仔细检查以上可能的原因,找到问题所在并进行修复,然后再次运行 `hadoop fs -cat` 命令。
root@master:/usr/local/hadoop-2.9.2# bin/hdfs dfs -cat output/* cat: `output/*': No such file or directory
这个错误的原因是 Hadoop 找不到指定的文件或目录。可能的原因有以下几个:
1. 您指定的路径有误,文件或目录不存在。您可以通过运行 `hdfs dfs -ls <path>` 命令来检查该路径下是否存在您要读取的文件或目录。
2. 您没有权限访问该文件或目录。您可以通过运行 `hdfs dfs -ls <path>` 命令来查看该文件或目录的权限信息,确保您拥有访问权限。
3. 您的命令语法有误。请确保您输入的命令语法正确,包括文件路径和命令选项的书写方式。
您可以仔细检查以上可能的原因,找到问题所在并进行修复,然后再次运行 `hdfs dfs -cat` 命令。