[
https://issues.apache.org/jira/browse/OOZIE-1621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13962476#comment-13962476
]
Purshotam Shah commented on OOZIE-1621:
---------------------------------------
Can you please add error code to ShareLibService init. ShareLibService
initialization may also throw error, if it's not able to cache shareLib.
{code.java}
@Override
ShareLibService.init(Services services) throws ServiceException {
this.services = services;
try {
sharelibMappingFile = services.getConf().get(SHARELIB_MAPPING_FILE,
"");
isShipLauncherEnabled =
services.getConf().getBoolean(SHIP_LAUNCHER_JAR, false);
Path launcherlibPath = getLauncherlibPath();
HadoopAccessorService has =
Services.get().get(HadoopAccessorService.class);
URI uri = launcherlibPath.toUri();
fs = FileSystem.get(has.createJobConf(uri.getAuthority()));
updateLauncherLib();
updateShareLib();
//Only one server should purge sharelib
if
(Services.get().get(JobsConcurrencyService.class).isFirstServer()) {
purgeLibs(fs, LAUNCHER_PREFIX);
purgeLibs(fs, SHARED_LIB_PREFIX);
}
}
catch (Exception e) {
LOG.error("Not able to cache shareLib. Admin need to issue oozlie
cli command to update sharelib.", e);
}
}
{code}
> Add proper error code and error message for sharelib exceptions.
> ----------------------------------------------------------------
>
> Key: OOZIE-1621
> URL: https://issues.apache.org/jira/browse/OOZIE-1621
> Project: Oozie
> Issue Type: Sub-task
> Affects Versions: trunk
> Reporter: Purshotam Shah
> Assignee: Robert Kanter
> Attachments: OOZIE-1621.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.2#6252)