In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to solve jdk installation and version problems". In daily operation, I believe many people have doubts about how to solve jdk installation and version problems. Xiaobian consulted all kinds of materials and sorted out simple and easy to use operation methods. I hope to answer your doubts about "how to solve jdk installation and version problems". Next, please follow the small series to learn together!
Question 1: ESXi5.5 is not supported during installation.
Solution: buy a new network card, this is the best conclusion after personal practice, sometimes, spend some money to solve the problem, absolutely do not tangle, also can not show personal ability and zhuangbility, of course, must be against the wind three meters Please ignore this result, and then find the network card driver and recompile the driver.
Question 2: Hadoop Native Libraries
If your linux system is 64-bit, I'm happy to tell you. You need to recompile hadoop 2.7.1-src instead of using hadoop 2.7.1 directly from the official website (because Native Libraries in this file are 32-bit by default)
Question 3, jdk installation and version problems (this article takes CentOS 6.7 -64bit as an example)
hadoop 2.7.1 started to support only jdk 1.7 and above
View native jdk environment
rpm -qa | grep -E '^open[jre|jdk]|j[re|dk]'
Delete existing jdk (optional)
yum remove java-1.6.0-openjdk
Hadoop Java Versions View currently tested versions of jdk and download.
rpm -ivh jdk-8u25-linux-x64.rpm
set the environment variable
export JAVA_HOME=/usr/java/jdk1.8.0_25/export PATH=$PATH:$JAVA_HOME
Now, let's look at JDK's environment variables with the following command:
echo $JAVA_HOME
The output is as follows:
/usr/java/jdk1.8.0_25/
However, the following installation method is not recommended. Because the installation path will disappear after the machine restarts. In order to save it, you need to add the installation path to the system configuration file.
Before we do that, we need to create a file called java.sh under/etc/profile.d/
vi /etc/profile.d/java.sh
Add the following command to the file:
#!/ bin/bashJAVA_HOME=/usr/java/jdk1.8.0_25/PATH=$JAVA_HOME/bin:$PATHexport PATH JAVA_HOMEexport CLASSPATH=.
Save and close the file. To give it permission to execute, run the following command:
chmod +x /etc/profile.d/java.sh
Next, make the environment variable you just changed permanent by running the following command:
source /etc/profile. d/java.sh This is the end of the study on "jdk installation and version problems," hoping to solve everyone's doubts. Theory and practice can better match to help you learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.