You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/01/27 17:37:34 UTC

[jira] [Commented] (AMBARI-9354) Oracle JDK fails to be distributed to agents

    [ https://issues.apache.org/jira/browse/AMBARI-9354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14293791#comment-14293791 ] 

Hudson commented on AMBARI-9354:
--------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #1616 (See [https://builds.apache.org/job/Ambari-trunk-Commit/1616/])
AMBARI-9354. Oracle JDK fails to be distributed to agents (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a913b50edc54a63b0999bdc2fb6e86dafce74b7e)
* ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py
* ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py


> Oracle JDK fails to be distributed to agents
> --------------------------------------------
>
>                 Key: AMBARI-9354
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9354
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.0.0
>
>
> After setting up Ambari server and choosing Oracle JDK 1.6 (option #2):
>     
>     
>     
>     [root@c6504 ~]# 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 iptables...
>     Checking JDK...
>     [1] Oracle JDK 1.7
>     [2] Oracle JDK 1.6
>     [3] - Custom JDK
>     ==============================================================================
>     Enter choice (1): 2
>     To download the Oracle JDK and the Java Cryptography Extension (JCE) Policy Files you must accept the license terms found at http://www.oracle.com/technetwork/java/javase/terms/license/index.html and not accepting will cancel the Ambari Server setup and you must install the JDK and JCE files manually.
>     Do you accept the Oracle Binary Code License Agreement [y/n] (y)? y
>     Downloading JDK from http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-6u31-linux-x64.bin to /var/lib/ambari-server/resources/jdk-6u31-linux-x64.bin
>     jdk-6u31-linux-x64.bin... 100% (81.6 MB of 81.6 MB)
>     Successfully downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-6u31-linux-x64.bin
>     Installing JDK to /usr/jdk64/
>     Successfully installed JDK to /usr/jdk64/
>     Downloading JCE Policy archive from http://public-repo-1.hortonworks.com/ARTIFACTS/jce_policy-6.zip to /var/lib/ambari-server/resources/jce_policy-6.zip
>     jce_policy-6.zip... 100%
>     Successfully downloaded JCE Policy archive to /var/lib/ambari-server/resources/jce_policy-6.zip
>     Completing setup...
>     
> When installing a cluster HDFS components fail to install with the following
> error:
>     
>     
>     
>     2015-01-27 11:53:42,477 - Error while executing command 'install':
>     Traceback (most recent call last):
>       File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 184, in execute
>         method(env)
>       File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/hook.py", line 35, in hook
>         setup_java()
>       File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py", line 60, in setup_java
>         sudo = True,
>       File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in __init__
>         self.env.run()
>       File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 151, in run
>         self.run_action(resource, action)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 117, in run_action
>         provider_action()
>       File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 277, in action_run
>         raise ex
>     Fail: Execution of 'chmod +x /var/lib/ambari-agent/data/tmp/AMBARI-artifacts//jdk-6u31-linux-x64.bin' returned 1. chmod: cannot access `/var/lib/ambari-agent/data/tmp/AMBARI-artifacts//jdk-6u31-linux-x64.bin': No such file or directory
>     



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)