The difference between hbase and relational database

What is the problem that HBase can solve relative to relational databases?

The difference between HBase and relational data is actually the advantages and disadvantages of relational database and HBase.

The shortcomings of relational databases:

1) Expansion difficulties

2) Maintenance complexity

HBase is the problem of resolving scalable lines. Linear scalability is achieved by simply adding nodes. SQL is not supported.

The difference between the graphical Nosql (hbase) and the traditional database

For most people who do technology, we know what our traditional database looks like, as shown in the figure below, the object we operate on is the row. That is, additions, deletions, and changes are considered objects.

1. Introduction of traditional database addition and deletion

The difference between hbase and relational database

Let's take mysql as an example:

The difference between hbase and relational database

Insert data

Mysql "INSERT INTO blog_user (`user_Name`,`user_Password`,`user_emial`)VALUES ('aboutyun','aboutyun', '');

The difference between hbase and relational database

delete data:

Mysql" delete from blog_user where user_name="aboutyun";

The difference between hbase and relational database

2. Nosql database added delete introduction

The difference between hbase and relational database

Take hbase as an example:

Create a table:

Create 'blog_user', 'userInfo'

The difference between hbase and relational database

Insert data

This is the key point and a place that many people don't understand easily.

Hbase(main):012:0" put'blog_user','','userInfo:user_Name','aboutyun'

0 row(s) in 1.7530 seconds

The difference between hbase and relational database

We saw above

What is shown in 1 is that we don't have any in the traditional data block. This is unique to nosql. It is a rowkey, which is the system's own and is the unique identifier of a record in nosql. But this unique identifier is different from our traditional database. As shown in Figure 1, "Record 1" is rowkey.

2 shows the column user_Name we inserted, which is also the most difficult to understand, the column can be inserted. And its 'value' is 3 or 'aboutyun'

We inserted the column, let's take a look at the effect:

The difference between hbase and relational database

Let me explain the above meaning:

we will see

1 is rowkey, insert data '',

2 is the name of the column below the column user_Name

3 We did not add this column family in the design, so this is the system's own, this is the recording operation time, put it in hbase in the form of timestamp.

4 is the value of the user_Name we inserted

Below we are inserting the password:

1. hbase(main):015:0" put'blog_user','','userInfo:user_Password','aboutyun'

The difference between hbase and relational database

Check the results again:

1. hbase(main):016:0" scan 'blog_user'

2. ROW COLUMN+CELL

3. column=userInfo:user_Name, TImestamp=1400663775901, value=aboutyun

4. column=userInfo:user_Password, TImestamp=1400665203430, value=aboutyun

5. 1 row(s) in 0.0390 seconds

The difference between hbase and relational database

At this point, we see two rows of records, the traditional data block thinks this is two rows of data, for nosql, this is a record.

Delete column data

Delete data is divided into delete columns and delete records

1. Delete the column

Deleted inside, not deleted

Delete 'blog_user','','userInfo:user_Password'

The difference between hbase and relational database

From the above we see that the column has been deleted.

2. Delete the record:

1. deleteall 'blog_user',''

2. This is the result displayed before deleting, here is already

The difference between hbase and relational database

Deleted result

The difference between hbase and relational database

in conclusion:

For traditional databases, adding columns is very large for a project. But for nosql, inserting columns and deleting columns is similar to adding records and deleting records in a traditional database.

What are the basic characteristics of HBase?

HBase is an open source implementation of bigtable similar to google, with the following characteristics:

1) Above HDFS

2) Distributed database based on column storage

3) Used to read and write large-scale data sets in real time

Air Purifier

Kj200f Z04 1Kj200f Z02Kj50f Z01

KYFEN air purifier with HEPA filter H13 active carbon, 3 stages Filtration, The primary filter intercepts large particles such as hair and dust. The second layer of high-quality filter, can remove nano level of tiny particles, and also can effectively block some bacteria and viruses. The third layer of high quality activated carbon, can effectively adsorb formaldehyde and other harmful substances, effectively remove the odor in the air. Efficient filtering bacteria and viruses, filter out a variety of bacteria, The sterilization rate is up to 99.9%. The high efficiency air pressurization system designed by us makes the air purifier achieve small volume and high performance, with CADR value up to50~200m3/h and applicable area of 6~23m2.

Touch screen operation panel, 3 Fan speeds, the classic tower structure design can make efficient use of the body space, so that the small body carries a stronger purification capacity. The additional 943 air inlet holes make the air inlet space wider and form a three-dimensional circulation purification style.



Air Purifier,Air Cleaner,Air Purifier For Home,Small Air Purifier

CIXI KYFEN ELECTRONICS CO.,LTD, , https://www.kyfengroup.com