[
https://issues.apache.org/jira/browse/AMBARI-9938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alejandro Fernandez updated AMBARI-9938:
----------------------------------------
Attachment: AMBARI-9938.patch
> ambari-sudo.sh needs full path, install fails if JDK is not installed
> ---------------------------------------------------------------------
>
> Key: AMBARI-9938
> URL: https://issues.apache.org/jira/browse/AMBARI-9938
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.0.0
> Reporter: Alejandro Fernandez
> Assignee: Alejandro Fernandez
> Fix For: 2.0.0
>
> Attachments: AMBARI-9938.patch
>
>
> When HDP is installed on a host without JDK, the before-install hook will
> attempt to install JDK if it is not present. However, this fails because
> ambari-sudo.sh needs the fully qualified path to the script.
> {code}
> Execution of 'mkdir -p /var/lib/ambari-agent/data/tmp/jdk && cd
> /var/lib/ambari-agent/data/tmp/jdk && tar -xf
> /var/lib/ambari-agent/data/tmp/AMBARI-artifacts//jdk-7u67-linux-x64.tar.gz &&
> ambari-sudo.sh cp -r /var/lib/ambari-agent/data/tmp/jdk/* /usr/jdk64'
> returned 2.
> [3/4/15, 12:58:13 PM] Alejandro Fernandez: tar: Unexpected EOF in archive
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)