Hi,

I am pretty sure that I have try each and every oprtion to give parament from 
cmd line but none of them is working in pig can anybody please help.I just want 
to pass a param file to pig scrip.

$ pig -x local -m input=/home/hduser/deepak/pig/tabal.param 
/home/hduser/deepak/pig/script.pig
2013-06-06 22:15:02,866 [main] INFO  org.apache.pig.Main - Logging error 
messages to: /home/hduser/CDH4_Packages/pig-0.9.2-cdh4.0.1/pig_1370537102865.log
2013-06-06 22:15:02,902 [main] ERROR org.apache.pig.Main - ERROR 101: Local 
file 'input=/home/hduser/deepak/pig/tabal.param' does not exist.
Details at logfile: 
/home/hduser/CDH4_Packages/pig-0.9.2-cdh4.0.1/pig_1370537102865.log

pig -m input=/home/hduser/deepak/pig/tabal.param 
/home/hduser/deepak/pig/script.pig
2013-06-06 22:17:49,875 [main] INFO  org.apache.pig.Main - Logging error 
messages to: /home/hduser/CDH4_Packages/pig-0.9.2-cdh4.0.1/pig_1370537269874.log
2013-06-06 22:17:49,919 [main] ERROR org.apache.pig.Main - ERROR 101: Local 
file 'input=/home/hduser/deepak/pig/tabal.param' does not exist.
Details at logfile: 
/home/hduser/CDH4_Packages/pig-0.9.2-cdh4.0.1/pig_1370537269874.log

IT IS NOT ABLE TO IDEDTIFY -param_file OPTION EVEN , AND NOTING IS PRINTING IN 
LOG FILE TOO IN ANY OF THESE COMMAND

I HAVE READ THIS COMMAND OPTINS FORM pig -param_file daily.params daily.pig 
[programming in pig book , O'really]

pig -param_file /home/hduser/deepak/pig/tabal.param 
/home/hduser/deepak/pig/script.pig
2013-06-06 22:18:34,389 [main] INFO  org.apache.pig.Main - Logging error 
messages to: /home/hduser/CDH4_Packages/pig-0.9.2-cdh4.0.1/pig_1370537314387.log

Apache Pig version 0.9.2-cdh4.0.1 (rexported)
compiled Jun 28 2012, 18:29:23

USAGE: Pig [options] [-] : Run interactively in grunt shell.
       Pig [options] -e[xecute] cmd [cmd ...] : Run cmd(s).
       Pig [options] [-f[ile]] file : Run cmds found in file.
  options include:
    -4, -log4jconf - Log4j configuration file, overrides log conf
    -b, -brief - Brief logging (no timestamps)
    -c, -check - Syntax check
    -d, -debug - Debug level, INFO is default
    -e, -execute - Commands to execute (within quotes)

Please help.

Deepak

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are 
not
to copy, disclose, or distribute this e-mail or its contents to any other 
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken
every reasonable precaution to minimize this risk, but is not liable for any 
damage
you may sustain as a result of any virus in this e-mail. You should carry out 
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this 
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Reply via email to