• Post author:
  • Post category:HBase
  • Post last modified:March 27, 2024
  • Reading time:3 mins read

In this tutorial, we will see how to list all user HBase tables from the shell and will see syntax, usage, and practice with some examples.

Listing All User Tables from HBase Shell

Use list command to show all user tables in the HBase. List also supports optional regular expression to filter the output. The syntax to list the tables is as follows.

Syntax: list ‘<namespace>:<regular expression>’

Examples:

To show all tables just use list command without any arguments. Namespace will be shown on results when the table belongs to one. None of our tables belongs to any namespace, hence we are not seeing it.

hbase list tables command

Alternatively, you can also use qualify namespace along with the table name. When the table is not found it returns 0 rows.

List – Filter results with regular expression

In case if you want to filter the results you can use regular expression as shown below

hbase list tables with regular expression

Besides these above examples, there are multiple options you can use to list tables. I will leave these to you to explore.

Next, Let’s see how to describe the HBase table

Naveen Nelamali

Naveen Nelamali (NNK) is a Data Engineer with 20+ years of experience in transforming data into actionable insights. Over the years, He has honed his expertise in designing, implementing, and maintaining data pipelines with frameworks like Apache Spark, PySpark, Pandas, R, Hive and Machine Learning. Naveen journey in the field of data engineering has been a continuous learning, innovation, and a strong commitment to data integrity. In this blog, he shares his experiences with the data as he come across. Follow Naveen @ LinkedIn and Medium