Associating Tables of a Schema to a Namespace

After you enable namespace mapping on a Phoenix schema that already has tables, you can migrate the tables to an HBase namespace. The namespace directory that contains the migrated tables inherits the schema name.

For example, if the schema name is store1, then the full path to the namespace is $hbase.rootdir/data/store1. System tables are migrated to the namespace automatically during the first connection after enabling namespace properties.

Associating table in a non-customized environment without Kerberos

You can run an appropriate command to associate a table in a non-customized environment without Kerberos.

Run the following command to associate a table:

phoenix-psqlZooKeeper_hostname-mSchema_name.table_name

Associating table in a customized Kerberos environment

You can run an appropriate command to associate a table in a non-customized environment without Kerberos.

Run the following command to associate a table:

phoenix-psqlZooKeeper_hostname-mschema_name.table_name