refresh_hfiles not working

0

Hi I have a EMR with Hbase on S3 storage mode.I have a read replica cluster pointing to same S3 bucket. Now when I add record in primary cluster and flush table on primary, and then run refresh_hfiles on secondary cluster, I am getting error.

hbase:008:0> refresh_hfiles Traceback (most recent call last): NameError (undefined local variable or method `refresh_hfiles' for #HBaseReceiver:0x4ede8888) Did you mean? refresh_meta

is refresh_hfiles not supported? If not whats the way to reflect updates hfiles on read replica cluster?

1 Respuesta
3

Hi,

Seems the command is unsupported in your EMR version where the hbase deployed could be deprecated in the later release.

You can run the below command outside the hbase shell to refresh hfiles flushed for a table in primary.

Sync storefile table in an online region:

hbase org.apache.hadoop.hbase.client.example.RefreshHFilesClient <table>

Reference

[1] - https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-s3.html#emr-hbase-s3-hfile-tracking

AWS
INGENIERO DE SOPORTE
respondido hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas