Jonathan Maron created SLIDER-705:
-------------------------------------
Summary: issues extracting application binary packages when
resultant path is longer than 260 character limit
Key: SLIDER-705
URL: https://issues.apache.org/jira/browse/SLIDER-705
Project: Slider
Issue Type: Bug
Components: appmaster
Environment: Windows
Reporter: Jonathan Maron
When the path for a file being extracted from an application package exceeds
the 260 character limit, the installation of the package will fail with a
traceback, e.g.:
Traceback (most recent call last):
File
"c:\hadoop\data\hadoop\local\usercache\hbase\appcache\application_1418069434921_0004\container_1418069434921_0004_01_000003\app\definition\package\scripts\hbase_regionserver.py",
line 63, in <module>
HbaseRegionServer().execute()
File
"c:\hadoop\data\hadoop\local\usercache\hbase\appcache\application_1418069434921_0004\container_1418069434921_0004_01_000003\infra\agent\slider-agent\resource_management\libraries\script\script.py",
line 116, in execute
method(env)
File
"c:\hadoop\data\hadoop\local\usercache\hbase\appcache\application_1418069434921_0004\container_1418069434921_0004_01_000003\app\definition\package\scripts\hbase_regionserver.py",
line 30, in install
self.install_packages(env)
File
"c:\hadoop\data\hadoop\local\usercache\hbase\appcache\application_1418069434921_0004\container_1418069434921_0004_01_000003\infra\agent\slider-agent\resource_management\libraries\script\script.py",
line 182, in install_packages
Tarball(tarball, location=install_location)
File
"c:\hadoop\data\hadoop\local\usercache\hbase\appcache\application_1418069434921_0004\container_1418069434921_0004_01_000003\infra\agent\slider-agent\resource_management\core\base.py",
line 148, in __init__
self.env.run()
File
"c:\hadoop\data\hadoop\local\usercache\hbase\appcache\application_1418069434921_0004\container_1418069434921_0004_01_000003\infra\agent\slider-agent\resource_management\core\environment.py",
line 149, in run
self.run_action(resource, action)
File
"c:\hadoop\data\hadoop\local\usercache\hbase\appcache\application_1418069434921_0004\container_1418069434921_0004_01_000003\infra\agent\slider-agent\resource_management\core\environment.py",
line 115, in run_action
provider_action()
File
"c:\hadoop\data\hadoop\local\usercache\hbase\appcache\application_1418069434921_0004\container_1418069434921_0004_01_000003\infra\agent\slider-agent\resource_management\core\providers\windows\tarball.py",
line 38, in action_install
zf.extractall(location)
File "C:\Python27\lib\zipfile.py", line 1040, in extractall
self.extract(zipinfo, path, pwd)
File "C:\Python27\lib\zipfile.py", line 1028, in extract
return self._extract_member(member, path, pwd)
File "C:\Python27\lib\zipfile.py", line 1083, in _extract_member
file(targetpath, "wb") as target:
IOError: [Errno 2] No such file or directory:
u'c:\\hadoop\\data\\hadoop\\local\\usercache\\hbase\\appcache\\application_1418069434921_0004\\container_1418069434921_0004_01_000003\\app\\install\\hbase-0.98.4.2.2.0.0-2041-hadoop2\\docs\\xref\\org\\apache\\hadoop\\hbase\\codec\\prefixtree\\decode\\PrefixTreeArrayReversibleScanner.html'
The no such file or directory error is indicative of a path that exceeds the
path length limit on windows (260 characters).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)