0
例の問題:私はで入力ファイルを置くMapReduceのWORDCOUNT私はここからのApacheのMapReduce 2.7の基本的なWORDCOUNTの例を実行しようとしていた
:/ユーザー/ hadoopLearning/WORDCOUNT /入力/ 出力パス:/ユーザー/ hadoopLearning/WORDCOUNT /出力/
その後、私は、次のコマンドを実行しました。しかし
hadoop jar wc.jar WordCount /user/hadoopLearning/WordCount/input/file01 /user/hadoopLearning/WordCount/output
を実行時に次のエラーが表示されます。
Exception in thread "main" org.apache.hadoop.mapred.FileAlreadyExistsException: **Output directory** hdfs://sandbox.hortonworks.com:8020/user/hadoopLearning/WordCount/**input**/file01 already exists
私はコードを1つ書いておらず、ApacheのWebサイト上のすべての場所からコピーしました。
私はエラーをよく理解していますが、出力ディレクトリが既に存在し、スタックトレースに入力ディレクトリのパスを示しているというエラーをよく見れば、
誰でも助けてください。私はハープの分野の初心者です。前もって感謝します。