Hive无法解析Hadoop版本,因此无法启动。 出现错误“无法确定Hadoop版本信息”。
Hadoop安装在〜/ hadoop / hadoop-3.2.0 /
中Hive安装在〜/ hive / apache-hive-3.1.1-bin /
中admin@localhost:~/hadoop$ hadoop version
Hadoop 3.2.0
Source code repository https://github.com/apache/hadoop.git -r e97acb3bd8f3befd27418996fa5d4b50bf2e17bf
Compiled by sunilg on 2019-01-08T06:08Z
Compiled with protoc 2.5.0
From source with checksum d3f0795ed0d9dc378e2c785d3668f39
This command was run using /home/admin/hadoop/hadoop-3.2.0/share/hadoop/common/hadoop-common-3.2.0.jar
admin@localhost:~/hadoop$ hive -version ### or hiveserver2
Unable to determine Hadoop version information.
'hadoop version' returned:
Hadoop ${declared.hadoop.version} Source code repository ${version-info.scm.uri} -r ${version-info.scm.commit} Compiled by ${user.name} on ${version-info.build.time} Compiled with protoc ${protobuf.version} From source with checksum ${version-info.source.md5} This command was run using /home/admin/hadoop/hadoop-3.2.0/share/hadoop/common/hadoop-common-3.2.0.jar
admin@localhost:~/hadoop$
无法解析变量-为什么?