gpt4 book ai didi

java - Mapreduce Hbase 文件未找到异常

转载 作者:可可西里 更新时间:2023-11-01 16:55:59 25 4
gpt4 key购买 nike

我正在尝试使用 mapreduce 将数据填充到 Hbase,但它一次又一次地抛出以下异常:-

15/04/29 21:35:37 WARN mapreduce.JobSubmitter: Hadoop command-line option parsing not performed. Implement the Tool interface and execute your application with ToolRunner to remedy this.
15/04/29 21:35:38 INFO mapreduce.JobSubmitter: Cleaning up the staging area file:/home/hduser/hadoopDir/mapred/staging/hduser2144453758/.staging/job_local2144453758_0001
Exception in thread "main" java.io.FileNotFoundException: File does not exist: hdfs://localhost:54310/usr/lib/hbase-0.98.12-hadoop2/lib/hbase-protocol-0.98.12-hadoop2.jar

给定的 jar 在路径中并提供给所有节点。它仍然继续给出错误。感谢您的帮助。

命令是:-

    $ hadoop jar HBase-BulkImport.jar org.apache.hadoop.conf.Configuration.Driver /user/466708/workexample/ output/ NBAFinal2010

日志:-

 15/04/29 21:35:37 WARN mapreduce.JobSubmitter: Hadoop command-line option parsing not performed. Implement the Tool interface and execute your application with ToolRunner to remedy this.
15/04/29 21:35:38 INFO mapreduce.JobSubmitter: Cleaning up the staging area file:/home/hduser/hadoopDir/mapred/staging/hduser2144453758/.staging/job_local2144453758_0001
Exception in thread "main" java.io.FileNotFoundException: File does not exist: hdfs://localhost:54310/usr/lib/hbase-0.98.12-hadoop2/lib/hbase-protocol-0.98.12-hadoop2.jar

最佳答案

将您的 hbase-protocol-0.98.12-hadoop2.jar 从本地文件系统上传到 hdfs 位置,如下所示:

hdfs dfs -mkdir -p /usr/lib/hbase-0.98.12-hadoop2/lib
hdfs dfs -put /usr/lib/hbase-0.98.12-hadoop2/lib/hbase-protocol-0.98.12-hadoop2.jar /usr/lib/hbase-0.98.12-hadoop2/lib/hbase-protocol-0.98.12-hadoop2.jar

现在,尝试运行您的作业。

关于java - Mapreduce Hbase 文件未找到异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29949245/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com