Haven't tried it but why not symlink /var/cache to a new mount point? On Fri, Sep 21, 2018, 15:58 Lian Jiang, <[email protected]> wrote:
> Hi, > > I am installing HDP 3.0 using ambari 2.7 in our production environment > which has below limitation: > > 1. no internet access. > 2. 4G on /var partition. > 3. chef deletes periodically any unexpected folders from > /var/cache/yum/x86_64/7Server > where all yum packages are cached. For example, chef will delete > "HDP-3.0-GPL-repo-1" > "HDP-3.0-repo-1" "HDP-UTILS-1.1.0.22-repo-1" folders created by ambari > agent. > > I have setup an ambari repo server in the prod environment so that ambari > can download packages from it instead of from internet. However, 4G is not > enough for ambari and hadoop installation fails due to insufficient space > (error attached in the end). > > Any workaround? Is there a way to make ambari use a different yum cache > folder on a bigger partition and not monitored by chef? Appreciate very > much! > > > Traceback (most recent call last): > File > "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/OOZIE/package/scripts/oozie_server.py", > line 154, in <module> > OozieServer().execute() > File > "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", > line 353, in execute > method(env) > File > "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/OOZIE/package/scripts/oozie_server.py", > line 49, in install > self.install_packages(env) > File > "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", > line 836, in install_packages > retry_count=agent_stack_retry_count) > File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line > 166, in __init__ > self.env.run() > File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", > line 160, in run > self.run_action(resource, action) > File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", > line 124, in run_action > provider_action() > File > "/usr/lib/ambari-agent/lib/resource_management/core/providers/packaging.py", > line 30, in action_install > self._pkg_manager.install_package(package_name, self.__create_context()) > File > "/usr/lib/ambari-agent/lib/ambari_commons/repo_manager/yum_manager.py", line > 219, in install_package > shell.repository_manager_executor(cmd, self.properties, context) > File "/usr/lib/ambari-agent/lib/ambari_commons/shell.py", line 749, in > repository_manager_executor > raise RuntimeError(message) > RuntimeError: Failed to execute command '/usr/bin/yum -y install > oozie_3_0_0_0_1634', exited with code '1', message: ' > > > > Error downloading packages: > > oozie_3_0_0_0_1634-webapp-4.3.1.3.0.0.0-1634.noarch: Insufficient space in > download directory /var/cache/yum/x86_64/7Server/HDP-3.0-repo-1/packages > > * free 12 k > > * needed 292 M > >
