gpt4 book ai didi

hadoop - HDP上的HBase增量备份失败

转载 作者:行者123 更新时间:2023-12-02 20:55:49 26 4
gpt4 key购买 nike

在HBase中创建了一个“测试”表以测试HDP上的增量金属备份功能。

    hbase(main):002:0> create 'test', 'cf'
0 row(s) in 1.4690 seconds

hbase(main):003:0> put 'test', 'row1', 'cf:a', 'value1'
0 row(s) in 0.1480 seconds

hbase(main):004:0> put 'test', 'row2', 'cf:b', 'value2'
0 row(s) in 0.0070 seconds

hbase(main):005:0> put 'test', 'row3', 'cf:c', 'value3'
0 row(s) in 0.0120 seconds

hbase(main):006:0> put 'test', 'row3', 'cf:c', 'value4'
0 row(s) in 0.0070 seconds

hbase(main):010:0> scan 'test'
ROW COLUMN+CELL
row1 column=cf:a, timestamp=1317945279379, value=value1
row2 column=cf:b, timestamp=1317945285731, value=value2
row3 column=cf:c, timestamp=1317945301466, value=value4
3 row(s) in 0.0250 seconds

现在我已经使用下面的完整备份,成功了
hbase backup create full hdfs://12.3.4.56:8020/tmp/full test -w 3

现在,我想在上面的“测试”表上测试“增量金属”备份。所以我做了什么:
put 'test', 'row123', 'cf:a', 'newValue'

现在,当我执行以下操作时,它会发疯
hbase backup create incremental hdfs://12.3.4.56:8020/tmp/full

错误:
Backup session finished. Status: FAILURE
2017-06-14 09:52:58,853 ERROR [main] util.AbstractHBaseTool: Error running command-line tool
org.apache.hadoop.ipc.RemoteException(java.lang.NullPointerException):
at org.apache.hadoop.hbase.backup.master.FullTableBackupProcedure.cleanupTargetDir(FullTableBackupProcedure.java:205)
at org.apache.hadoop.hbase.backup.master.FullTableBackupProcedure.failBackup(FullTableBackupProcedure.java:279)
at org.apache.hadoop.hbase.backup.master.IncrementalTableBackupProcedure.executeFromState(IncrementalTableBackupProcedure.java:164)
at org.apache.hadoop.hbase.backup.master.IncrementalTableBackupProcedure.executeFromState(IncrementalTableBackupProcedure.java:54)
at org.apache.hadoop.hbase.procedure2.StateMachineProcedure.execute(StateMachineProcedure.java:107)
at org.apache.hadoop.hbase.procedure2.Procedure.doExecute(Procedure.java:443)
at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execProcedure(ProcedureExecutor.java:934)
at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execLoop(ProcedureExecutor.java:736)
at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execLoop(ProcedureExecutor.java:689)
at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.access$200(ProcedureExecutor.java:73)
at org.apache.hadoop.hbase.procedure2.ProcedureExecutor$1.run(ProcedureExecutor.java:416)

更新:

在此下面的链接中,提到“备份和还原应以hbase super 用户(默认情况下称为“hbase”)运行。这是什么意思?我只是从具有root用户访问权限的简单用户运行上述back命令。请提出建议。

https://hortonworks.com/blog/coming-hdp-2-5-incremental-backup-restore-apache-hbase-apache-phoenix/

我试图更改hdfs文件的许可权(tmp / full),但没有用。

最佳答案

我正在使用Kerberos,因此在将kinit用作运行hbase的主体后,增量备份已为我工作。

如果您不使用Kerberos,请首先切换到HBase用户(例如'su-hbase')。

关于hadoop - HDP上的HBase增量备份失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44546878/

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