Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create multiple column families in an HBase table using the shell

Tags:

hbase

Is the process to have multiple "create" commands against the same table? What is the syntax for it?

like image 716
WestCoastProjects Avatar asked May 21 '13 16:05

WestCoastProjects


People also ask

How do I create a column family in HBase?

Simply press the "+" button in the "Alter table" page and add your new column family with all settings you need.

How many column families does HBase have?

Technically, HBase can manage more than three of four column families. However, you need to understand how column families work to make the best use of them.

How do I run a HBase command from the shell?

To access the HBase shell, you have to navigate to the HBase home folder. You can start the HBase interactive shell using “hbase shell” command as shown below. If you have successfully installed HBase in your system, then it gives you the HBase shell prompt as shown below.


1 Answers

Syntax would be like this :

create '<table name>' , '<column-family1>' , '<column-family2>' etc..
like image 164
Vimal Jain Avatar answered Jan 04 '23 11:01

Vimal Jain