Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build hadoop+hbase pseudo-distributed Environment

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report