pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-4395) Exception while executing Pig 0.13
Date Mon, 02 Feb 2015 18:29:34 GMT

    [ https://issues.apache.org/jira/browse/PIG-4395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14301604#comment-14301604
] 

Daniel Dai commented on PIG-4395:
---------------------------------

We don't need Hadoop in local mode since Pig bundles Hadoop in distribution in theory. However,
the bundled Hadoop is not compiled against Windows. AFAIK, Hadoop 2.6.0 supports Windows,
but you will need to recompile under Windows. So far, I only tested Pig Windows with HDP,
which has the Hadoop Windows binary.

> Exception while executing Pig 0.13
> ----------------------------------
>
>                 Key: PIG-4395
>                 URL: https://issues.apache.org/jira/browse/PIG-4395
>             Project: Pig
>          Issue Type: Bug
>          Components: data
>    Affects Versions: 0.13.0
>         Environment: Windows 7 Ultimate, HADOOP_HOME=D:\HADOOP-2-6-0\HADOOP-2.6.0
> JAVA=c:\progra~1\java\jdk1.8.0_25\bin\java
> JAVA_HOME=c:\progra~1\java\jdk1.8.0_25
>            Reporter: Venkatasubramaniam Ramakrishnan
>            Priority: Critical
>              Labels: test
>
> Pig file with contents below:
> a = LOAD 'o.csv' AS (NAME:chararray,COUNTRY:chararray,YEAR:int,SPORT:chararray,GOLD:int,SILVER:int,BRONZE:int,TOTAL:int);
> DUMP a;
> o.csv contents:
> Athlete	Country	Year	Sport	Gold	Silver	Bronze	Total
> Yang Yilin	China	2008	Gymnastics	1	0	2	3
> Leisel Jones	Australia	2000	Swimming	0	2	0	2
> Logs:
> Pig Stack Trace
> ---------------
> ERROR 1066: Unable to open iterator for alias a
> org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1066: Unable to open iterator
for alias a
> 	at org.apache.pig.PigServer.openIterator(PigServer.java:912)
> 	at org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:752)
> 	at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:372)
> 	at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:228)
> 	at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:203)
> 	at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:81)
> 	at org.apache.pig.Main.run(Main.java:479)
> 	at org.apache.pig.Main.main(Main.java:156)
> Caused by: org.apache.pig.backend.datastorage.DataStorageException: ERROR 0: java.io.IOException:
Failed to set permissions of path: \tmp\temp-944120283 to 0700
> 	at org.apache.pig.impl.io.FileLocalizer.relativeRoot(FileLocalizer.java:484)
> 	at org.apache.pig.impl.io.FileLocalizer.getTemporaryPath(FileLocalizer.java:515)
> 	at org.apache.pig.impl.io.FileLocalizer.getTemporaryPath(FileLocalizer.java:511)
> 	at org.apache.pig.PigServer.openIterator(PigServer.java:887)
> 	... 7 more
> Caused by: java.io.IOException: Failed to set permissions of path: \tmp\temp-944120283
to 0700
> 	at org.apache.hadoop.fs.FileUtil.checkReturnValue(FileUtil.java:689)
> 	at org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:662)
> 	at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:509)
> 	at org.apache.hadoop.fs.FilterFileSystem.setPermission(FilterFileSystem.java:286)
> 	at org.apache.pig.backend.hadoop.datastorage.HPath.setPermission(HPath.java:122)
> 	at org.apache.pig.impl.io.FileLocalizer.createRelativeRoot(FileLocalizer.java:495)
> 	at org.apache.pig.impl.io.FileLocalizer.relativeRoot(FileLocalizer.java:481)
> 	... 10 more
> ================================================================================



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message