首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ambari安装- jdk问题

Ambari安装- jdk问题
EN

Stack Overflow用户
提问于 2015-02-10 23:03:41
回答 1查看 2.4K关注 0票数 1

我使用的是RHEL6.5,并按照latest documentation进行。

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

代码语言:javascript
复制
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.

我错过了什么?

EN

回答 1

Stack Overflow用户

发布于 2015-03-27 02:40:13

我也有同样的问题,所以我选择了"yum install java-1.7.0-openjdk“选项。1.)安装openjdk: yum Install java-1.7.0-openjdk 2。)告诉它使用openjdk: ambari-server setup -j /usr/lib/jvm/jre-1.7.0-openjdk.x86_64

祝好运!

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28434943

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档