Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig, mail # user - ~/.pigrc or ~/.pigbootup? Impossible to parametize anything in Grunt?


+
Russell Jurney 2013-01-05, 21:49
+
Prashant Kommireddi 2013-01-05, 21:51
Copy link to this message
-
Re: ~/.pigrc or ~/.pigbootup? Impossible to parametize anything in Grunt?
Russell Jurney 2013-01-05, 21:53
Exactly what you would expect if you pasted parameters in Grunt:

Russells-MacBook-Pro:pig-trunk rjurney$ bin/pig -l /tmp -x local -v -w
Warning: $HADOOP_HOME is deprecated.

13/01/05 13:52:32 WARN util.PropertiesUtil: /Users/rjurney/.pigrc exists
but will be deprecated soon. Use conf/pig.properties instead!
2013-01-05 13:52:32,033 [main] INFO  org.apache.pig.Main - Apache Pig
version 0.11.0-SNAPSHOT (rexported) compiled Jan 05 2013, 13:39:15
2013-01-05 13:52:32,033 [main] INFO  org.apache.pig.Main - Logging error
messages to: /private/tmp/pig_1357422752017.log
2013-01-05 13:52:32,229 [main] INFO
 org.apache.pig.backend.hadoop.executionengine.HExecutionEngine -
Connecting to hadoop file system at: file:///
2013-01-05 13:52:32.295 java[25424:1203] Unable to load realm info from
SCDynamicStore
grunt> /* Setup for Piggybank */
grunt> %default PIGGYBANK_LIB '/me/Software/pig/contrib/piggybank/java'
2013-01-05 13:52:32,413 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1000: Error during parsing. Encountered " <PATH> "%default "" at line
2, column 1.
Was expecting one of:
    <EOF>
    "cat" ...
    "clear" ...
    "fs" ...
    "sh" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "aliases" ...
    "explain" ...
    "help" ...
    "history" ...
    "kill" ...
    "ls" ...
    "mv" ...
    "mkdir" ...
    "pwd" ...
    "quit" ...
    "register" ...
    "rm" ...
    "rmf" ...
    "set" ...
    "illustrate" ...
    "run" ...
    "exec" ...
    "scriptDone" ...
    "" ...
    "" ...
    <EOL> ...
    ";" ...

2013-01-05 13:52:32,413 [main] ERROR org.apache.pig.tools.grunt.Grunt -
org.apache.pig.tools.pigscript.parser.ParseException: Encountered " <PATH>
"%default "" at line 2, column 1.
Was expecting one of:
    <EOF>
    "cat" ...
    "clear" ...
    "fs" ...
    "sh" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "aliases" ...
    "explain" ...
    "help" ...
    "history" ...
    "kill" ...
    "ls" ...
    "mv" ...
    "mkdir" ...
    "pwd" ...
    "quit" ...
    "register" ...
    "rm" ...
    "rmf" ...
    "set" ...
    "illustrate" ...
    "run" ...
    "exec" ...
    "scriptDone" ...
    "" ...
    "" ...
    <EOL> ...
    ";" ...

at
org.apache.pig.tools.pigscript.parser.PigScriptParser.generateParseException(PigScriptParser.java:1180)
at
org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:996)
at
org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:557)
at
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:194)
at
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:170)
at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:69)
at org.apache.pig.Main.run(Main.java:538)
at org.apache.pig.Main.main(Main.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

Details also at logfile: /private/tmp/pig_1357422752017.log
grunt> REGISTER $PIBBYBANK_LIB/piggybank.jar
2013-01-05 13:52:32,458 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 101: file '$PIBBYBANK_LIB/piggybank.jar' does not exist.
2013-01-05 13:52:32,458 [main] ERROR org.apache.pig.tools.grunt.Grunt -
org.apache.pig.backend.executionengine.ExecException: ERROR 101: file
'$PIBBYBANK_LIB/piggybank.jar' does not exist.
at
org.apache.pig.impl.io.FileLocalizer.fetchFilesInternal(FileLocalizer.java:794)
at org.apache.pig.impl.io.FileLocalizer.fetchFiles(FileLocalizer.java:746)
at org.apache.pig.PigServer.registerJar(PigServer.java:458)
at
org.apache.pig.tools.grunt.GruntParser.processRegister(GruntParser.java:433)
at
org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:445)
at
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:194)
at
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:170)
at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:69)
at org.apache.pig.Main.run(Main.java:538)
at org.apache.pig.Main.main(Main.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

Details also at logfile: /private/tmp/pig_1357422752017.log
grunt>
grunt> /* Setup for Avro */
grunt> %default PIG_LIB '/me/Software/pig/build/ivy/lib/Pig';
2013-01-05 13:52:32,461 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1000: Error during parsing. Encountered " <PATH> "%default "" at line
3, column 1.
Was expecting one of:
    <EOF>
    "cat" ...
    "clear" ...
    "fs" ...
    "sh" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "aliases" ...
    "explain" ...
    "help" ...
    "history" ...
    "kill" ...
    "ls" ...
    "mv" ...
    "mkdir" ...
    "pwd" ...
    "quit" ...
    "register" ...
    "rm" ...
    "rmf" ...
    "set" ...
    "illustrate" ...
    "run" ...
    "exec" ...
    "scriptDone" ...
    "" ...
    "" ...
    <EOL> ...
    ";" ...

2013-01-05 13:52:32,461 [main] ERROR org.apache.pig.tools.grunt.Grunt -
org.apache.pig.tools.pigscript.parser.ParseException: Encountered " <PATH>
"%default "" at line 3, column 1.
Was expecting one of:
    <EOF>
    "cat" ...
    "clear" ...
    "fs" ...
    "sh" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "aliases" ...
    "explain" ...
    "help" ...
    "history" .