How to find installation mode of Hadoop 2.x

断了今生、忘了曾经 提交于 2019-12-24 13:11:51

问题


what is the quickest way of finding the installation mode of the Hadoop 2.x?

I just want to learn the best way to find the mode when I login first time into a Hadoop installed machine.


回答1:


In hadoop 2 - go to /etc/hadoop/conf folder and check the Fs.defaultFS in core-site.xml and Yarn.resourcemanager.hostname property in yarn-site.xml. The values for those properties decide which mode you are running in.

Fs.defaultFS

Standalone mode   - file:///
pseudo distributed- hdfs://localhost:8020/
Fully distributed - hdfs://namenodehostname:8020/

Yarn.resourcemanager.hostname

Standalone mode    - file:///
pseudo distributed - hdfs://localhost:8021/
Fully ditributed   - hdfs://resourcemanagerhostname:8021/

Alternatively you can use jps command to check the mode. if you see namenode/secondary namenode /jobtracker daemons running separately then it is distributed.

similarly in MR1 go to /etc/hadoop/conf folder and check the fs.default.name in core-site.xml and mapred.job.tracker property in mapred-site.xml.



来源:https://stackoverflow.com/questions/29721623/how-to-find-installation-mode-of-hadoop-2-x

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!