删除HDFS目录报错

来源:5-9 -Java版本wordcount功能重构

hwbaker

2018-03-02

objc[83630]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java (0x1062c24c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1072ed4e0). One of the two will be used. Which one is undefined.

log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

Exception in thread "main" java.lang.IllegalArgumentException: Wrong FS: hdfs://localhost:19000/output/wc, expected: file:///


写回答

1回答

Michael_PK

2018-03-02

看最后一句:你希望操作的是HDFS,但是实际是本地文件。你提供的信息看不到你干了啥

0
3
hwbaker
回复
Michael_PK
hdfs://localhost:19000/input/wc/hello.txt hdfs://localhost:19000/output/wc 这两个分别是输入文件和输出目录
2018-03-02
共3条回复

10小时入门大数据

【毕设】大数据零基础入门必备,轻松掌握Hadoop开发核心技能

1456 学习 · 656 问题

查看课程