Hbase导入错误

Hbase Import error

我正在尝试导入一个 table,它是在 0.98.4 上从另一个 hbase 运行ning 导出的。我导出如下 -

 hbase org.apache.hadoop.hbase.mapreduce.Driver export 'tblname' /path/

我正在尝试导入已使用 hadoop fs -put 放入 hdfs 的 table。当我 运行 下面的导入命令时,它给出错误 -

hbase org.apache.hadoop.hbase.mapreduce.Driver 导入 'tblname' /hdfs/path

2015-06-24 02:19:24,492 ERROR [main] security.UserGroupInformation: PriviledgedActionException as:deeshank (auth:SIMPLE) cause:java.io.FileNotFoundException: File does not exist: hdfs://localhost:54310/home/deeshank/DB/hbase_home/lib/hadoop-mapreduce-client-core-2.2.0.jar
Exception in thread "main" java.io.FileNotFoundException: File does not exist: hdfs://localhost:54310/home/deeshank/DB/hbase_home/lib/hadoop-mapreduce-client-core-2.2.0.jar
at org.apache.hadoop.hdfs.DistributedFileSystem.doCall(DistributedFileSystem.java:1110)
at org.apache.hadoop.hdfs.DistributedFileSystem.doCall(DistributedFileSystem.java:1102)
at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1102)
at org.apache.hadoop.mapreduce.filecache.ClientDistributedCacheManager.getFileStatus(ClientDistributedCacheManager.java:288)
at org.apache.hadoop.mapreduce.filecache.ClientDistributedCacheManager.getFileStatus(ClientDistributedCacheManager.java:224)
at org.apache.hadoop.mapreduce.filecache.ClientDistributedCacheManager.determineTimestamps(ClientDistributedCacheManager.java:93)
at org.apache.hadoop.mapreduce.filecache.ClientDistributedCacheManager.determineTimestampsAndCacheVisibilities(ClientDistributedCacheManager.java:57)
at org.apache.hadoop.mapreduce.JobSubmitter.copyAndConfigureFiles(JobSubmitter.java:264)
at org.apache.hadoop.mapreduce.JobSubmitter.copyAndConfigureFiles(JobSubmitter.java:300)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:387)
at org.apache.hadoop.mapreduce.Job.run(Job.java:1268)
at org.apache.hadoop.mapreduce.Job.run(Job.java:1265)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1265)
at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1286)
at org.apache.hadoop.hbase.mapreduce.Import.main(Import.java:535)

我不确定是什么导致了这个问题。我是运行ning haddop-2.6.0版本

hdfs://localhost:54310/为hadoop hdfs地址。您可以在您的应用中更改 属性 或将您的 jar 上传到 hdfs。

您显示 linux 文件系统的 ls 命令,您可以使用命令 :

"hdfs dfs -ls hdfs://localhost:9000/"

但是hdfs://localhost:9000/是hadoop hdfs文件系统的地址