[Hadoop-studio-users] Shebang in PHP scripts when running EMR

6 views
Skip to first unread message

Simon Cast

unread,
Jul 6, 2010, 1:16:07 PM7/6/10
to hadoop-st...@lists.sourceforge.net
Hi,

I can't seem to find any documentation on what the shebang should be in a PHP script when running a streaming job. Does anyone know what it is? Should it be !#/usr/bin/php?

Regards,

Simon
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Hadoop-studio-users mailing list
Hadoop-st...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hadoop-studio-users

Shevek

unread,
Jul 7, 2010, 12:00:00 AM7/7/10
to hadoop-st...@lists.sourceforge.net
On Tue, 2010-07-06 at 18:16 +0100, Simon Cast wrote:
> Hi,
>
> I can't seem to find any documentation on what the shebang should be in a PHP script when running a streaming job. Does anyone know what it is? Should it be !#/usr/bin/php?

Well, the "she" has to be before the "bang", or it's not a shebang (#!).

Log into the system and type "type php" or "which php" if you're a
redhat user, and it'll tell you. /usr/bin is usually a good guess.

S.


--
http://www.karmasphere.com/
Karmasphere Studio for Hadoop - An intuitive visual interface to Big Data

Simon Cast

unread,
Jul 13, 2010, 5:20:01 AM7/13/10
to hadoop-st...@lists.sourceforge.net
I know Elastic MapReduce does have an interactive mode but seemed overkill simply to find out the PHP environment.

Decided to go with /usr/bin/env PHP as that was suggested somewhere else. It worked.

-Simon

sudheer attain

unread,
Oct 12, 2013, 5:16:04 AM10/12/13
to karmasph...@googlegroups.com, hadoop-st...@lists.sourceforge.net, simon...@gmail.com

Itis good and it is very helpful for us.Hadoop online trainings provides best <a href="http://hadooponlinetrainings.com/hadoop-online-training/">online training Hadoop</a>.

Reply all
Reply to author
Forward
0 new messages