Jenkins build is back to normal : Pig-trunk #1096

2011-09-22 Thread Apache Jenkins Server
See 




[jira] [Updated] (PIG-2261) Restore support for parenthesis in Pig 0.9

2011-09-22 Thread Richard Ding (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIG-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Ding updated PIG-2261:
--

Status: Patch Available  (was: Open)

> Restore support for parenthesis in Pig 0.9
> --
>
> Key: PIG-2261
> URL: https://issues.apache.org/jira/browse/PIG-2261
> Project: Pig
>  Issue Type: Bug
>  Components: impl
>Affects Versions: 0.9.0
>Reporter: Richard Ding
>Assignee: Richard Ding
> Fix For: 0.9.1
>
> Attachments: PIG-2261.patch
>
>
> Pig 0.8 and earlier versions used to support syntax such as 
>  
> {code}
> A =(load )
> {code}
> This was removed as "useless" in 0.9 when the grammar was redone. It turns 
> out that some user is using this for ease of code generation so we want to 
> restore it back.
> Just to clarify, Pig 0.9 continues to support composite statements such as
> {code}
> B = filter (load 'data' as (a, b)) by a > 0;
> {code}
> It just removed "useless" parenthesis and doesn't support statements like
> {code}
> A = (load 'data' as (a, b));
> {code}
>  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (PIG-2261) Restore support for parenthesis in Pig 0.9

2011-09-22 Thread Richard Ding (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIG-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Ding updated PIG-2261:
--

Attachment: PIG-2261.patch

Attaching patch that restores the support for parenthesis.

> Restore support for parenthesis in Pig 0.9
> --
>
> Key: PIG-2261
> URL: https://issues.apache.org/jira/browse/PIG-2261
> Project: Pig
>  Issue Type: Bug
>  Components: impl
>Affects Versions: 0.9.0
>Reporter: Richard Ding
>Assignee: Richard Ding
> Fix For: 0.9.1
>
> Attachments: PIG-2261.patch
>
>
> Pig 0.8 and earlier versions used to support syntax such as 
>  
> {code}
> A =(load )
> {code}
> This was removed as "useless" in 0.9 when the grammar was redone. It turns 
> out that some user is using this for ease of code generation so we want to 
> restore it back.
> Just to clarify, Pig 0.9 continues to support composite statements such as
> {code}
> B = filter (load 'data' as (a, b)) by a > 0;
> {code}
> It just removed "useless" parenthesis and doesn't support statements like
> {code}
> A = (load 'data' as (a, b));
> {code}
>  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (PIG-2299) jetty 6.1.14 startup issue causes unit tests to fail in CI

2011-09-22 Thread Daniel Dai (JIRA)

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

Daniel Dai commented on PIG-2299:
-

Though fix hadoop issue on Pig side doesn't sounds right, but I still think it 
is better to check in this, reasons are:
1. This block RE folks
2. This change only affects unit test, and all unit tests pass with the patch
3. We don't have plan to upgrade the bundled hadoop version (at least 0.9.1)

Any objection?

> jetty 6.1.14 startup issue causes unit tests to fail in CI
> --
>
> Key: PIG-2299
> URL: https://issues.apache.org/jira/browse/PIG-2299
> Project: Pig
>  Issue Type: Bug
>  Components: build
>Affects Versions: 0.9.1
> Environment: RHEL CI server
>Reporter: Thomas Weise
> Attachments: PIG-2299_jetty-6.1.26.patch
>
>
> We have observed random unit test failures in our pig CI. Same tests working 
> just fine when run on developer machine).
> The cause is a bug in jetty version used by pig, example below and more here:
> https://issues.apache.org/jira/browse/HADOOP-6386
> https://issues.apache.org/jira/browse/HADOOP-6428
> https://issues.apache.org/jira/browse/HADOOP-6528
> http://jira.codehaus.org/browse/JETTY-748
> The issue is resolved by using jetty 6.1.21 instead of 6.1.14
> java.lang.ExceptionInInitializerError
>   at 
> org.apache.pig.test.TestAlgebraicInstantiation.(TestAlgebraicInstantiation.java:41)
>   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> Caused by: java.lang.IllegalArgumentException: port out of range:-1
>   at java.net.InetSocketAddress.(InetSocketAddress.java:118)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:250)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:202)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:279)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:956)
>   at 
> org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:275)
>   at 
> org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:119)
>   at 
> org.apache.pig.test.MiniCluster.setupMiniDfsAndMrClusters(MiniCluster.java:49)
>   at 
> org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:49)
>   at org.apache.pig.test.MiniCluster.(MiniCluster.java:31)
>   at 
> org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:45)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (PIG-2224) Incorrect arity test in AstValidator.g with ALL and column-based grouping condition together in cogroup

2011-09-22 Thread Daniel Dai (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIG-2224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Dai updated PIG-2224:


Fix Version/s: (was: 0.9.1)

As Alan commented, we need to fix the parser to disallow this use case. Unlink 
it to 0.9.1 as it is not an urgent fix.

> Incorrect arity test in AstValidator.g with ALL and column-based grouping 
> condition together in cogroup
> ---
>
> Key: PIG-2224
> URL: https://issues.apache.org/jira/browse/PIG-2224
> Project: Pig
>  Issue Type: Bug
>  Components: grunt
>Affects Versions: 0.9.0
> Environment: Suse Linux 9/MacOS(10.7)
>Reporter: JArod Wen
>  Labels: ALL, arity, astvalidator, cogroup, grunt
> Attachments: pig-2224.diff.patch, pig-2224.diff.patch
>
>
> When ALL and column-based grouping condition are used together in COGROUP, 
> the arity test in AstValidator.g (line 242) incorrectly sets the arity and 
> causes exception. For example, assume we have the follow two relations:
> a = load 'A' as (col_a_0, col_a_1);
> b = load 'B' as (col_b_0, col_b_1);
> The following statement will throw an invalidation error:
> c = cogroup a by col_a_0, b ALL;
> It is because when processing a:col_a_0, the arity is set to 1; then when 
> processing b:ALL, due to the null value in join_group_by_clause will emit 
> arity 0 for the second relation, and arity test fails. 
> Reversing the two relations will be a work-around for this error:
> c = cogroup b ALL, a by col_a_0;
> However it is a lucky shot: when processing b:ALL, since join_group_by_clause 
> is null, arity is still 0; then when processing a:col_a_0, arity will be 
> initialized so no arity test is done in this case (so it passes).
> The main reason is the omission of the consideration on ALL keyword during 
> the arity test. I attached a patch to fix this, by separating the arity test 
> for both join_group_by_clause and ALL. The patch is tested locally and it 
> works.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (PIG-2299) jetty 6.1.14 startup issue causes unit tests to fail in CI

2011-09-22 Thread Daniel Dai (JIRA)

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

Daniel Dai commented on PIG-2299:
-

Newer version(eg:20.204) hadoop fixed this problem. However, since Pig bundles 
hadoop 20.2, the fix does not goes to Pig. The issue only affects tests. When 
running on cluster, Pig does not use and will not send jetty to backend.

> jetty 6.1.14 startup issue causes unit tests to fail in CI
> --
>
> Key: PIG-2299
> URL: https://issues.apache.org/jira/browse/PIG-2299
> Project: Pig
>  Issue Type: Bug
>  Components: build
>Affects Versions: 0.9.1
> Environment: RHEL CI server
>Reporter: Thomas Weise
> Attachments: PIG-2299_jetty-6.1.26.patch
>
>
> We have observed random unit test failures in our pig CI. Same tests working 
> just fine when run on developer machine).
> The cause is a bug in jetty version used by pig, example below and more here:
> https://issues.apache.org/jira/browse/HADOOP-6386
> https://issues.apache.org/jira/browse/HADOOP-6428
> https://issues.apache.org/jira/browse/HADOOP-6528
> http://jira.codehaus.org/browse/JETTY-748
> The issue is resolved by using jetty 6.1.21 instead of 6.1.14
> java.lang.ExceptionInInitializerError
>   at 
> org.apache.pig.test.TestAlgebraicInstantiation.(TestAlgebraicInstantiation.java:41)
>   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> Caused by: java.lang.IllegalArgumentException: port out of range:-1
>   at java.net.InetSocketAddress.(InetSocketAddress.java:118)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:250)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:202)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:279)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:956)
>   at 
> org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:275)
>   at 
> org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:119)
>   at 
> org.apache.pig.test.MiniCluster.setupMiniDfsAndMrClusters(MiniCluster.java:49)
>   at 
> org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:49)
>   at org.apache.pig.test.MiniCluster.(MiniCluster.java:31)
>   at 
> org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:45)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (PIG-2299) jetty 6.1.14 startup issue causes unit tests to fail in CI

2011-09-22 Thread Thomas Weise (JIRA)

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

Thomas Weise commented on PIG-2299:
---

To confirm, ant test passes in devel and CI environment with the patch above.


> jetty 6.1.14 startup issue causes unit tests to fail in CI
> --
>
> Key: PIG-2299
> URL: https://issues.apache.org/jira/browse/PIG-2299
> Project: Pig
>  Issue Type: Bug
>  Components: build
>Affects Versions: 0.9.1
> Environment: RHEL CI server
>Reporter: Thomas Weise
> Attachments: PIG-2299_jetty-6.1.26.patch
>
>
> We have observed random unit test failures in our pig CI. Same tests working 
> just fine when run on developer machine).
> The cause is a bug in jetty version used by pig, example below and more here:
> https://issues.apache.org/jira/browse/HADOOP-6386
> https://issues.apache.org/jira/browse/HADOOP-6428
> https://issues.apache.org/jira/browse/HADOOP-6528
> http://jira.codehaus.org/browse/JETTY-748
> The issue is resolved by using jetty 6.1.21 instead of 6.1.14
> java.lang.ExceptionInInitializerError
>   at 
> org.apache.pig.test.TestAlgebraicInstantiation.(TestAlgebraicInstantiation.java:41)
>   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> Caused by: java.lang.IllegalArgumentException: port out of range:-1
>   at java.net.InetSocketAddress.(InetSocketAddress.java:118)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:250)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:202)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:279)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:956)
>   at 
> org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:275)
>   at 
> org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:119)
>   at 
> org.apache.pig.test.MiniCluster.setupMiniDfsAndMrClusters(MiniCluster.java:49)
>   at 
> org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:49)
>   at org.apache.pig.test.MiniCluster.(MiniCluster.java:31)
>   at 
> org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:45)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (PIG-2197) the documentation pages use google search box instead of apache solr

2011-09-22 Thread Daniel Dai (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIG-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Dai updated PIG-2197:


Fix Version/s: (was: 0.9.1)

> the documentation pages use google search box instead of apache solr
> 
>
> Key: PIG-2197
> URL: https://issues.apache.org/jira/browse/PIG-2197
> Project: Pig
>  Issue Type: Improvement
>  Components: site
>Affects Versions: 0.9.0
>Reporter: Thejas M Nair
>
> The apache solr search on the main pig page returns better results, the 
> documentation pages also should shift to that.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Resolved] (PIG-2238) Pig 0.9 error message not useful as compared to 0.8

2011-09-22 Thread Daniel Dai (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIG-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Dai resolved PIG-2238.
-

  Resolution: Fixed
Assignee: Daniel Dai
Hadoop Flags: [Reviewed]

Patch committed to both trunk and 0.9 branch.

> Pig 0.9 error message not useful as compared to 0.8
> ---
>
> Key: PIG-2238
> URL: https://issues.apache.org/jira/browse/PIG-2238
> Project: Pig
>  Issue Type: Improvement
>Affects Versions: 0.9.0
>Reporter: Vivek Padmanabhan
>Assignee: Daniel Dai
> Fix For: 0.9.1
>
> Attachments: PIG-2238-0.patch, PIG-2238-1.patch, PIG-2238-1_0.9.patch
>
>
> The below is my faulty script (note the usage of alias F) for which Pig 0.9 
> composes not so useful message as compared to 0.8;
> A = load 'input'  using TextLoader as (doc:chararray) ;
> B = foreach A generate flatten(TOKENIZE(doc)) as myword;
> C = group B by myword parallel 30;
> D = foreach C generate group,COUNT(B) as count,SIZE(group) as size;
> E = order D by size parallel 5;
> >F = limit F 20;
> dump F;
> For this script , error message in 0.9
> >ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2240: LogicalPlanVisitor can 
> >only visit logical plan
> Error message in 0.8
> >ERROR 1000: Error during parsing. Unrecognized alias F

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (PIG-2238) Pig 0.9 error message not useful as compared to 0.8

2011-09-22 Thread Daniel Dai (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIG-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Dai updated PIG-2238:


Attachment: PIG-2238-1_0.9.patch

A slightly different patch for 0.9 branch.

> Pig 0.9 error message not useful as compared to 0.8
> ---
>
> Key: PIG-2238
> URL: https://issues.apache.org/jira/browse/PIG-2238
> Project: Pig
>  Issue Type: Improvement
>Affects Versions: 0.9.0
>Reporter: Vivek Padmanabhan
> Fix For: 0.9.1
>
> Attachments: PIG-2238-0.patch, PIG-2238-1.patch, PIG-2238-1_0.9.patch
>
>
> The below is my faulty script (note the usage of alias F) for which Pig 0.9 
> composes not so useful message as compared to 0.8;
> A = load 'input'  using TextLoader as (doc:chararray) ;
> B = foreach A generate flatten(TOKENIZE(doc)) as myword;
> C = group B by myword parallel 30;
> D = foreach C generate group,COUNT(B) as count,SIZE(group) as size;
> E = order D by size parallel 5;
> >F = limit F 20;
> dump F;
> For this script , error message in 0.9
> >ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2240: LogicalPlanVisitor can 
> >only visit logical plan
> Error message in 0.8
> >ERROR 1000: Error during parsing. Unrecognized alias F

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (PIG-2299) jetty 6.1.14 startup issue causes unit tests to fail in CI

2011-09-22 Thread Thomas Weise (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIG-2299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Weise updated PIG-2299:
--

Attachment: PIG-2299_jetty-6.1.26.patch

> jetty 6.1.14 startup issue causes unit tests to fail in CI
> --
>
> Key: PIG-2299
> URL: https://issues.apache.org/jira/browse/PIG-2299
> Project: Pig
>  Issue Type: Bug
>  Components: build
>Affects Versions: 0.9.1
> Environment: RHEL CI server
>Reporter: Thomas Weise
> Attachments: PIG-2299_jetty-6.1.26.patch
>
>
> We have observed random unit test failures in our pig CI. Same tests working 
> just fine when run on developer machine).
> The cause is a bug in jetty version used by pig, example below and more here:
> https://issues.apache.org/jira/browse/HADOOP-6386
> https://issues.apache.org/jira/browse/HADOOP-6428
> https://issues.apache.org/jira/browse/HADOOP-6528
> http://jira.codehaus.org/browse/JETTY-748
> The issue is resolved by using jetty 6.1.21 instead of 6.1.14
> java.lang.ExceptionInInitializerError
>   at 
> org.apache.pig.test.TestAlgebraicInstantiation.(TestAlgebraicInstantiation.java:41)
>   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> Caused by: java.lang.IllegalArgumentException: port out of range:-1
>   at java.net.InetSocketAddress.(InetSocketAddress.java:118)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:250)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:202)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:279)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:956)
>   at 
> org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:275)
>   at 
> org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:119)
>   at 
> org.apache.pig.test.MiniCluster.setupMiniDfsAndMrClusters(MiniCluster.java:49)
>   at 
> org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:49)
>   at org.apache.pig.test.MiniCluster.(MiniCluster.java:31)
>   at 
> org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:45)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (PIG-2299) jetty 6.1.14 startup issue causes unit tests to fail in CI

2011-09-22 Thread Thomas Weise (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIG-2299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Weise updated PIG-2299:
--

Summary: jetty 6.1.14 startup issue causes unit tests to fail in CI  (was: 
jetty startup issue causes unit tests to fail in CI)

> jetty 6.1.14 startup issue causes unit tests to fail in CI
> --
>
> Key: PIG-2299
> URL: https://issues.apache.org/jira/browse/PIG-2299
> Project: Pig
>  Issue Type: Bug
>  Components: build
>Affects Versions: 0.9.1
> Environment: RHEL CI server
>Reporter: Thomas Weise
>
> We have observed random unit test failures in our pig CI. Same tests working 
> just fine when run on developer machine).
> The cause is a bug in jetty version used by pig, example below and more here:
> https://issues.apache.org/jira/browse/HADOOP-6386
> https://issues.apache.org/jira/browse/HADOOP-6428
> https://issues.apache.org/jira/browse/HADOOP-6528
> http://jira.codehaus.org/browse/JETTY-748
> The issue is resolved by using jetty 6.1.21 instead of 6.1.14
> java.lang.ExceptionInInitializerError
>   at 
> org.apache.pig.test.TestAlgebraicInstantiation.(TestAlgebraicInstantiation.java:41)
>   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> Caused by: java.lang.IllegalArgumentException: port out of range:-1
>   at java.net.InetSocketAddress.(InetSocketAddress.java:118)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:250)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:202)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:279)
>   at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:956)
>   at 
> org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:275)
>   at 
> org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:119)
>   at 
> org.apache.pig.test.MiniCluster.setupMiniDfsAndMrClusters(MiniCluster.java:49)
>   at 
> org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:49)
>   at org.apache.pig.test.MiniCluster.(MiniCluster.java:31)
>   at 
> org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:45)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (PIG-2299) jetty startup issue causes unit tests to fail in CI

2011-09-22 Thread Thomas Weise (JIRA)
jetty startup issue causes unit tests to fail in CI
---

 Key: PIG-2299
 URL: https://issues.apache.org/jira/browse/PIG-2299
 Project: Pig
  Issue Type: Bug
  Components: build
Affects Versions: 0.9.1
 Environment: RHEL CI server
Reporter: Thomas Weise


We have observed random unit test failures in our pig CI. Same tests working 
just fine when run on developer machine).

The cause is a bug in jetty version used by pig, example below and more here:

https://issues.apache.org/jira/browse/HADOOP-6386
https://issues.apache.org/jira/browse/HADOOP-6428
https://issues.apache.org/jira/browse/HADOOP-6528
http://jira.codehaus.org/browse/JETTY-748


The issue is resolved by using jetty 6.1.21 instead of 6.1.14


java.lang.ExceptionInInitializerError
at 
org.apache.pig.test.TestAlgebraicInstantiation.(TestAlgebraicInstantiation.java:41)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
Caused by: java.lang.IllegalArgumentException: port out of range:-1
at java.net.InetSocketAddress.(InetSocketAddress.java:118)
at 
org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:250)
at 
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:202)
at 
org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:279)
at 
org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:956)
at 
org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:275)
at 
org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:119)
at 
org.apache.pig.test.MiniCluster.setupMiniDfsAndMrClusters(MiniCluster.java:49)
at 
org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:49)
at org.apache.pig.test.MiniCluster.(MiniCluster.java:31)
at 
org.apache.pig.test.MiniGenericCluster.(MiniGenericCluster.java:45)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira