• Hadoop异常


    org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://xxx:49000/user/hadoop/input
            at org.apache.hadoop.mapred.FileInputFormat.listStatus(FileInputFormat.java:197)
            at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:208)
            at org.apache.hadoop.mapred.JobClient.writeOldSplits(JobClient.java:1081)
            at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:1073)
            at org.apache.hadoop.mapred.JobClient.access$700(JobClient.java:179)
            at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:983)
            at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:936)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAs(Subject.java:396)
            at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190)
            at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:936)
            at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:910)
            at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1353)
            at org.apache.hadoop.examples.Grep.run(Grep.java:69)
            at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
            at org.apache.hadoop.examples.Grep.main(Grep.java:93)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
            at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
            at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:64)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.hadoop.util.RunJar.main(RunJar.java:160)

    解决:

    需要执行上传的命令即可:
    hadoop fs -put input/ input

  • 相关阅读:
    DOM操作的性能优化
    jquery+ajax 实现搜索框提示
    js家的排序算法
    javascript实现集合Set、字典Dictionary、HashTable
    js创建链表
    js优先队列的定义和使用
    js将正整数转化为二进制
    在CSS中水平居中和垂直居中:完整的指南
    原生JS发送Ajax请求、JSONP
    操作系统——笔试面试高频题
  • 原文地址:https://www.cnblogs.com/alex-blog/p/3262681.html
Copyright © 2020-2023  润新知