0

今天我在一个几乎空白的系统上安装 Ambari-Server 时遇到了问题:

[root@<server>/]# ambari-server setup
Using python  /usr/bin/python2.6
Setup ambari-server
Checking SELinux...
SELinux status is 'disabled'
Customize user account for ambari-server daemon [y/n] (n)?
Adjusting ambari-server permissions and ownership...
Checking firewall status...
FATAL: Could not load /lib/modules/2.6.32-504.16.2.el6.x86_64/modules.dep: No such file or directory
iptables v1.4.7: can't initialize iptables table 'filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Could not load /lib/modules/2.6.32-504.16.2.el6.x86_64/modules.dep: No such file or directory
iptables v1.4.7: can't initialize iptables table 'nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.

WARNING: iptables is running. Confirm the necessary Ambari ports are accessible. Refer to the Ambari documentation for more detai
OK to continue [y/n] (y)?
Checking JDK...
[1] OpenJDK 1.8.0
[2] OpenJDK 1.7.0 (deprecated)
[3] Custom JDK
==============================================================================
Enter choice (1):
Downloading JDK from http://birepo-build.svl/repos/IOP-UTILS/RHEL7/x86_64/1.1/openjdk/jdk-1.8.0.tar.gz to /var/lib/ambari-1.8.0.tar.gz
jdk-1.8.0.tar.gz... 100% (56.5 MB of 56.5 MB)
Successfully downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz
Installing JDK to /usr/jdk64/
Installation of JDK has failed: [Errno 2] No such file or directory

JDK found at /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz. Would you like to re-download the JDK [y/n] (y)?
Re-downloading JDK from http://birepo-build.svl/repos/IOP-UTILS/RHEL7/x86_64/1.1/openjdk/jdk-1.8.0.tar.gz to /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz
jdk-1.8.0.tar.gz... 100% (56.5 MB of 56.5 MB)
Successfully downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz
Successfully re-downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz
Installing JDK to /usr/jdk64/
Installation of JDK was failed: [Errno 2] No such file or directory

ERROR: Exiting with exit code 1.
REASON: Downloading or installing JDK failed: 'Fatal exception: Unable to install JDK. Please remove JDK, file found at /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz and re-run Ambari Server setup, exit code 1'.     Exiting.`

搜索一下我自己做了一些调查,因为它在 Docker 主机上运行。因此 IPTables 问题,这是由于它位于 Docker 容器中,并且 NET_ADMIN 功能适用于非特权容器。非特权容器无法更改其网络配置。

4

2 回答 2

1

事实证明,我已经设法自己解决了这个问题。

首先,我发现很多链接都在谈论手动安装 JDK,然后是存储库问题和 python 脚本超时。最后它相当简单,只需要安装'tar'包,因为它无法提取文件,一旦我这样做了,它就没有问题地运行了。

这就是我进行“空白”安装所得到的。

于 2015-07-16T13:35:17.203 回答
0

在 Docker 中安装和运行 Ambari 是一件棘手的事情。我花了很多天试图让这一切正常工作。您可以在此处找到有关如何准备基于 centos7 docker 的映像以运行 Ambari 服务器的一些提示http://mixeddev.info/articles/2020/12/10/run-apache-ambari-hdp-hdf-in-docker.html

于 2021-02-01T19:29:02.450 回答