You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by Serega Sheypak <se...@gmail.com> on 2015/05/14 10:40:37 UTC
HowTo build pig
Hi, trying to contribute
https://issues.apache.org/jira/browse/PIG-4550
Hi, can you give me guide for building pig? Usually I use maven.
I see that ivy requires two properties: hadoopVersion and hbaseVersion.
1. Is there any list of properties required to build project?
2. Do I have to contribute to trunk?
3. Which hadoop/hbase vesions I have to pick up?
4. Do I have to test contribution against different combinations of
hadoop/hbase versions?
I've read this one:
https://cwiki.apache.org/confluence/display/PIG/HowToContribute
but it gives general rules, nothing specific.
Re: HowTo build pig
Posted by Serega Sheypak <se...@gmail.com>.
Got it, I've found a way how to make JIdea ant/ivy plugins to work with pig
source code. It's not a problem. Eclipse import is easier than mine. I'll
try it next time.
Right now I just can't build project using command line.
Which java you use? I'm using oracle-jdk-8
2015-06-01 23:11 GMT+03:00 Mohit Sabharwal <mo...@cloudera.com>:
> Hi Seraga,
>
> I struggled a bit as well when trying to get Intellij to resolve
> dependencies for Pig. The trick that worked for me was to:
> 1) Run "ant -Dhadoopversion=23 eclipse-files" first
> 2) Import Pig as an Eclipse project (in the "Import project from external
> model" option)
>
> After importing, you can setup an "Ant build" Run Configuration with the
> required build options ( add -Dhadoopversion=23 to "VM parameters", etc.)
>
> Hope this helps,
> Mohit
>
>
> On Mon, Jun 1, 2015 at 9:54 AM, Michael Howard <mh...@podiumdata.com>
> wrote:
>
> > > [javac] error: cannot access InterfaceAudience
> > > [javac] class file for
> > > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > > [javac] 1 error
> >
> > > what it could be?
> >
> > I am a newbie who has also struggled to get my environments configured to
> > build pig.
> >
> > However, I have not seen this issue.
> >
> > the current trunk
> > URL: http://svn.apache.org/repos/asf/pig/trunk
> > Revision: 1682946
> > builds for me with:
> > $ ant clean -Dhadoopversion=23 jar
> >
> >
> > Michael
> >
> >
> > On Mon, Jun 1, 2015 at 11:10 AM, Serega Sheypak <
> serega.sheypak@gmail.com>
> > wrote:
> >
> > > Hi, please help...
> > >
> > > 2015-05-18 1:12 GMT+03:00 Serega Sheypak <se...@gmail.com>:
> > >
> > > > Ok, so I can share how to configure ivyIDEA for comfortable work with
> > pig
> > > > project in Idea
> > > >
> > > > ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean
> jar
> > > >
> > > > [javac] error: cannot access InterfaceAudience
> > > > [javac] class file for
> > > > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > > > [javac] 1 error
> > > >
> > > > what it could be?
> > > >
> > > >
> > > >
> > > > 2015-05-17 15:01 GMT+03:00 Serega Sheypak <serega.sheypak@gmail.com
> >:
> > > >
> > > >> Does anyone use Intelli JIdea + ivyIDEA pluginfor coding pig stuff?
> > > >> Don't understand the way:
> > > >> 1. poject should be imported to JIdea
> > > >> 2. howTo pass properties like hadoopversion and hbaseversion?
> > > >>
> > > >>
> > > >> 2015-05-15 22:23 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> > > >>
> > > >>> Rohini wrote:
> > > >>> > Updated the compilation and unit tests section in
> > > >>> > https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
> > > >>> > Hope that answers all the questions.
> > > >>> > Let me know if something is still not clear.
> > > >>>
> > > >>> Thanks for your helpful clarifications for newbies.
> > > >>>
> > > >>>
> > > >>> Michael
> > > >>>
> > > >>
> > > >>
> > > >
> > >
> >
>
Re: HowTo build pig
Posted by Mohit Sabharwal <mo...@cloudera.com>.
Hi Seraga,
I struggled a bit as well when trying to get Intellij to resolve
dependencies for Pig. The trick that worked for me was to:
1) Run "ant -Dhadoopversion=23 eclipse-files" first
2) Import Pig as an Eclipse project (in the "Import project from external
model" option)
After importing, you can setup an "Ant build" Run Configuration with the
required build options ( add -Dhadoopversion=23 to "VM parameters", etc.)
Hope this helps,
Mohit
On Mon, Jun 1, 2015 at 9:54 AM, Michael Howard <mh...@podiumdata.com>
wrote:
> > [javac] error: cannot access InterfaceAudience
> > [javac] class file for
> > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > [javac] 1 error
>
> > what it could be?
>
> I am a newbie who has also struggled to get my environments configured to
> build pig.
>
> However, I have not seen this issue.
>
> the current trunk
> URL: http://svn.apache.org/repos/asf/pig/trunk
> Revision: 1682946
> builds for me with:
> $ ant clean -Dhadoopversion=23 jar
>
>
> Michael
>
>
> On Mon, Jun 1, 2015 at 11:10 AM, Serega Sheypak <se...@gmail.com>
> wrote:
>
> > Hi, please help...
> >
> > 2015-05-18 1:12 GMT+03:00 Serega Sheypak <se...@gmail.com>:
> >
> > > Ok, so I can share how to configure ivyIDEA for comfortable work with
> pig
> > > project in Idea
> > >
> > > ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
> > >
> > > [javac] error: cannot access InterfaceAudience
> > > [javac] class file for
> > > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > > [javac] 1 error
> > >
> > > what it could be?
> > >
> > >
> > >
> > > 2015-05-17 15:01 GMT+03:00 Serega Sheypak <se...@gmail.com>:
> > >
> > >> Does anyone use Intelli JIdea + ivyIDEA pluginfor coding pig stuff?
> > >> Don't understand the way:
> > >> 1. poject should be imported to JIdea
> > >> 2. howTo pass properties like hadoopversion and hbaseversion?
> > >>
> > >>
> > >> 2015-05-15 22:23 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> > >>
> > >>> Rohini wrote:
> > >>> > Updated the compilation and unit tests section in
> > >>> > https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
> > >>> > Hope that answers all the questions.
> > >>> > Let me know if something is still not clear.
> > >>>
> > >>> Thanks for your helpful clarifications for newbies.
> > >>>
> > >>>
> > >>> Michael
> > >>>
> > >>
> > >>
> > >
> >
>
Re: HowTo build pig
Posted by Serega Sheypak <se...@gmail.com>.
Hi!
I run this command: ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns
1000" clean jar test-commit
and get:
[javac]
/Users/ssa/.ivy2/cache/org.apache.hbase/hbase-common/jars/hbase-common-0.98.12-hadoop2.jar(org/apache/hadoop/hbase/io/ImmutableBytesWritable.class):
warning: Cannot find annotation method 'value()' in type
'SuppressWarnings': class file for
edu.umd.cs.findbugs.annotations.SuppressWarnings not found
[javac]
/Users/ssa/.ivy2/cache/org.apache.hbase/hbase-common/jars/hbase-common-0.98.12-hadoop2.jar(org/apache/hadoop/hbase/io/ImmutableBytesWritable.class):
warning: Cannot find annotation method 'justification()' in type
'SuppressWarnings'
[javac] error: cannot access InterfaceAudience
[javac] class file for
org.apache.hadoop.hbase.classification.InterfaceAudience not found
[javac] 1 error
[javac] 25 warnings
BUILD FAILED
/Users/ssa/devel/myown/pig/build.xml:549: The following error occurred
while executing this line:
/Users/ssa/devel/myown/pig/build.xml:590: Compile failed; see the compiler
error output for details.
Total time: 17 seconds
Sorry, have no Idea what do I do wrong...
2015-06-03 21:02 GMT+03:00 Rohini Palaniswamy <ro...@gmail.com>:
> What error are you getting on command line. I have run with jdk8 and never
> had any issues.
>
> Regards,
>
> Rohini
>
> On Mon, Jun 1, 2015 at 1:51 PM, Serega Sheypak <se...@gmail.com>
> wrote:
>
> > Okay... will downgrade, maybe it's the root cause. But right now I don't
> > understand the reason for that.
> >
> > 2015-06-01 23:40 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> >
> > > We are still on ORCL JDK 7.
> > >
> > > $ java -version
> > >
> > > java version "1.7.0_72"
> > >
> > > Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
> > >
> > > Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)
> > >
> > > On Mon, Jun 1, 2015 at 3:53 PM, Serega Sheypak <
> serega.sheypak@gmail.com
> > >
> > > wrote:
> > >
> > > > what java you use: vendor and version?
> > > >
> > > > 2015-06-01 19:54 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> > > >
> > > > > > [javac] error: cannot access InterfaceAudience
> > > > > > [javac] class file for
> > > > > > org.apache.hadoop.hbase.classification.InterfaceAudience not
> found
> > > > > > [javac] 1 error
> > > > >
> > > > > > what it could be?
> > > > >
> > > > > I am a newbie who has also struggled to get my environments
> > configured
> > > to
> > > > > build pig.
> > > > >
> > > > > However, I have not seen this issue.
> > > > >
> > > > > the current trunk
> > > > > URL: http://svn.apache.org/repos/asf/pig/trunk
> > > > > Revision: 1682946
> > > > > builds for me with:
> > > > > $ ant clean -Dhadoopversion=23 jar
> > > > >
> > > > >
> > > > > Michael
> > > > >
> > > > >
> > > > > On Mon, Jun 1, 2015 at 11:10 AM, Serega Sheypak <
> > > > serega.sheypak@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hi, please help...
> > > > > >
> > > > > > 2015-05-18 1:12 GMT+03:00 Serega Sheypak <
> serega.sheypak@gmail.com
> > >:
> > > > > >
> > > > > > > Ok, so I can share how to configure ivyIDEA for comfortable
> work
> > > with
> > > > > pig
> > > > > > > project in Idea
> > > > > > >
> > > > > > > ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000"
> > clean
> > > > jar
> > > > > > >
> > > > > > > [javac] error: cannot access InterfaceAudience
> > > > > > > [javac] class file for
> > > > > > > org.apache.hadoop.hbase.classification.InterfaceAudience not
> > found
> > > > > > > [javac] 1 error
> > > > > > >
> > > > > > > what it could be?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2015-05-17 15:01 GMT+03:00 Serega Sheypak <
> > > serega.sheypak@gmail.com
> > > > >:
> > > > > > >
> > > > > > >> Does anyone use Intelli JIdea + ivyIDEA pluginfor coding pig
> > > stuff?
> > > > > > >> Don't understand the way:
> > > > > > >> 1. poject should be imported to JIdea
> > > > > > >> 2. howTo pass properties like hadoopversion and hbaseversion?
> > > > > > >>
> > > > > > >>
> > > > > > >> 2015-05-15 22:23 GMT+03:00 Michael Howard <
> > mhoward@podiumdata.com
> > > >:
> > > > > > >>
> > > > > > >>> Rohini wrote:
> > > > > > >>> > Updated the compilation and unit tests section in
> > > > > > >>> >
> > > https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
> > > > > > >>> > Hope that answers all the questions.
> > > > > > >>> > Let me know if something is still not clear.
> > > > > > >>>
> > > > > > >>> Thanks for your helpful clarifications for newbies.
> > > > > > >>>
> > > > > > >>>
> > > > > > >>> Michael
> > > > > > >>>
> > > > > > >>
> > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: HowTo build pig
Posted by Rohini Palaniswamy <ro...@gmail.com>.
What error are you getting on command line. I have run with jdk8 and never
had any issues.
Regards,
Rohini
On Mon, Jun 1, 2015 at 1:51 PM, Serega Sheypak <se...@gmail.com>
wrote:
> Okay... will downgrade, maybe it's the root cause. But right now I don't
> understand the reason for that.
>
> 2015-06-01 23:40 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
>
> > We are still on ORCL JDK 7.
> >
> > $ java -version
> >
> > java version "1.7.0_72"
> >
> > Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
> >
> > Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)
> >
> > On Mon, Jun 1, 2015 at 3:53 PM, Serega Sheypak <serega.sheypak@gmail.com
> >
> > wrote:
> >
> > > what java you use: vendor and version?
> > >
> > > 2015-06-01 19:54 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> > >
> > > > > [javac] error: cannot access InterfaceAudience
> > > > > [javac] class file for
> > > > > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > > > > [javac] 1 error
> > > >
> > > > > what it could be?
> > > >
> > > > I am a newbie who has also struggled to get my environments
> configured
> > to
> > > > build pig.
> > > >
> > > > However, I have not seen this issue.
> > > >
> > > > the current trunk
> > > > URL: http://svn.apache.org/repos/asf/pig/trunk
> > > > Revision: 1682946
> > > > builds for me with:
> > > > $ ant clean -Dhadoopversion=23 jar
> > > >
> > > >
> > > > Michael
> > > >
> > > >
> > > > On Mon, Jun 1, 2015 at 11:10 AM, Serega Sheypak <
> > > serega.sheypak@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi, please help...
> > > > >
> > > > > 2015-05-18 1:12 GMT+03:00 Serega Sheypak <serega.sheypak@gmail.com
> >:
> > > > >
> > > > > > Ok, so I can share how to configure ivyIDEA for comfortable work
> > with
> > > > pig
> > > > > > project in Idea
> > > > > >
> > > > > > ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000"
> clean
> > > jar
> > > > > >
> > > > > > [javac] error: cannot access InterfaceAudience
> > > > > > [javac] class file for
> > > > > > org.apache.hadoop.hbase.classification.InterfaceAudience not
> found
> > > > > > [javac] 1 error
> > > > > >
> > > > > > what it could be?
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2015-05-17 15:01 GMT+03:00 Serega Sheypak <
> > serega.sheypak@gmail.com
> > > >:
> > > > > >
> > > > > >> Does anyone use Intelli JIdea + ivyIDEA pluginfor coding pig
> > stuff?
> > > > > >> Don't understand the way:
> > > > > >> 1. poject should be imported to JIdea
> > > > > >> 2. howTo pass properties like hadoopversion and hbaseversion?
> > > > > >>
> > > > > >>
> > > > > >> 2015-05-15 22:23 GMT+03:00 Michael Howard <
> mhoward@podiumdata.com
> > >:
> > > > > >>
> > > > > >>> Rohini wrote:
> > > > > >>> > Updated the compilation and unit tests section in
> > > > > >>> >
> > https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
> > > > > >>> > Hope that answers all the questions.
> > > > > >>> > Let me know if something is still not clear.
> > > > > >>>
> > > > > >>> Thanks for your helpful clarifications for newbies.
> > > > > >>>
> > > > > >>>
> > > > > >>> Michael
> > > > > >>>
> > > > > >>
> > > > > >>
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: HowTo build pig
Posted by Serega Sheypak <se...@gmail.com>.
Okay... will downgrade, maybe it's the root cause. But right now I don't
understand the reason for that.
2015-06-01 23:40 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> We are still on ORCL JDK 7.
>
> $ java -version
>
> java version "1.7.0_72"
>
> Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
>
> Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)
>
> On Mon, Jun 1, 2015 at 3:53 PM, Serega Sheypak <se...@gmail.com>
> wrote:
>
> > what java you use: vendor and version?
> >
> > 2015-06-01 19:54 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> >
> > > > [javac] error: cannot access InterfaceAudience
> > > > [javac] class file for
> > > > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > > > [javac] 1 error
> > >
> > > > what it could be?
> > >
> > > I am a newbie who has also struggled to get my environments configured
> to
> > > build pig.
> > >
> > > However, I have not seen this issue.
> > >
> > > the current trunk
> > > URL: http://svn.apache.org/repos/asf/pig/trunk
> > > Revision: 1682946
> > > builds for me with:
> > > $ ant clean -Dhadoopversion=23 jar
> > >
> > >
> > > Michael
> > >
> > >
> > > On Mon, Jun 1, 2015 at 11:10 AM, Serega Sheypak <
> > serega.sheypak@gmail.com>
> > > wrote:
> > >
> > > > Hi, please help...
> > > >
> > > > 2015-05-18 1:12 GMT+03:00 Serega Sheypak <se...@gmail.com>:
> > > >
> > > > > Ok, so I can share how to configure ivyIDEA for comfortable work
> with
> > > pig
> > > > > project in Idea
> > > > >
> > > > > ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean
> > jar
> > > > >
> > > > > [javac] error: cannot access InterfaceAudience
> > > > > [javac] class file for
> > > > > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > > > > [javac] 1 error
> > > > >
> > > > > what it could be?
> > > > >
> > > > >
> > > > >
> > > > > 2015-05-17 15:01 GMT+03:00 Serega Sheypak <
> serega.sheypak@gmail.com
> > >:
> > > > >
> > > > >> Does anyone use Intelli JIdea + ivyIDEA pluginfor coding pig
> stuff?
> > > > >> Don't understand the way:
> > > > >> 1. poject should be imported to JIdea
> > > > >> 2. howTo pass properties like hadoopversion and hbaseversion?
> > > > >>
> > > > >>
> > > > >> 2015-05-15 22:23 GMT+03:00 Michael Howard <mhoward@podiumdata.com
> >:
> > > > >>
> > > > >>> Rohini wrote:
> > > > >>> > Updated the compilation and unit tests section in
> > > > >>> >
> https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
> > > > >>> > Hope that answers all the questions.
> > > > >>> > Let me know if something is still not clear.
> > > > >>>
> > > > >>> Thanks for your helpful clarifications for newbies.
> > > > >>>
> > > > >>>
> > > > >>> Michael
> > > > >>>
> > > > >>
> > > > >>
> > > > >
> > > >
> > >
> >
>
Re: HowTo build pig
Posted by Michael Howard <mh...@podiumdata.com>.
We are still on ORCL JDK 7.
$ java -version
java version "1.7.0_72"
Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)
On Mon, Jun 1, 2015 at 3:53 PM, Serega Sheypak <se...@gmail.com>
wrote:
> what java you use: vendor and version?
>
> 2015-06-01 19:54 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
>
> > > [javac] error: cannot access InterfaceAudience
> > > [javac] class file for
> > > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > > [javac] 1 error
> >
> > > what it could be?
> >
> > I am a newbie who has also struggled to get my environments configured to
> > build pig.
> >
> > However, I have not seen this issue.
> >
> > the current trunk
> > URL: http://svn.apache.org/repos/asf/pig/trunk
> > Revision: 1682946
> > builds for me with:
> > $ ant clean -Dhadoopversion=23 jar
> >
> >
> > Michael
> >
> >
> > On Mon, Jun 1, 2015 at 11:10 AM, Serega Sheypak <
> serega.sheypak@gmail.com>
> > wrote:
> >
> > > Hi, please help...
> > >
> > > 2015-05-18 1:12 GMT+03:00 Serega Sheypak <se...@gmail.com>:
> > >
> > > > Ok, so I can share how to configure ivyIDEA for comfortable work with
> > pig
> > > > project in Idea
> > > >
> > > > ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean
> jar
> > > >
> > > > [javac] error: cannot access InterfaceAudience
> > > > [javac] class file for
> > > > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > > > [javac] 1 error
> > > >
> > > > what it could be?
> > > >
> > > >
> > > >
> > > > 2015-05-17 15:01 GMT+03:00 Serega Sheypak <serega.sheypak@gmail.com
> >:
> > > >
> > > >> Does anyone use Intelli JIdea + ivyIDEA pluginfor coding pig stuff?
> > > >> Don't understand the way:
> > > >> 1. poject should be imported to JIdea
> > > >> 2. howTo pass properties like hadoopversion and hbaseversion?
> > > >>
> > > >>
> > > >> 2015-05-15 22:23 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> > > >>
> > > >>> Rohini wrote:
> > > >>> > Updated the compilation and unit tests section in
> > > >>> > https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
> > > >>> > Hope that answers all the questions.
> > > >>> > Let me know if something is still not clear.
> > > >>>
> > > >>> Thanks for your helpful clarifications for newbies.
> > > >>>
> > > >>>
> > > >>> Michael
> > > >>>
> > > >>
> > > >>
> > > >
> > >
> >
>
Re: HowTo build pig
Posted by Serega Sheypak <se...@gmail.com>.
what java you use: vendor and version?
2015-06-01 19:54 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> > [javac] error: cannot access InterfaceAudience
> > [javac] class file for
> > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > [javac] 1 error
>
> > what it could be?
>
> I am a newbie who has also struggled to get my environments configured to
> build pig.
>
> However, I have not seen this issue.
>
> the current trunk
> URL: http://svn.apache.org/repos/asf/pig/trunk
> Revision: 1682946
> builds for me with:
> $ ant clean -Dhadoopversion=23 jar
>
>
> Michael
>
>
> On Mon, Jun 1, 2015 at 11:10 AM, Serega Sheypak <se...@gmail.com>
> wrote:
>
> > Hi, please help...
> >
> > 2015-05-18 1:12 GMT+03:00 Serega Sheypak <se...@gmail.com>:
> >
> > > Ok, so I can share how to configure ivyIDEA for comfortable work with
> pig
> > > project in Idea
> > >
> > > ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
> > >
> > > [javac] error: cannot access InterfaceAudience
> > > [javac] class file for
> > > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > > [javac] 1 error
> > >
> > > what it could be?
> > >
> > >
> > >
> > > 2015-05-17 15:01 GMT+03:00 Serega Sheypak <se...@gmail.com>:
> > >
> > >> Does anyone use Intelli JIdea + ivyIDEA pluginfor coding pig stuff?
> > >> Don't understand the way:
> > >> 1. poject should be imported to JIdea
> > >> 2. howTo pass properties like hadoopversion and hbaseversion?
> > >>
> > >>
> > >> 2015-05-15 22:23 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> > >>
> > >>> Rohini wrote:
> > >>> > Updated the compilation and unit tests section in
> > >>> > https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
> > >>> > Hope that answers all the questions.
> > >>> > Let me know if something is still not clear.
> > >>>
> > >>> Thanks for your helpful clarifications for newbies.
> > >>>
> > >>>
> > >>> Michael
> > >>>
> > >>
> > >>
> > >
> >
>
Re: HowTo build pig
Posted by Michael Howard <mh...@podiumdata.com>.
> [javac] error: cannot access InterfaceAudience
> [javac] class file for
> org.apache.hadoop.hbase.classification.InterfaceAudience not found
> [javac] 1 error
> what it could be?
I am a newbie who has also struggled to get my environments configured to
build pig.
However, I have not seen this issue.
the current trunk
URL: http://svn.apache.org/repos/asf/pig/trunk
Revision: 1682946
builds for me with:
$ ant clean -Dhadoopversion=23 jar
Michael
On Mon, Jun 1, 2015 at 11:10 AM, Serega Sheypak <se...@gmail.com>
wrote:
> Hi, please help...
>
> 2015-05-18 1:12 GMT+03:00 Serega Sheypak <se...@gmail.com>:
>
> > Ok, so I can share how to configure ivyIDEA for comfortable work with pig
> > project in Idea
> >
> > ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
> >
> > [javac] error: cannot access InterfaceAudience
> > [javac] class file for
> > org.apache.hadoop.hbase.classification.InterfaceAudience not found
> > [javac] 1 error
> >
> > what it could be?
> >
> >
> >
> > 2015-05-17 15:01 GMT+03:00 Serega Sheypak <se...@gmail.com>:
> >
> >> Does anyone use Intelli JIdea + ivyIDEA pluginfor coding pig stuff?
> >> Don't understand the way:
> >> 1. poject should be imported to JIdea
> >> 2. howTo pass properties like hadoopversion and hbaseversion?
> >>
> >>
> >> 2015-05-15 22:23 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> >>
> >>> Rohini wrote:
> >>> > Updated the compilation and unit tests section in
> >>> > https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
> >>> > Hope that answers all the questions.
> >>> > Let me know if something is still not clear.
> >>>
> >>> Thanks for your helpful clarifications for newbies.
> >>>
> >>>
> >>> Michael
> >>>
> >>
> >>
> >
>
Re: HowTo build pig
Posted by Serega Sheypak <se...@gmail.com>.
Hi, please help...
2015-05-18 1:12 GMT+03:00 Serega Sheypak <se...@gmail.com>:
> Ok, so I can share how to configure ivyIDEA for comfortable work with pig
> project in Idea
>
> ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
>
> [javac] error: cannot access InterfaceAudience
> [javac] class file for
> org.apache.hadoop.hbase.classification.InterfaceAudience not found
> [javac] 1 error
>
> what it could be?
>
>
>
> 2015-05-17 15:01 GMT+03:00 Serega Sheypak <se...@gmail.com>:
>
>> Does anyone use Intelli JIdea + ivyIDEA pluginfor coding pig stuff?
>> Don't understand the way:
>> 1. poject should be imported to JIdea
>> 2. howTo pass properties like hadoopversion and hbaseversion?
>>
>>
>> 2015-05-15 22:23 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
>>
>>> Rohini wrote:
>>> > Updated the compilation and unit tests section in
>>> > https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
>>> > Hope that answers all the questions.
>>> > Let me know if something is still not clear.
>>>
>>> Thanks for your helpful clarifications for newbies.
>>>
>>>
>>> Michael
>>>
>>
>>
>
Re: HowTo build pig
Posted by Serega Sheypak <se...@gmail.com>.
Ok, so I can share how to configure ivyIDEA for comfortable work with pig
project in Idea
ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
[javac] error: cannot access InterfaceAudience
[javac] class file for
org.apache.hadoop.hbase.classification.InterfaceAudience not found
[javac] 1 error
what it could be?
2015-05-17 15:01 GMT+03:00 Serega Sheypak <se...@gmail.com>:
> Does anyone use Intelli JIdea + ivyIDEA pluginfor coding pig stuff?
> Don't understand the way:
> 1. poject should be imported to JIdea
> 2. howTo pass properties like hadoopversion and hbaseversion?
>
>
> 2015-05-15 22:23 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
>
>> Rohini wrote:
>> > Updated the compilation and unit tests section in
>> > https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
>> > Hope that answers all the questions.
>> > Let me know if something is still not clear.
>>
>> Thanks for your helpful clarifications for newbies.
>>
>>
>> Michael
>>
>
>
Re: HowTo build pig
Posted by Serega Sheypak <se...@gmail.com>.
Does anyone use Intelli JIdea + ivyIDEA pluginfor coding pig stuff?
Don't understand the way:
1. poject should be imported to JIdea
2. howTo pass properties like hadoopversion and hbaseversion?
2015-05-15 22:23 GMT+03:00 Michael Howard <mh...@podiumdata.com>:
> Rohini wrote:
> > Updated the compilation and unit tests section in
> > https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
> > Hope that answers all the questions.
> > Let me know if something is still not clear.
>
> Thanks for your helpful clarifications for newbies.
>
>
> Michael
>
Re: HowTo build pig
Posted by Michael Howard <mh...@podiumdata.com>.
Rohini wrote:
> Updated the compilation and unit tests section in
> https://cwiki.apache.org/confluence/display/PIG/HowToContribute.
> Hope that answers all the questions.
> Let me know if something is still not clear.
Thanks for your helpful clarifications for newbies.
Michael
Re: HowTo build pig
Posted by Rohini Palaniswamy <ro...@gmail.com>.
Updated the compilation and unit tests section in
https://cwiki.apache.org/confluence/display/PIG/HowToContribute. Hope that
answers all the questions. Let me know if something is still not clear.
Regards,
Rohini
On Fri, May 15, 2015 at 11:01 AM, Michael Howard <mh...@podiumdata.com>
wrote:
> Niels wrote:
> > ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
>
> Alan wrote:
> > Usually 'ant' or 'ant jar' will build the jars.
>
> I have found that I always have to specify -Dhadoopversion=23
>
> $ ant -Dhadoopversion=23 jar
>
> For us newbies who do not know all of this history, it would be helpful if
> someone would clarify:
>
> Q: Under what circumstances would one *not* define -Dhadoopversion=23 ?
>
> Q: Why is -Dhadoopversion=23 not the default, so that "ant jar" would be
> sufficient?
>
> Q: Why is the version 2.3 instead of something else?
>
>
> Michael
>
>
>
> On Thu, May 14, 2015 at 8:06 PM, Alan Gates <al...@gmail.com> wrote:
>
>> Usually 'ant' or 'ant jar' will build the jars.
>>
>> Alan.
>>
>> Serega Sheypak <se...@gmail.com>
>> May 14, 2015 at 1:40
>> Hi, trying to contribute
>> https://issues.apache.org/jira/browse/PIG-4550
>>
>> Hi, can you give me guide for building pig? Usually I use maven.
>> I see that ivy requires two properties: hadoopVersion and hbaseVersion.
>>
>> 1. Is there any list of properties required to build project?
>> 2. Do I have to contribute to trunk?
>> 3. Which hadoop/hbase vesions I have to pick up?
>> 4. Do I have to test contribution against different combinations of
>> hadoop/hbase versions?
>>
>> I've read this one:
>> https://cwiki.apache.org/confluence/display/PIG/HowToContribute
>>
>> but it gives general rules, nothing specific.
>>
>>
>
Re: HowTo build pig
Posted by Michael Howard <mh...@podiumdata.com>.
Niels wrote:
> ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
Alan wrote:
> Usually 'ant' or 'ant jar' will build the jars.
I have found that I always have to specify -Dhadoopversion=23
$ ant -Dhadoopversion=23 jar
For us newbies who do not know all of this history, it would be helpful if
someone would clarify:
Q: Under what circumstances would one *not* define -Dhadoopversion=23 ?
Q: Why is -Dhadoopversion=23 not the default, so that "ant jar" would be
sufficient?
Q: Why is the version 2.3 instead of something else?
Michael
On Thu, May 14, 2015 at 8:06 PM, Alan Gates <al...@gmail.com> wrote:
> Usually 'ant' or 'ant jar' will build the jars.
>
> Alan.
>
> Serega Sheypak <se...@gmail.com>
> May 14, 2015 at 1:40
> Hi, trying to contribute
> https://issues.apache.org/jira/browse/PIG-4550
>
> Hi, can you give me guide for building pig? Usually I use maven.
> I see that ivy requires two properties: hadoopVersion and hbaseVersion.
>
> 1. Is there any list of properties required to build project?
> 2. Do I have to contribute to trunk?
> 3. Which hadoop/hbase vesions I have to pick up?
> 4. Do I have to test contribution against different combinations of
> hadoop/hbase versions?
>
> I've read this one:
> https://cwiki.apache.org/confluence/display/PIG/HowToContribute
>
> but it gives general rules, nothing specific.
>
>
Re: HowTo build pig
Posted by Alan Gates <al...@gmail.com>.
Usually 'ant' or 'ant jar' will build the jars.
Alan.
> Serega Sheypak <ma...@gmail.com>
> May 14, 2015 at 1:40
> Hi, trying to contribute
> https://issues.apache.org/jira/browse/PIG-4550
>
> Hi, can you give me guide for building pig? Usually I use maven.
> I see that ivy requires two properties: hadoopVersion and hbaseVersion.
>
> 1. Is there any list of properties required to build project?
> 2. Do I have to contribute to trunk?
> 3. Which hadoop/hbase vesions I have to pick up?
> 4. Do I have to test contribution against different combinations of
> hadoop/hbase versions?
>
> I've read this one:
> https://cwiki.apache.org/confluence/display/PIG/HowToContribute
>
> but it gives general rules, nothing specific.
>
Re: HowTo build pig
Posted by Serega Sheypak <se...@gmail.com>.
sounds great!
2015-05-15 16:54 GMT+03:00 Niels Basjes <Ni...@basjes.nl>:
> The simplest steps I know of right now:
>
> - Ensure you have docker.
> - Apply the patch in the jira I mentioned
> - Run the ./start-build-env.sh command. This will provide a fully
> configured building environment with all the required tools.
> - Run the command to actually build and test your patch on the commandline:
> ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
> test-commit
>
> I never touched the ivy.settings or build.xml to run the build this way.
>
> Niels
>
> On Fri, May 15, 2015 at 12:30 PM, Serega Sheypak <serega.sheypak@gmail.com
> >
> wrote:
>
> > Yes, I've found the same. The only problem is that I can pass it using
> > ivy.settings (???)
> > I would like to escape learning ant and ivy and digging build.xml since
> > it's not my primary goal.
> >
> > Thank you for the link!
> >
> > 2015-05-15 13:14 GMT+03:00 Niels Basjes <Ni...@basjes.nl>:
> >
> > > Hi,
> > >
> > > The command line I have been using to build and test (that runs in 20
> > > minutes) is:
> > >
> > > ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
> > > test-commit
> > >
> > > I found this by looking at the confluence page you mentioned and
> digging
> > > through the build.xml.
> > >
> > > To make setting things up easier you may want to try
> > > https://issues.apache.org/jira/browse/PIG-4526
> > >
> > > Niels
> > >
> > > On Fri, May 15, 2015 at 10:21 AM, Serega Sheypak <
> > serega.sheypak@gmail.com
> > > >
> > > wrote:
> > >
> > > > Hi, trying to contribute
> > > > https://issues.apache.org/jira/browse/PIG-4550
> > > >
> > > > Hi, can you give me guide for building pig? Usually I use maven.
> > > > I see that ivy requires two properties: hadoopVersion and
> hbaseVersion.
> > > >
> > > > 1. Is there any list of properties required to build project?
> > > > 2. Do I have to contribute to trunk?
> > > > 3. Which hadoop/hbase vesions I have to pick up?
> > > > 4. Do I have to test contribution against different combinations of
> > > > hadoop/hbase versions?
> > > >
> > > > I've read this one:
> > > > https://cwiki.apache.org/confluence/display/PIG/HowToContribute
> > > >
> > > > but it gives general rules, nothing specific.
> > > >
> > >
> > >
> > >
> > > --
> > > Best regards / Met vriendelijke groeten,
> > >
> > > Niels Basjes
> > >
> >
>
>
>
> --
> Best regards / Met vriendelijke groeten,
>
> Niels Basjes
>
Re: HowTo build pig
Posted by Niels Basjes <Ni...@basjes.nl>.
The simplest steps I know of right now:
- Ensure you have docker.
- Apply the patch in the jira I mentioned
- Run the ./start-build-env.sh command. This will provide a fully
configured building environment with all the required tools.
- Run the command to actually build and test your patch on the commandline:
ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
test-commit
I never touched the ivy.settings or build.xml to run the build this way.
Niels
On Fri, May 15, 2015 at 12:30 PM, Serega Sheypak <se...@gmail.com>
wrote:
> Yes, I've found the same. The only problem is that I can pass it using
> ivy.settings (???)
> I would like to escape learning ant and ivy and digging build.xml since
> it's not my primary goal.
>
> Thank you for the link!
>
> 2015-05-15 13:14 GMT+03:00 Niels Basjes <Ni...@basjes.nl>:
>
> > Hi,
> >
> > The command line I have been using to build and test (that runs in 20
> > minutes) is:
> >
> > ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
> > test-commit
> >
> > I found this by looking at the confluence page you mentioned and digging
> > through the build.xml.
> >
> > To make setting things up easier you may want to try
> > https://issues.apache.org/jira/browse/PIG-4526
> >
> > Niels
> >
> > On Fri, May 15, 2015 at 10:21 AM, Serega Sheypak <
> serega.sheypak@gmail.com
> > >
> > wrote:
> >
> > > Hi, trying to contribute
> > > https://issues.apache.org/jira/browse/PIG-4550
> > >
> > > Hi, can you give me guide for building pig? Usually I use maven.
> > > I see that ivy requires two properties: hadoopVersion and hbaseVersion.
> > >
> > > 1. Is there any list of properties required to build project?
> > > 2. Do I have to contribute to trunk?
> > > 3. Which hadoop/hbase vesions I have to pick up?
> > > 4. Do I have to test contribution against different combinations of
> > > hadoop/hbase versions?
> > >
> > > I've read this one:
> > > https://cwiki.apache.org/confluence/display/PIG/HowToContribute
> > >
> > > but it gives general rules, nothing specific.
> > >
> >
> >
> >
> > --
> > Best regards / Met vriendelijke groeten,
> >
> > Niels Basjes
> >
>
--
Best regards / Met vriendelijke groeten,
Niels Basjes
Re: HowTo build pig
Posted by Serega Sheypak <se...@gmail.com>.
Yes, I've found the same. The only problem is that I can pass it using
ivy.settings (???)
I would like to escape learning ant and ivy and digging build.xml since
it's not my primary goal.
Thank you for the link!
2015-05-15 13:14 GMT+03:00 Niels Basjes <Ni...@basjes.nl>:
> Hi,
>
> The command line I have been using to build and test (that runs in 20
> minutes) is:
>
> ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
> test-commit
>
> I found this by looking at the confluence page you mentioned and digging
> through the build.xml.
>
> To make setting things up easier you may want to try
> https://issues.apache.org/jira/browse/PIG-4526
>
> Niels
>
> On Fri, May 15, 2015 at 10:21 AM, Serega Sheypak <serega.sheypak@gmail.com
> >
> wrote:
>
> > Hi, trying to contribute
> > https://issues.apache.org/jira/browse/PIG-4550
> >
> > Hi, can you give me guide for building pig? Usually I use maven.
> > I see that ivy requires two properties: hadoopVersion and hbaseVersion.
> >
> > 1. Is there any list of properties required to build project?
> > 2. Do I have to contribute to trunk?
> > 3. Which hadoop/hbase vesions I have to pick up?
> > 4. Do I have to test contribution against different combinations of
> > hadoop/hbase versions?
> >
> > I've read this one:
> > https://cwiki.apache.org/confluence/display/PIG/HowToContribute
> >
> > but it gives general rules, nothing specific.
> >
>
>
>
> --
> Best regards / Met vriendelijke groeten,
>
> Niels Basjes
>
Re: HowTo build pig
Posted by Niels Basjes <Ni...@basjes.nl>.
Hi,
The command line I have been using to build and test (that runs in 20
minutes) is:
ant -Dhadoopversion=23 -Djavac.args="-Xlint -Xmaxwarns 1000" clean jar
test-commit
I found this by looking at the confluence page you mentioned and digging
through the build.xml.
To make setting things up easier you may want to try
https://issues.apache.org/jira/browse/PIG-4526
Niels
On Fri, May 15, 2015 at 10:21 AM, Serega Sheypak <se...@gmail.com>
wrote:
> Hi, trying to contribute
> https://issues.apache.org/jira/browse/PIG-4550
>
> Hi, can you give me guide for building pig? Usually I use maven.
> I see that ivy requires two properties: hadoopVersion and hbaseVersion.
>
> 1. Is there any list of properties required to build project?
> 2. Do I have to contribute to trunk?
> 3. Which hadoop/hbase vesions I have to pick up?
> 4. Do I have to test contribution against different combinations of
> hadoop/hbase versions?
>
> I've read this one:
> https://cwiki.apache.org/confluence/display/PIG/HowToContribute
>
> but it gives general rules, nothing specific.
>
--
Best regards / Met vriendelijke groeten,
Niels Basjes
Fwd: HowTo build pig
Posted by Serega Sheypak <se...@gmail.com>.
Hi, trying to contribute
https://issues.apache.org/jira/browse/PIG-4550
Hi, can you give me guide for building pig? Usually I use maven.
I see that ivy requires two properties: hadoopVersion and hbaseVersion.
1. Is there any list of properties required to build project?
2. Do I have to contribute to trunk?
3. Which hadoop/hbase vesions I have to pick up?
4. Do I have to test contribution against different combinations of
hadoop/hbase versions?
I've read this one:
https://cwiki.apache.org/confluence/display/PIG/HowToContribute
but it gives general rules, nothing specific.