pig ship tar files - streaming

I read alot of about pig can ship a tar file and untar it before execution. However, I couldn't find any example. Can someone provide an example?
What I would like to do is to ship a python module, such as nltk, for my streaming.
Thanks.
Dan

Related

how to generate a copy of this binary perl distribution

I'm working with an application that downloads its own copy of Perl from a 3rd party website as a sort of bootstrap. I'd like to get a different copy from a more trusted source like CPAN, but I can't find any precompiled copies of Perl (only full source distributions) and I don't know how to build from source. Is there anywhere I can get a precompiled copy?
Another problem is that I don't know for sure that this download is just "a compiled copy of Perl". I'm assuming that, but I don't know what it's supposed to look like.
It comes in a .tar.gz which really only has two directories populated:
/bin (contains perl, cpan, perldoc, enc2xs, etc)
/lib/5.16.3 (contains subdirectories for various CPAN modules)
So to summarize: 1) Is this what Perl looks like when it is compiled? 2) Where can I get a pre-compiled version of Perl for my OS (RHEL 7), or if this isn't possible, how can I best generate a compiled version?
PS: For those who are curious, this is the copy of Perl that is downloaded by Miyagawa's Heroku Perl buildpack (https://github.com/miyagawa/heroku-buildpack-perl), which I am using for a project. He downloads copies of Perl stored on a website cache.bulknews.net, which might just be his own hosting, not sure.
I don't know how to build from source
This is documented in INSTALL in the distribution.
It's quite simple on a unix system:
cd /tmp
wget https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.26.1.tar.bz2
tar xvjf perl-5.26.1.tar.bz2
cd perl-5.26.1
sh Configure -des -Dusethreads -Dprefix='/some/dir'
make
make test
make install
You might also want to pass -Duserelocatableinc to make the install relocatable.
You can also use perlbrew or plenv to assist you with installing perl and managing multiple installs of perl.

How to view wget source code?

I've gone to this link http://ftp.gnu.org/gnu/wget/
and downloaded different versions, but I have no idea how to actually unpack it.
You don't need to download it. Take a look at their source code repository and read everything using your browser. Here's main.c for example. More details available at How to Access the Wget Source Code Repository.
tar.gz is a common extension for files that have been "tarred" ("tape archive", using the "tar" program), and "gzipped".
Most Linux systems come with these pre-installed, so you can extract the files using something like this:
tar xf wget-1.13.tar.gz
In Windows, use some unzipper program such as 7-Zip, WinZip, or WinAce or use tar from mingw/cygwin.

Convert Perl Executable to Perl Script

Hi All,
I have converted the perl script to perl executable using perlcc .So
Now I want to convert perl executable to perl script. Is there any way
to do this...?
No.
I remember compiling my first C program in 1992, cc -o code.c code.c, and then wondering where my source-code disappeared to. (If this is what you did, restore from backups. No backups? Well, think about doing backups.) No, it's not possible. You might be able to work out the algorithm by studying the binary very very carefully, but it's unlikely to help. It would probably be easier to rewrite the application from scratch.
best way to convert perl and all script to exe stand alone file use htwoo project in sourceforge.net
download project link :
http://downloads.sourceforge.net/project/htwoo/Hadi-Kiamarsi-HTWOO-2.rar?r=&ts=1363693006&use_mirror=freefr
download tutorial movie :
http://youtu.be/UQVuFQX4uOo

perl cgi, awstats tool and modification

In awstats tool, it creates some log files in a ./data folder.
I was wondering which script creates these log files? My purpose is to remove myself from tracking list since I am the one building the site.
thanks
Gordon
Ok ... so : http://awstats.sourceforge.net/docs/awstats_faq.html#EXCLUDEHOSTS
regards

how to compile emacs 22.3

I've recently made a Slax instalation with only the core program.
I used a copy of the live CD and ran a script to make hda1 bootable and then another script to use lilo to boot it... they were all in the CD... So it's like a big live cd on my HD and not really a full fledged OS.
Anyway I want to begin by compiling my own Emacs... Can someone help me?
thanks
The process shouldn't be too complicated. First, you need to download the source from http://ftp.gnu.org/pub/gnu/emacs/
Then, you untar the source with
tar xzf emacs-22.3.tar.gz
and cd into the newly created directory (emacs-22.3)
There, you run:
./configure
and then
make && make install
Read the INSTALL file for more information.
To compile emacs 22.3, first download http://ftp.gnu.org/pub/gnu/emacs/emacs-22.3.tar.gz . Extract the files to a directory, and then follow the instructions in the INSTALL file to install.
If you're asking about how to compile it on a read-only filesystem:
If you have lots of RAM, you can mount a ram disk.
If you have a harddisk, you can mount the extra space.
You can look at something like fuse for more ideas.