Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> priviledgedactionexception export error in metadata


Copy link to this message
-
priviledgedactionexception export error in metadata
evironment
[hbase@h46 bin]$ hadoop version
Hadoop 1.0.2
Subversion
https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0.2 -r
1304954
Compiled by hortonfo on Sat Mar 24 23:58:21 UTC 2012
>From source with checksum c198b04303cfa626a38e13154d2765a9
[hbase@h46 bin]$ hbase version
print nothing,hbase version is 0.92

[hbase@h46 ~]$ cat /etc/redhat-release
CentOS release 6.3 (Final)
[hbase@h46 ~]$ uname -a
Linux h46 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64
x86_64 x86_64 GNU/Linux

I want to back up .META. and -ROOT- to HDFS or local disk,but encountered a
strange problem:

[hbase@h46 hbase]$ hbase org.apache.hadoop.hbase.mapreduce.Export .META.
meta_1212201510
12/12/20 15:34:53 WARN util.NativeCodeLoader: Unable to load native-hadoop
library for your platform... using builtin-java classes where applicable
12/12/20 15:34:54 INFO mapred.JobClient: Cleaning up the staging area
file:/tmp/hadoop-hbase/mapred/staging/hbase-149708024/.staging/job_local_0001
12/12/20 15:34:54 ERROR security.UserGroupInformation:
PriviledgedActionException as:hbase cause:java.io.IOException: Expecting at
least one region.
Exception in thread "main" java.io.IOException: Expecting at least one
region.
        at
org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.getSplits(TableInputFormatBase.java:135)
        at
org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:962)
        at
org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:979)
        at org.apache.hadoop.mapred.JobClient.access$600(JobClient.java:174)
        at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:897)
        at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:850)
        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:1083)
        at
org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:850)
        at org.apache.hadoop.mapreduce.Job.submit(Job.java:465)
        at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:495)
        at org.apache.hadoop.hbase.mapreduce.Export.main(Export.java:178)

while if it is a normal table, it's ok:
[hbase@h46 bin]$ hbase org.apache.hadoop.hbase.mapreduce.Export a_rule
arule_1212201510
12/12/20 15:44:48 WARN util.NativeCodeLoader: Unable to load native-hadoop
library for your platform... using builtin-java classes where applicable
12/12/20 15:44:49 INFO mapred.JobClient: Running job: job_local_0001
12/12/20 15:44:49 INFO util.ProcessTree: setsid exited with exit code 0
12/12/20 15:44:49 INFO mapred.Task:  Using ResourceCalculatorPlugin :
org.apache.hadoop.util.LinuxResourceCalculatorPlugin@13b4c982
12/12/20 15:44:49 INFO mapred.Task: Task:attempt_local_0001_m_000000_0 is
done. And is in the process of commiting
12/12/20 15:44:49 INFO mapred.LocalJobRunner:
12/12/20 15:44:49 INFO mapred.Task: Task attempt_local_0001_m_000000_0 is
allowed to commit now
12/12/20 15:44:49 INFO output.FileOutputCommitter: Saved output of task
'attempt_local_0001_m_000000_0' to arule_1212201510
12/12/20 15:44:50 INFO mapred.JobClient:  map 0% reduce 0%
12/12/20 15:44:52 INFO mapred.LocalJobRunner:
12/12/20 15:44:52 INFO mapred.Task: Task 'attempt_local_0001_m_000000_0'
done.
12/12/20 15:44:53 INFO mapred.JobClient:  map 100% reduce 0%
12/12/20 15:44:53 INFO mapred.JobClient: Job complete: job_local_0001
12/12/20 15:44:53 INFO mapred.JobClient: Counters: 12
12/12/20 15:44:53 INFO mapred.JobClient:   File Output Format Counters
12/12/20 15:44:53 INFO mapred.JobClient:     Bytes Written=3755
12/12/20 15:44:53 INFO mapred.JobClient:   File Input Format Counters
12/12/20 15:44:53 INFO mapred.JobClient:     Bytes Read=0
12/12/20 15:44:53 INFO mapred.JobClient:   FileSystemCounters
12/12/20 15:44:53 INFO mapred.JobClient:     FILE_BYTES_READ=3103205
12/12/20 15:44:53 INFO mapred.JobClient:     FILE_BYTES_WRITTEN=3180882
12/12/20 15:44:53 INFO mapred.JobClient:   Map-Reduce Framework
12/12/20 15:44:53 INFO mapred.JobClient:     Map input records=59
12/12/20 15:44:53 INFO mapred.JobClient:     Physical memory (bytes)
snapshot=0
12/12/20 15:44:53 INFO mapred.JobClient:     Spilled Records=0
12/12/20 15:44:53 INFO mapred.JobClient:     Total committed heap usage
(bytes)=247136256
12/12/20 15:44:53 INFO mapred.JobClient:     CPU time spent (ms)=0
12/12/20 15:44:53 INFO mapred.JobClient:     Virtual memory (bytes)
snapshot=0
12/12/20 15:44:53 INFO mapred.JobClient:     SPLIT_RAW_BYTES=58
12/12/20 15:44:53 INFO mapred.JobClient:     Map output records=59

any one can give me some advise? Thank you!

Andy Zhou
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB