Remove the warning message from the startup process of Hadoop

Source: Internet
Author: User

How to remove the warning message from the startup process of Hadoop
1. Because the warning occurs when you execute start-all.sh to start Hadoop, you should review start-all.sh and do more start-all.sh
You can see the following code:
If [-E ' $bin/: /libexec/hadoop-config.sh "]; Then
. "$bin"/.. /libexec/hadoop-config.sh
Else
. "$bin/hadoop-config.sh"
Fi
According to this code, you can judge that hadoop-config.sh should be viewed and executed more hadoop-config.sh
You can look at the following code:
If ["$HADOOP _home_warn_suppress" = ""] && ["$HADOOP _home"! = ""]; Then
echo "Warning: \ $HADOOP _home is deprecated." 1>&2
Echo 1>&2
If
According to this code can be judged hadoop_home_warn_suppress cannot be empty, all need to set in/etc/profile hadoop_home_warn_suppress
is not empty, it is feasible to execute vim/etc/profile, and then add Hadoop_home_warn_suppress=1 or other non-null values at the end of the profile file, and finally
To set up a refresh operation, execute source/etc/profile.

Remove the warning message from the startup process of Hadoop

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.