安巴里安装-jdk问题



我使用的是RHEL 6.5,并按照最新文档进行操作。

在ambari服务器设置过程中,我收到了一个关于jdk安装的错误(第一次以及连续尝试中)。

ambari-server setup
Using python  /usr/bin/python2.6
Setup ambari-server
Checking SELinux...
SELinux status is 'enabled'
SELinux mode is 'permissive'
WARNING: SELinux is set to 'permissive' mode and temporarily disabled.
OK to continue [y/n] (y)? y
Ambari-server daemon is configured to run under user 'root'. Change this setting [y/n] (n)? n
Adjusting ambari-server permissions and ownership...
Checking firewall...
Checking JDK...
[1] - Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7
[2] - Oracle JDK 1.6 + Java Cryptography Extension (JCE) Policy Files 6
[3] - Custom JDK
==============================================================================
Enter choice (1):1
JDK already exists, using /var/lib/ambari-server/resources/jdk-7u67-linux-x64.tar.gz
Installing JDK to /usr/jdk64
Installation of JDK has failed: 'Fatal exception: Installation of JDK returned exit code 2, exit code 2'
JDK found at /var/lib/ambari-server/resources/jdk-7u67-linux-x64.tar.gz. Would you like to re-download the JDK [y/n] (y)? y
jdk-7u67-linux-x64.tar.gz... 100% (135.8 MB of 135.8 MB)
Successfully re-downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-7u67-linux-x64.tar.gz
Installing JDK to /usr/jdk64
Installation of JDK was failed: 'Fatal exception: Installation of JDK returned exit code 2, exit code 2'
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-7u67-linux-x64.tar.gz and re-run Ambari Server setup, exit code 1'. Exiting.

我错过了什么?

我遇到了同样的问题,所以我选择了"yum-install java-1.7.0-openjdk"选项。1.)安装openjdk:yum-Install java-1.7.0-openjdk2.)告诉它使用openjdk:ambari服务器设置-j/usr/lib/jvm/jre-1.7.0-openjdk.x86_64

祝你好运!

相关内容

  • 没有找到相关文章

最新更新