No such file or directory
程序员文章站
2022-03-01 14:54:32
...
hadoop fs -copyFromLocal /Users/ruigong/text.txt \ hdfs-rui/text2.txt
报错
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
copyFromLocal: ` hdfs-rui/text2.txt': No such file or directory: `file:/Users/ruigong/%20hdfs-rui/text2.txt'
其中%20表示空格。
修改为:
hadoop fs -copyFromLocal /Users/ruigong/text.txt \hdfs-rui/text2.txt
或
hadoop fs -copyFromLocal /Users/ruigong/text.txt hdfs-rui/text2.txt
则正常,文件存储在/Users/ruigong/hdfs-rui/text2.txt
推荐阅读
-
Oracle基础知识:如何确定 redo log file 大小
-
MySQL错误Incorrect file format解决方案
-
php file 函数
-
smarty include file 使用变量的方法_PHP教程
-
Accessing a File (Linux Kernel)
-
rmarkdown 编译成 pdf 文件时报错 LaTeX Error: File `xxx.sty' not found.
-
LaTex - tlmgr - Solve the problems such as ‘! LaTeX Error: File `pgfornament.sty‘ not found‘.
-
PHP File 文件格式
-
nginx File not found 错误
-
Latex&TeXstudio运行错误File `beamerthemeTianQing.sty‘ not found. \usetheme{TianQing}