Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to build hadoop+hbase pseudo-distributed Environment

Shulou Source: shulou.com Published: 2022-05-31 21:17:30 09月22日 Update

This article mainly introduces how to build a hadoop+hbase pseudo-distributed environment, which is very detailed and has a certain reference value. Friends who are interested must read it!

Operating system: vmware + ubuntu15

Software version: jdk7,hbase-1.2.2,hadoop-2.6.4

Hadoop deployment: http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.html

Hbase deployment: http://hbase.apache.org/book.html#quickstart

One thing to note: in the two documents, the hdfs port definition is inconsistent and needs to be changed to consistent.

In addition: I forgot to change the hosts file in the virtual machine for some reason, which caused hbase to say nothing. Later, I saw this paragraph in the official document and solved the problem.

After the deployment is complete, start hadoop first, then start hbase.

Then enter hbase shell.

1. View the server status:

2. Check the server version:

3. Build a table

Table name = stu, field = id,name,age

4. Check the table you just built

5. Take a look at the table structure

6. Add a column family

7. Delete a column family

8. Drop a table, divided into 2 steps, disable and drop.

There is one thing to mention: I remember that before alter has to disable a table, why not this time?

Type help 'alter', in shell and we see the following paragraph, which solves my doubt.

These are all the contents of the article "how to build a hadoop+hbase pseudo-distributed Environment". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Distributed environment consistent content documents servers versions articles services input operating systems values interests reasons fields official guys partners files more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MariaDB Shulou Information Redmi Shulou Tech Info