can HBase , MapReduce and HDFS can work on a singl

2019-06-06 07:54发布

I am working on a search engine design, which is to be run on cloud. We have just started, and have not much idea about Hdoop. Can anyone tell if HBase , MapReduce and HDFS can work on a single machine having Hdoop installed and running on it ?

3条回答
成全新的幸福
2楼-- · 2019-06-06 07:58

same here, I am running hadoop/hbase/hive on a single computer. If you really really want to see distributed computing on a single computer, grab lots of RAM, some hard disk space and go like this -

  1. make one or two virtual machines (use virtual box)
  2. install hadoop on each of them, make ur real instalation (not any virtual one) as the master, rest slave
  3. configure hadoop for real distributed environment
  4. now when hadoop starts, you should actually have a cluster of multiple computers (one real, rest virtual)

this could just be an experiment, because unless you have a decent multi-cpu or multi-core system, such a configuration will actually consume more on maintaining itself than giving you any performance.

gud luck.

--l4l

查看更多
做自己的国王
3楼-- · 2019-06-06 08:13

Yes you can. You can even create a Virtual Machine and run it on there on a single "computer" (which is what I have :) ).

The key is to simply install Hadoop in "Pseudo Distributed Mode" which is even described in the Hadoop Quickstart.

If you use the Cloudera distribution they have even created the configs needed for that in an RPM. Look here for more info in that.

HTH

查看更多
Anthone
4楼-- · 2019-06-06 08:20

Yes. In my development environment, I run

  • NameNode (HDFS)
  • SecondaryNameNode (HDFS)
  • DataNode (HDFS)
  • JobTracker (MapReduce)
  • TaskTracker (MapReduce)
  • Master (HBase)
  • RegionServer (HBase)
  • QuorumPeer (ZooKeeper - needed for HBase)

In addition, I run my applications, and map and reduce tasks launched by the task tracker. Running so many processes on the same machine results in a lot of contention for CPU cores, memory, and disk I/O, so it's definitely not great for high performance, but there is no limitation other than the amount of resources available.

查看更多
登录 后发表回答