You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2015/01/27 15:36:53 UTC

Review Request 30320: Oracle JDK fails to be distributed to agents

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30320/
-----------------------------------------------------------

Review request for Ambari and Vitalyi Brodetskyi.


Bugs: AMBARI-9354
    https://issues.apache.org/jira/browse/AMBARI-9354


Repository: ambari


Description
-------

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
    


Diffs
-----

  ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py ba4329c 
  ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py a54c6a6 

Diff: https://reviews.apache.org/r/30320/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 30320: Oracle JDK fails to be distributed to agents

Posted by Vitalyi Brodetskyi <vb...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30320/#review69794
-----------------------------------------------------------

Ship it!


Ship It!

- Vitalyi Brodetskyi


On Січ. 27, 2015, 2:36 після полудня, Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/30320/
> -----------------------------------------------------------
> 
> (Updated Січ. 27, 2015, 2:36 після полудня)
> 
> 
> Review request for Ambari and Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-9354
>     https://issues.apache.org/jira/browse/AMBARI-9354
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> 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
>     
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py ba4329c 
>   ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py a54c6a6 
> 
> Diff: https://reviews.apache.org/r/30320/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>