[
https://issues.apache.org/jira/browse/AMBARI-6591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Onischuk resolved AMBARI-6591.
-------------------------------------
Resolution: Fixed
Committed to trunk
> HDP deployment failed in Ubuntu
> -------------------------------
>
> Key: AMBARI-6591
> URL: https://issues.apache.org/jira/browse/AMBARI-6591
> Project: Ambari
> Issue Type: Bug
> Reporter: Andrew Onischuk
> Assignee: Andrew Onischuk
> Fix For: 1.7.0
>
>
> Try to deploy HDP-2.1 in Ubuntu vm, all components failed to install due to
> the same error:
>
>
> stderr:
> 2014-07-23 23:48:17,944 - Error while executing command 'install':
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 113, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/hook.py",
> line 36, in hook
> setup_users()
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py",
> line 47, in setup_users
> set_uid(params.smoke_user, smoke_user_dirs)
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py",
> line 162, in set_uid
> mode=0555)
> 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 149, in run
> self.run_action(resource, action)
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 115, in run_action
> provider_action()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
> line 93, in action_create
> raise Fail("Applying %s failed, parent directory %s doesn't exist" %
> (self.resource, dirname))
> Fail: Applying File['/var/lib/ambari-agent/data/tmp/changeUid.sh']
> failed, parent directory /var/lib/ambari-agent/data/tmp doesn't exist
> stdout:
> 2014-07-23 23:48:17,508 - Execute['mkdir -p /tmp/HDP-artifacts/; curl
> -kf -x "" --retry 10
> http://amb-ubuntu12-deploy2-1.cs1cloud.internal:8080/resources//UnlimitedJCEPolicyJDK7.zip
> -o /tmp/HDP-artifacts//UnlimitedJCEPolicyJDK7.zip'] {'environment': ...,
> 'not_if': 'test -e /tmp/HDP-artifacts//UnlimitedJCEPolicyJDK7.zip',
> 'ignore_failures': True, 'path': ['/bin', '/usr/bin/']}
> 2014-07-23 23:48:17,513 - Skipping Execute['mkdir -p /tmp/HDP-artifacts/;
> curl -kf -x "" --retry 10
> http://amb-ubuntu12-deploy2-1.cs1cloud.internal:8080/resources//UnlimitedJCEPolicyJDK7.zip
> -o /tmp/HDP-artifacts//UnlimitedJCEPolicyJDK7.zip'] due to not_if
> 2014-07-23 23:48:17,526 - Repository['HDP-2.1'] {'base_url':
> 'http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.1.3.0', 'action':
> ['create'], 'components': [u'HDP', 'main'], 'repo_template':
> 'repo_debian.j2', 'repo_file_name': 'HDP', 'mirror_list': None}
> 2014-07-23 23:48:17,532 - File['/tmp/tmpwt6idW'] {'content':
> Template('repo_debian.j2')}
> 2014-07-23 23:48:17,533 - Writing File['/tmp/tmpwt6idW'] because contents
> don't match
> 2014-07-23 23:48:17,534 - Repository['HDP-UTILS-1.1.0.18'] {'base_url':
> 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.18/repos/ubuntu12',
> 'action': ['create'], 'components': [u'HDP-UTILS', 'main'], 'repo_template':
> 'repo_debian.j2', 'repo_file_name': 'HDP-UTILS', 'mirror_list': None}
> 2014-07-23 23:48:17,536 - File['/tmp/tmpC6s3QA'] {'content':
> Template('repo_debian.j2')}
> 2014-07-23 23:48:17,536 - Writing File['/tmp/tmpC6s3QA'] because contents
> don't match
> 2014-07-23 23:48:17,537 - Package['unzip'] {}
> 2014-07-23 23:48:17,562 - Skipping installing existent package unzip
> 2014-07-23 23:48:17,563 - Package['curl'] {}
> 2014-07-23 23:48:17,588 - Skipping installing existent package curl
> 2014-07-23 23:48:17,592 - Execute['mkdir -p /tmp/HDP-artifacts/ ; curl
> -kf -x "" --retry 10
> http://amb-ubuntu12-deploy2-1.cs1cloud.internal:8080/resources//jdk-7u45-linux-x64.tar.gz
> -o /tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz'] {'environment': ...,
> 'not_if': 'test -e /usr/jdk64/jdk1.7.0_45/bin/java', 'path': ['/bin',
> '/usr/bin/']}
> 2014-07-23 23:48:17,597 - Skipping Execute['mkdir -p /tmp/HDP-artifacts/
> ; curl -kf -x "" --retry 10
> http://amb-ubuntu12-deploy2-1.cs1cloud.internal:8080/resources//jdk-7u45-linux-x64.tar.gz
> -o /tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz'] due to not_if
> 2014-07-23 23:48:17,597 - Execute['mkdir -p /usr/jdk64 ; cd /usr/jdk64 ;
> tar -xf /tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz > /dev/null 2>&1']
> {'not_if': 'test -e /usr/jdk64/jdk1.7.0_45/bin/java', 'path': ['/bin',
> '/usr/bin/']}
> 2014-07-23 23:48:17,602 - Skipping Execute['mkdir -p /usr/jdk64 ; cd
> /usr/jdk64 ; tar -xf /tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz >
> /dev/null 2>&1'] due to not_if
> 2014-07-23 23:48:17,602 - Group['hadoop'] {'ignore_failures': False}
> 2014-07-23 23:48:17,603 - Modifying group hadoop
> 2014-07-23 23:48:17,677 - Group['users'] {'ignore_failures': False}
> 2014-07-23 23:48:17,677 - Modifying group users
> 2014-07-23 23:48:17,793 - Group['users'] {'ignore_failures': False}
> 2014-07-23 23:48:17,794 - Modifying group users
> 2014-07-23 23:48:17,935 - User['ambari-qa'] {'gid': 'hadoop',
> 'ignore_failures': False, 'groups': [u'users']}
> 2014-07-23 23:48:17,935 - Modifying user ambari-qa
> 2014-07-23 23:48:17,943 -
> File['/var/lib/ambari-agent/data/tmp/changeUid.sh'] {'content':
> StaticFile('changeToSecureUid.sh'), 'mode': 0555}
> 2014-07-23 23:48:17,944 - Error while executing command 'install':
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 113, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/hook.py",
> line 36, in hook
> setup_users()
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py",
> line 47, in setup_users
> set_uid(params.smoke_user, smoke_user_dirs)
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py",
> line 162, in set_uid
> mode=0555)
> 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 149, in run
> self.run_action(resource, action)
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 115, in run_action
> provider_action()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
> line 93, in action_create
> raise Fail("Applying %s failed, parent directory %s doesn't exist" %
> (self.resource, dirname))
> Fail: Applying File['/var/lib/ambari-agent/data/tmp/changeUid.sh']
> failed, parent directory /var/lib/ambari-agent/data/tmp doesn't exist
>
--
This message was sent by Atlassian JIRA
(v6.2#6252)