• 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

  • 相关阅读:
    手动封装 时间选择器(只显示时分)
    页面跳转问题-button 确定提交按钮
    java String类型转 java.sql.time类型
    Mysql 时间处理
    微信-商城商品的图文/商品链接分享(后台数据合成图片+二维码生成)
    np.nan 1.0 2.0 df.apply
    pandas math.isnan
    df.apply
    pandas多条件行数据筛选
    pandas cumsum/sum calc percentage
  • 原文地址:https://www.cnblogs.com/alex-blog/p/3262681.html
Copyright © 2020-2023  润新知