[
https://issues.apache.org/jira/browse/OOZIE-2150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacob Tolar updated OOZIE-2150:
-------------------------------
Attachment: OOZIE-2150-001.patch
This detects whether the file is binary by checking for a null byte in the
file. This is similar to the heuristic that git (
https://github.com/git/git/blob/master/xdiff-interface.c#L198-L204 ), curl (
https://daniel.haxx.se/blog/2017/06/17/curl-doesnt-spew-binary-anymore/ ), and
other tools use.
It also only prints out the script contents if it's not too big (arbitrarily,
128KiB).
> Shell launcher should print shell script
> ----------------------------------------
>
> Key: OOZIE-2150
> URL: https://issues.apache.org/jira/browse/OOZIE-2150
> Project: Oozie
> Issue Type: Bug
> Reporter: Purshotam Shah
> Assignee: Jacob Tolar
> Priority: Minor
> Attachments: OOZIE-2150-001.patch
>
>
> Pig and Hive does this. It will be helpful in debugging.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)