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

The Construction of jdk Environment variable in linux

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

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "the construction of jdk environment variables in linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "the construction of jdk environment variables in linux".

1. Configuration of jdk environment variables in Linux

JAVA_HOME=/usr/share/jdk1.6.0_35

PATH=$JAVA_HOME/bin:$PATH

CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

Export JAVA_HOME

Export PATH

Export CLASSPATH

two。 Modify hadoop-env.sh

Modify JAVA_HOME

3. Modify core-site.xml

Fs.defaultFS

Hdfs://master:9000

Hadoop.tmp.dir

/ data/hadoop/tmp1

Io.file.buffer.size

4096

4. Modify hdfs-site.xml

Dfs.replication

two

Dfs.namenode.name.dir

File:////data/hadoop/dfs/name

Dfs.datanode.data.dir

File:////data/hadoop/dfs/data

Dfs.nameservices

H2

Dfs.namenode.secondary.http-address

Master:50090

Dfs.webhdfs.enabled

True

5. Modify mapper-site.xml

Mapreduce.framework.name

Yarn

True

Mapreduce.jobtracker.http.address

127.0.0.1:50030

Mapreduce.jobhistory.address

127.0.0.1:10020

Mapreduce.jobhistory.webapp.address

127.0.0.1:19888

Mapred.job.tracker

Http://127.0.0.1:9001

6.yarn-site.xml

Yarn.resourcemanager.hostname

127.0.0.1

Yarn.nodemanager.aux-services

Mapreduce_shuffle

Yarn.resourcemanager.address

127.0.0.1:8032

Yarn.resourcemanager.scheduler.address

127.0.0.1:8030

Yarn.resourcemanager.resource-tracker.address

127.0.0.1:8031

Yarn.resourcemanager.admin.address

127.0.0.1:8033

Yarn.resourcemanager.webapp.address

127.0.0.1:8088

7. Execute the format command hdfs namenode-format8 before starting for the first time. Startup: you can start hdfs and then start yarn9. Verify: the process corresponding to jps

2871 ResourceManager

3000 Jps

2554 NameNode

2964 NodeManager

2669 DataNode

At this point, I believe you have a deeper understanding of "the construction of jdk environment variables in linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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