如何找到Hadoop 2.x的安装模式 [英] How to find installation mode of Hadoop 2.x
问题描述
寻找Hadoop 2.x安装模式的最快方法是什么?
我只想学习在我登录时找到模式的最佳方式第一次进入Hadoop安装的机器。
在hadoop 2中 - 转到/ etc / hadoop / conf文件夹并检查Fs core-site.xml中的.defaultFS和yarn-site.xml中的Yarn.resourcemanager.hostname属性。这些属性的值决定了您运行的模式。
Fs.defaultFS
独立模式 - file:///
伪分布式 - hdfs:// localhost:8020 /
完全分布式 - hdfs:// namenodehostname:8020 /
Yarn.resourcemanager.hostname
独立模式 - file:///
伪分布式 - hdfs:// localhost:8021 /
完全分布式 - hdfs:// resourcemanagerhostname :8021 /
或者,您可以使用jps命令来检查模式。如果您看到namenode / secondary namenode / jobtracker守护程序单独运行,那么它将被分发。
类似于MR1,转到/ etc / hadoop / conf文件夹并检查fs.default core-site.xml中的.name和mapred-site.xml中的mapred.job.tracker属性。
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.
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.
这篇关于如何找到Hadoop 2.x的安装模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!