ElasticSearch数据迁移报错记录

遇到的问题

1、创建仓库报错

{“error”:{“root_cause”:[{“type”:“repository_verification_exception”,“reason”:"[my_backup] [[mu3vPb-eTBeom4ElNsSeoQ, ‘RemoteTransportException[[node-1][10.10.77.100:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/home/es/elasticsearch-5.1.1/data/bak] cannot be accessed on the node [{node-1}{mu3vPb-eTBeom4ElNsSeoQ}{gCm1zrtWT12WzrjFiVDGrQ}{10.10.77.100}{10.10.77.100:9300}]. This might indicate that the store [/home/es/elasticsearch-5.1.1/data/bak] 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];’], [h9DjVRPbSOqTUVfssXJ_IQ, ‘RemoteTransportException[[node-3][10.10.77.107:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/home/es/elasticsearch-5.1.1/data/bak] cannot be accessed on the node [{node-3}{h9DjVRPbSOqTUVfssXJ_IQ}{3VbYw7F8Q2mAXMw8y_C78Q}{10.10.77.107}{10.10.77.107:9300}]. This might indicate that the store [/home/es/elasticsearch-5.1.1/data/bak] 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] [[mu3vPb-eTBeom4ElNsSeoQ, ‘RemoteTransportException[[node-1][10.10.77.100:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/home/es/elasticsearch-5.1.1/data/bak] cannot be accessed on the node [{node-1}{mu3vPb-eTBeom4ElNsSeoQ}{gCm1zrtWT12WzrjFiVDGrQ}{10.10.77.100}{10.10.77.100:9300}]. This might indicate that the store [/home/es/elasticsearch-5.1.1/data/bak] 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];’], [h9DjVRPbSOqTUVfssXJ_IQ, ‘RemoteTransportException[[node-3][10.10.77.107:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/home/es/elasticsearch-5.1.1/data/bak] cannot be accessed on the node [{node-3}{h9DjVRPbSOqTUVfssXJ_IQ}{3VbYw7F8Q2mAXMw8y_C78Q}{10.10.77.107}{10.10.77.107:9300}]. This might indicate that the store [/home/es/elasticsearch-5.1.1/data/bak] 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}

又报错

{“error”:{“root_cause”:[{“type”:“exception”,“reason”:“failed to create blob container”}],“type”:“exception”,“reason”:“failed to create blob container”,“caused_by”:{“type”:“access_denied_exception”,“reason”:"/home/es/elasticsearch-5.1.1/data/bak/tests-hPPRVvLZQlKFEpgeauoTtA"}},“status”:500}

上述问题,大多数是因为没有切换到es的用户执行相关命令造成的。

问题:
解决umount.nfs: /data: device is busy 问题
https://www.cnblogs.com/saneri/p/5465718.html

更详细的数据迁移请参考本仙女写的详细教程:
https://blog.csdn.net/wzz87/article/details/106896347/

你可能感兴趣的:(大数据相关技术应用记录,ELK)