我有点怀疑你在刷屏

请问,多台集群备份数据的时候能备份在某一台机器上面吗?

Elasticsearch | 作者 socoo123 | 发布于2016年10月24日 | 阅读数:8639

最近想做一个es的集群备份,使用es的__snapshot属性来弄,但是好像多机的时候会报错,报错信息如下:
{
"error": {
"root_cause": [
{
"type": "repository_verification_exception",
"reason": "[my_backup] [E31tFQYgSvqogu-jxMf8Uw, 'RemoteTransportException[[es4][10.200.2.95:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es4}{E31tFQYgSvqogu-jxMf8Uw}{10.200.2.95}{10.200.2.95:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];'], [YsmTZXZfQrqoXhcwGjLl9A, 'RemoteTransportException[[es3][10.200.2.79:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es3}{YsmTZXZfQrqoXhcwGjLl9A}{10.200.2.79}{10.200.2.79:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];']]"
}
],
"type": "repository_verification_exception",
"reason": "[my_backup] [E31tFQYgSvqogu-jxMf8Uw, 'RemoteTransportException[[es4][10.200.2.95:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es4}{E31tFQYgSvqogu-jxMf8Uw}{10.200.2.95}{10.200.2.95:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];'], [YsmTZXZfQrqoXhcwGjLl9A, 'RemoteTransportException[[es3][10.200.2.79:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es3}{YsmTZXZfQrqoXhcwGjLl9A}{10.200.2.79}{10.200.2.79:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];']]"
},
"status": 500
}

此外,多台集群来备份的话,copy出去以后在镜像导回去也麻烦,还有这个es的镜像能换到其他的es集群里面recovery吗?
已邀请:

hailin0

赞同来自: fairyland

我的找出问题了,用户的uid和gid必须保持一致

stab - freshman

赞同来自:

可以试试HDFS

hailin0

赞同来自:

遇到跟你一样的问题了,目录本身配置好了nfs也不行  请问你怎么解决的呢?

fairyland

赞同来自:

你好。我现在也想要在集群间做个数据备份。我的uid和gid是一致的,可还是报这个错。能请教一下吗

要回复问题请先登录注册