我正在尝试导入一个从0.98.4上运行的另一个hbase导出的表。我导出如下 -
hbase org.apache.hadoop.hbase.mapreduce.Driver export 'tblname' /path/
我正在尝试导入这个已经使用hadoop fs -put放入hdfs的表。当我运行下面的import命令时,它会给出错误 -
hbase org.apache.hadoop.hbase.mapreduce.Driver import' tblname' / HDFS /路径
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$17.doCall(DistributedFileSystem.java:1110)
at org.apache.hadoop.hdfs.DistributedFileSystem$17.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$10.run(Job.java:1268)
at org.apache.hadoop.mapreduce.Job$10.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)
我不确定导致此问题的原因。我正在运行haddop-2.6.0版本。
答案 0 :(得分:1)
hdfs:// localhost:54310 /是hadoop hdfs地址。你可以在你的应用程序中更改属性或在hdfs上传你的jar。
显示linux文件系统的ls命令,可以使用命令:
“hdfs dfs -ls hdfs:// localhost:9000 /”
但是hdfs:// localhost:9000 /是hadoop hdfs文件系统的地址。