You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Laszlo Bodor (JIRA)" <ji...@apache.org> on 2018/10/20 12:37:00 UTC
[jira] [Updated] (PIG-5366) Enable PigStreamingDepend to load from
current directory in newer Perl versions
[ https://issues.apache.org/jira/browse/PIG-5366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Laszlo Bodor updated PIG-5366:
------------------------------
Description:
A perlĀ related issue found while testing streaming. In newer perl versions (>5.26), current directory (".") is not included in @INC, so PerlStreamingDepend may fail during "use PigStreamingModule;". A possible solution is to let this module add current directory for itself to make it more independent from the environment (current perl version).
Test case was:
{code}
define CMD `perl PigStreamingDepend.pl - sio_5_1 sio_5_2` input(stdin) output('sio_5_1', 'sio_5_2') ship('./libexec/PigStreamingDepend.pl', './libexec/PigStreamingModule.pm');
A = load '/user/hrt_qa/tests/data/singlefile/studenttab10k';
B = stream A through CMD;
store B into '/user/hrt_qa/out/hrtqa-1539851229-streaming.conf-StreamingIO/StreamingIO_5.out';
{code}
> Enable PigStreamingDepend to load from current directory in newer Perl versions
> -------------------------------------------------------------------------------
>
> Key: PIG-5366
> URL: https://issues.apache.org/jira/browse/PIG-5366
> Project: Pig
> Issue Type: Bug
> Reporter: Laszlo Bodor
> Priority: Major
>
> A perlĀ related issue found while testing streaming. In newer perl versions (>5.26), current directory (".") is not included in @INC, so PerlStreamingDepend may fail during "use PigStreamingModule;". A possible solution is to let this module add current directory for itself to make it more independent from the environment (current perl version).
> Test case was:
> {code}
> define CMD `perl PigStreamingDepend.pl - sio_5_1 sio_5_2` input(stdin) output('sio_5_1', 'sio_5_2') ship('./libexec/PigStreamingDepend.pl', './libexec/PigStreamingModule.pm');
> A = load '/user/hrt_qa/tests/data/singlefile/studenttab10k';
> B = stream A through CMD;
> store B into '/user/hrt_qa/out/hrtqa-1539851229-streaming.conf-StreamingIO/StreamingIO_5.out';
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)