这是我正在使用的Mac版本...
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G19009
这是我正在使用的Hadoop版本...
$ hadoop version
Hadoop 3.1.0
Source code repository https://github.com/apache/hadoop -r 16b70619a24cdcf5d3b0fcf4b58ca77238ccbe6d
Compiled by centos on 2018-03-30T00:00Z
Compiled with protoc 2.5.0
From source with checksum 14182d20c972b3e2105580a1ad6990
This command was run using /usr/local/Cellar/hadoop/3.1.0/libexec/share/hadoop/common/hadoop-common-3.1.0.jar
而且,这是我面临的问题...
$ stop-dfs.sh
Stopping namenodes on [localhost]
localhost: TERM environment variable not set.
Stopping datanodes
localhost: TERM environment variable not set.
Stopping secondary namenodes [NagaMBP.local]
NagaMBP.local: TERM environment variable not set.
2018-07-05 17:36:20,701 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
$ start-dfs.sh
Starting namenodes on [localhost]
localhost: TERM environment variable not set.
Starting datanodes
localhost: TERM environment variable not set.
Starting secondary namenodes [NagaMBP.local]
NagaMBP.local: TERM environment variable not set.
2018-07-05 17:39:28,666 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
问题是-为什么此行显示在上面的开始/停止输出中? ...
localhost: TERM environment variable not set.
尽管我的.bash_profile,.bashrc,hadoop-env.sh具有此功能...
export TERM=xterm-color
谢谢
Naga Vijayapuram