Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Actualiza las bibliotecas cliente
En esta página, se explica cómo actualizar una biblioteca cliente de Cloud Bigtable instalada previamente. Si necesitas instalar una biblioteca cliente por primera vez, sigue las instrucciones correspondientes al lenguaje de programación que prefieras en Bibliotecas cliente de Cloud Bigtable.
Cliente de HBase para Java
Si actualizas desde la versión1.0 o posterior del cliente HBase para Java, el único cambio que debes hacer es actualizar el número de versión en la configuración. No debes actualizar el código.
Si actualizas desde una versión del cliente de HBase anterior a la 1.0, sigue estos pasos:
Actualiza tus dependencias para usar la biblioteca cliente más reciente y quitar los artefactos que ya no necesitas:
Quita los artefactos bigtable-hbase-1.0, bigtable-hbase-1.1 y bigtable-hbase-1.2 de tus dependencias si están presentes.
Quita netty-tcnative-boringssl-static de tus dependencias, a menos que otra parte de tu aplicación lo requiera.
Agrega uno de los siguientes artefactos a tus dependencias, según tu caso de uso. Las versiones 2.x incluyen un cliente asíncrono de HBase que las versiones 1.x no tienen.
bigtable-hbase-1.x o bigtable-hbase-2.x: Úsalo para aplicaciones independientes en las que tienes el control de tus dependencias.
bigtable-hbase-1.x-hadoop o bigtable-hbase-2.x-hadoop: Se usa en entornos de Hadoop.
bigtable-hbase-1.x-shaded o bigtable-hbase-2.x-shaded: Úsalo en entornos que no sean de Hadoop y que requieran versiones anteriores de componentes, como protobuf o Guava.
Actualiza tu configuración para conectarte con Bigtable.
Si los parámetros de configuración en tu código o en un archivo hbase-site.xml incluyen un valor para hbase.client.connection.impl, cambia el valor a com.google.cloud.bigtable.hbase1_x.BigtableConnection.
Si usas la clase BigtableConnection directamente, actualiza tu código para usar com.google.cloud.bigtable.hbase1_x.BigtableConnection en su lugar.
Si usas un archivo hbase-site.xml para conectarte a Bigtable, haz lo siguiente:
Agrega la propiedad google.bigtable.instance.id si no está presente. Configura el valor de la propiedad con el ID de tu instancia.
Quita la propiedad google.bigtable.cluster.name si está presente.
Quita la propiedad google.bigtable.zone.name si está presente.
Si te conectas a Bigtable mediante una llamada a BigtableConfiguration.connect(), actualiza tu código como se muestra en el siguiente ejemplo:
// Old codeBigtableConfiguration.connect(projectId,zone,clusterId);// New codeBigtableConfiguration.connect(projectId,instanceId);
Vuelve a implementar la aplicación en todos los entornos, incluido el de desarrollo local, de pruebas, de etapas y de producción.
En junio de 2016, el cliente Go cambió su forma de conectarse con Bigtable. En lugar de especificar un ID de clúster y una zona, especifica un ID de la instancia. Para encontrar el ID de la instancia, visita laGoogle Cloud consola.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-09 (UTC)"],[[["\u003cp\u003eThis guide details how to upgrade existing Cloud Bigtable client libraries, specifically for the HBase client for Java and the Go client.\u003c/p\u003e\n"],["\u003cp\u003eUpgrading the HBase client for Java from version 1.0 or later requires only a version number update in the configuration, while pre-1.0 upgrades require dependency and configuration updates.\u003c/p\u003e\n"],["\u003cp\u003eFor pre-1.0 HBase upgrades, you will have to remove certain artifacts, add new ones, change specific configurations and deploy your updated application.\u003c/p\u003e\n"],["\u003cp\u003eThe Go client update from June 2016 requires switching from specifying a cluster ID and zone to specifying an instance ID in the code, with examples provided.\u003c/p\u003e\n"],["\u003cp\u003eBoth the Java and Go clients have their release histories on their respective Github repos.\u003c/p\u003e\n"]]],[],null,["# Upgrading client libraries\n==========================\n\nThis page explains how to upgrade a previously installed Cloud Bigtable\nclient library. If you need to install a client library for the first time,\nfollow the instructions for your preferred programming language at\n[Cloud Bigtable Client Libraries](/bigtable/docs/reference/libraries).\n\nHBase client for Java\n---------------------\n\nIf you're upgrading from version **1.0 or later** of the [HBase client for Java](https://github.com/googleapis/java-bigtable-hbase), the only change you need to make is to update the version number\nin the configuration. You don't need to update your code.\n\nIf you're upgrading from **pre-1.0** HBase clients, complete the following\nsteps:\n\n1. **Update your dependencies** to use the newest client library and remove\n artifacts that you no longer need:\n\n - Remove the `bigtable-hbase-1.0`, `bigtable-hbase-1.1`, and\n `bigtable-hbase-1.2` artifacts from your dependencies if they are present.\n\n - Remove `netty-tcnative-boringssl-static` from your dependencies\n unless another part of your application requires it.\n\n - Add one of the following artifacts to your dependencies, depending on\n your use case. The `2.x` versions include an HBase async client that the\n `1.x` versions don't have.\n\n - `bigtable-hbase-1.x` or `bigtable-hbase-2.x`: Use for standalone applications where you are in control of your dependencies.\n - `bigtable-hbase-1.x-hadoop` or `bigtable-hbase-2.x-hadoop`: Use in Hadoop environments.\n - `bigtable-hbase-1.x-shaded` or `bigtable-hbase-2.x-shaded`: Use in environments other than Hadoop that require earlier versions of components such as [protobuf](https://github.com/google/protobuf) or [Guava](https://github.com/google/guava).\n2. **Update your configuration settings** for connecting to\n Bigtable.\n\n - If the configuration settings in your code or in an `hbase-site.xml`\n file include a value for `hbase.client.connection.impl`, change\n the value to `com.google.cloud.bigtable.hbase1_x.BigtableConnection`.\n\n - If you use the `BigtableConnection` class directly, update your code to\n use `com.google.cloud.bigtable.hbase1_x.BigtableConnection` instead.\n\n - If you use an `hbase-site.xml` file to connect to Bigtable:\n\n - Add the property `google.bigtable.instance.id` if it is not present. Set the property value to your instance ID.\n - Remove the property `google.bigtable.cluster.name` if it is present.\n - Remove the property `google.bigtable.zone.name` if it is present.\n - If you connect to Bigtable by calling\n `BigtableConfiguration.connect()`, update your code as shown in the\n following example:\n\n // Old code\n BigtableConfiguration.connect(projectId, zone, clusterId);\n\n // New code\n BigtableConfiguration.connect(projectId, instanceId);\n\n3. **Redeploy your application** in all of your environments, including local\n development, testing, staging, and production.\n\nFor a list of releases for the HBase client for Java, see the\n[release history on GitHub](https://github.com/googleapis/java-bigtable-hbase/releases).\n\nGo\n---\n\nIn June 2016, the Go client changed the way to connect to\nBigtable. Instead of specifying a cluster ID and zone, specify\nan instance ID. You can find the instance ID by [visiting the\nGoogle Cloud console](https://console.cloud.google.com/bigtable/instances).\n\nTo download the client library, visit the [code repository on GitHub](https://github.com/GoogleCloudPlatform/google-cloud-go).\n\nUpdate your code as shown below: \n\n // Old code\n adminClient, err := bigtable.NewAdminClient(ctx, project, zone, cluster)\n client, err := bigtable.NewClient(ctx, project, zone, cluster)\n\n // New code\n adminClient, err := bigtable.NewAdminClient(ctx, project, instance)\n client, err := bigtable.NewClient(ctx, project, instance)\n\nFor a list of releases for the Go client library, see the\n[release history on GitHub](https://github.com/GoogleCloudPlatform/google-cloud-go/releases).\n\nWhat's next\n-----------\n\n- Read more about [client libraries](/bigtable/docs/reference/libraries).\n- Learn more about how Bigtable [integrates with other tools and Google Cloud services](/bigtable/docs/integrations)."]]