linux上安装spark_hadoop_java_scala
生活随笔
收集整理的這篇文章主要介紹了
linux上安装spark_hadoop_java_scala
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
?
?
?
?
?
?
?
?
?
?
cp /opt/hadoop/hadoop-2.8.0/etc/hadoop/mapred-site.xml.template /opt/hadoop/hadoop-2.8.0/etc/hadoop/mapred-site.xml?
修改這個新建的mapred-site.xml文件,在<configuration>節(jié)點內加入配置:<property><name>mapred.job.tracker</name><value>hserver1:49001</value></property><property><name>mapred.local.dir</name><value>/root/hadoop/var</value></property><property><name>mapreduce.framework.name</name><value>yarn</value></property> <property><name>yarn.resourcemanager.hostname</name><value>hserver1</value></property><property><description>The address of the applications manager interface in the RM.</description><name>yarn.resourcemanager.address</name><value>${yarn.resourcemanager.hostname}:8032</value></property><property><description>The address of the scheduler interface.</description><name>yarn.resourcemanager.scheduler.address</name><value>${yarn.resourcemanager.hostname}:8030</value></property><property><description>The http address of the RM web application.</description><name>yarn.resourcemanager.webapp.address</name><value>${yarn.resourcemanager.hostname}:8088</value></property><property><description>The https adddress of the RM web application.</description><name>yarn.resourcemanager.webapp.https.address</name><value>${yarn.resourcemanager.hostname}:8090</value></property><property><name>yarn.resourcemanager.resource-tracker.address</name><value>${yarn.resourcemanager.hostname}:8031</value></property><property><description>The address of the RM admin interface.</description><name>yarn.resourcemanager.admin.address</name><value>${yarn.resourcemanager.hostname}:8033</value></property><property><name>yarn.nodemanager.aux-services</name><value>mapreduce_shuffle</value></property><property><name>yarn.scheduler.maximum-allocation-mb</name><value>2048</value><discription>每個節(jié)點可用內存,單位MB,默認8182MB</discription></property><property><name>yarn.nodemanager.vmem-pmem-ratio</name><value>2.1</value></property><property><name>yarn.nodemanager.resource.memory-mb</name><value>2048</value></property><property><name>yarn.nodemanager.vmem-check-enabled</name><value>false</value></property>?
?
?
?
這里只是啟動了Hadoop,沒有用到spark
?
?
總結
以上是生活随笔為你收集整理的linux上安装spark_hadoop_java_scala的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux 错误 Permission
- 下一篇: 成功在两台电脑上安装了spark集群,m