Yeah.. It was ANT issue. Upgrading ANT to 1.7 worked fine. Thanks, Praveenesh
On Fri, Dec 30, 2011 at 12:13 AM, Joey Krabacher <jkrabac...@gmail.com>wrote: > Looks like you may have an unsupported/older version of ant. > May try upgrading ant to something over 1.7 > > --Joey > > On Thu, Dec 29, 2011 at 11:54 PM, praveenesh kumar <praveen...@gmail.com> > wrote: > > I set up proxy, Now I am getting the following error : > > > > root@lxe9700 [/usr/local/hadoop/pig/new/trunk] $ --> ant > jar-withouthadoop > > -verbose > > Apache Ant version 1.6.5 compiled on June 5 2007 > > Buildfile: build.xml > > Detected Java version: 1.5 in: /usr/java/jdk1.6.0_25/jre > > Detected OS: Linux > > parsing buildfile /usr/local/hadoop/pig/new/trunk/build.xml with URI = > > file:///usr/local/hadoop/pig/new/trunk/build.xml > > Project base dir set to: /usr/local/hadoop/pig/new/trunk > > [property] Loading /root/build.properties > > [property] Unable to find property file: /root/build.properties > > [property] Loading /usr/local/hadoop/pig/new/trunk/build.properties > > [property] Unable to find property file: > > /usr/local/hadoop/pig/new/trunk/build.properties > > Override ignored for property test.log.dir > > Property ${clover.home} has not been set > > [available] Unable to find ${clover.home}/lib/clover.jar to set property > > clover.present > > Property ${repo} has not been set > > Override ignored for property build.dir > > Override ignored for property dist.dir > > Property ${zookeeper.jarfile} has not been set > > Build sequence for target(s) `jar-withouthadoop' is [ivy-download, > > ivy-init-dirs, ivy-probe-antlib, ivy-init-antlib, ivy-init, ivy-resolve, > > ivy-compile, init, cc-compile, prepare, genLexer, genParser, > genTreeParser, > > gen, compile, jar-withouthadoop] > > Complete build sequence is [ivy-download, ivy-init-dirs, > ivy-probe-antlib, > > ivy-init-antlib, ivy-init, ivy-resolve, ivy-compile, init, cc-compile, > > prepare, genLexer, genParser, genTreeParser, gen, compile, > > jar-withouthadoop, forrest.check, ivy-javadoc, javadoc-all, docs, > > ivy-jdiff, write-null, api-xml, api-report, jar, package, tar, > source-jar, > > patch.check, makepom, ivy-releaseaudit, releaseaudit, ivy-test, > > compile-test, pigunit-jar, javadoc, javadoc-jar, package-release, > > clover.setup, jarWithSvn, piggybank, test-e2e-local, > assert-pig-jar-exists, > > ready-to-publish, copy-jar-to-maven, jar-withouthadoopWithOutSvn, > > compile-sources, clover.info, clover, clean-sign, sign, > > test-e2e-deploy-local, ivy-publish-local, ant-task-download, mvn-taskdef, > > test-commit, test-smoke, copypom, maven-artifacts, published, > set-version, > > test-unit, test-e2e, test-contrib, test, jar-withouthadoopWithSvn, > > clover.check, check-for-findbugs, test-core, ivy-buildJar, > > checkstyle.check, tar-release, rpm, clean, smoketests-jar, mvn-install, > > test-e2e-undeploy, ivy-checkstyle, jar-all, test-pigunit, signanddeploy, > > simpledeploy, mvn-deploy, findbugs, buildJar-withouthadoop, checkstyle, > > buildJar, findbugs.check, test-patch, jarWithOutSvn, test-e2e-deploy, > > hudson-test-patch, compile-sources-all-warnings, test-contrib-internal, > > include-meta, deb, eclipse-files, generate-clover-reports, ] > > > > ivy-download: > > [get] Getting: > > http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar > > [get] To: /usr/local/hadoop/pig/new/trunk/ivy/ivy-2.2.0.jar > > > > ivy-init-dirs: > > > > ivy-probe-antlib: > > > > BUILD FAILED > > /usr/local/hadoop/pig/new/trunk/build.xml:1437: Class > > org.apache.tools.ant.taskdefs.ConditionTask doesn't support the nested > > "typefound" element. > > at > > > org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelper.java:463) > > at > > > org.apache.tools.ant.IntrospectionHelper.getNestedCreator(IntrospectionHelper.java:517) > > at > > > org.apache.tools.ant.IntrospectionHelper.getElementCreator(IntrospectionHelper.java:583) > > at > > org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:546) > > at > > > org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:326) > > at > > org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:182) > > at > > > org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158) > > at org.apache.tools.ant.Task.perform(Task.java:363) > > at org.apache.tools.ant.Target.execute(Target.java:341) > > at org.apache.tools.ant.Target.performTasks(Target.java:369) > > at > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > > at org.apache.tools.ant.Project.executeTarget(Project.java:1185) > > at > > > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) > > at org.apache.tools.ant.Project.executeTargets(Project.java:1068) > > at org.apache.tools.ant.Main.runBuild(Main.java:668) > > at org.apache.tools.ant.Main.startAnt(Main.java:187) > > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) > > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) > > > > Total time: 0 seconds > > > > > > > > On Fri, Dec 30, 2011 at 11:11 AM, praveenesh kumar <praveen...@gmail.com > >wrote: > > > >> When I am pinging its saying "Unknown host.".. > >> Is there any kind of proxy setting we need to do, when building from > ant ? > >> > >> Thanks, > >> Praveenesh > >> > >> > >> > >> On Fri, Dec 30, 2011 at 11:02 AM, Joey Krabacher <jkrabac...@gmail.com > >wrote: > >> > >>> Try pinging > >>> http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar > >>> to see if your server can connect to that URL. > >>> If not you have some kind of connection issue with outgoing requests. > >>> > >>> --Joey > >>> > >>> On Thu, Dec 29, 2011 at 11:28 PM, praveenesh kumar < > praveen...@gmail.com> > >>> wrote: > >>> > Hi everyone, > >>> > I am trying to build Pig from SVN trunk on hadoop 0.20.205. > >>> > While doing that, I am getting the following error : Any idea why its > >>> > happening ? > >>> > > >>> > Thanks, > >>> > Praveenesh > >>> > > >>> > > >>> > root@lxe [/usr/local/hadoop/pig/new/trunk] $ --> ant > jar-withouthadoop > >>> > -verbose > >>> > Apache Ant version 1.6.5 compiled on June 5 2007 > >>> > Buildfile: build.xml > >>> > Detected Java version: 1.5 in: /usr/java/jdk1.6.0_25/jre > >>> > Detected OS: Linux > >>> > parsing buildfile /usr/local/hadoop/pig/new/trunk/build.xml with URI > = > >>> > file:///usr/local/hadoop/pig/new/trunk/build.xml > >>> > Project base dir set to: /usr/local/hadoop/pig/new/trunk > >>> > [property] Loading /root/build.properties > >>> > [property] Unable to find property file: /root/build.properties > >>> > [property] Loading /usr/local/hadoop/pig/new/trunk/build.properties > >>> > [property] Unable to find property file: > >>> > /usr/local/hadoop/pig/new/trunk/build.properties > >>> > Override ignored for property test.log.dir > >>> > Property ${clover.home} has not been set > >>> > [available] Unable to find ${clover.home}/lib/clover.jar to set > property > >>> > clover.present > >>> > Property ${repo} has not been set > >>> > Override ignored for property build.dir > >>> > Override ignored for property dist.dir > >>> > Property ${zookeeper.jarfile} has not been set > >>> > Build sequence for target(s) `jar-withouthadoop' is [ivy-download, > >>> > ivy-init-dirs, ivy-probe-antlib, ivy-init-antlib, ivy-init, > ivy-resolve, > >>> > ivy-compile, init, cc-compile, prepare, genLexer, genParser, > >>> genTreeParser, > >>> > gen, compile, jar-withouthadoop] > >>> > Complete build sequence is [ivy-download, ivy-init-dirs, > >>> ivy-probe-antlib, > >>> > ivy-init-antlib, ivy-init, ivy-resolve, ivy-compile, init, > cc-compile, > >>> > prepare, genLexer, genParser, genTreeParser, gen, compile, > >>> > jar-withouthadoop, forrest.check, ivy-javadoc, javadoc-all, docs, > >>> > ivy-jdiff, write-null, api-xml, api-report, jar, package, tar, > >>> source-jar, > >>> > patch.check, makepom, ivy-releaseaudit, releaseaudit, ivy-test, > >>> > compile-test, pigunit-jar, javadoc, javadoc-jar, package-release, > >>> > clover.setup, jarWithSvn, piggybank, test-e2e-local, > >>> assert-pig-jar-exists, > >>> > ready-to-publish, copy-jar-to-maven, jar-withouthadoopWithOutSvn, > >>> > compile-sources, clover.info, clover, clean-sign, sign, > >>> > test-e2e-deploy-local, ivy-publish-local, ant-task-download, > >>> mvn-taskdef, > >>> > test-commit, test-smoke, copypom, maven-artifacts, published, > >>> set-version, > >>> > test-unit, test-e2e, test-contrib, test, jar-withouthadoopWithSvn, > >>> > clover.check, check-for-findbugs, test-core, ivy-buildJar, > >>> > checkstyle.check, tar-release, rpm, clean, smoketests-jar, > mvn-install, > >>> > test-e2e-undeploy, ivy-checkstyle, jar-all, test-pigunit, > signanddeploy, > >>> > simpledeploy, mvn-deploy, findbugs, buildJar-withouthadoop, > checkstyle, > >>> > buildJar, findbugs.check, test-patch, jarWithOutSvn, test-e2e-deploy, > >>> > hudson-test-patch, compile-sources-all-warnings, > test-contrib-internal, > >>> > include-meta, deb, eclipse-files, generate-clover-reports, ] > >>> > > >>> > ivy-download: > >>> > [get] Getting: > >>> > http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar > >>> > [get] To: /usr/local/hadoop/pig/new/trunk/ivy/ivy-2.2.0.jar > >>> > [get] Error getting > >>> > http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jarto > >>> > /usr/local/hadoop/pig/new/trunk/ivy/ivy-2.2.0.jar > >>> > > >>> > BUILD FAILED > >>> > /usr/local/hadoop/pig/new/trunk/build.xml:1443: > >>> java.net.ConnectException: > >>> > Connection timed out > >>> > at org.apache.tools.ant.taskdefs.Get.execute(Get.java:80) > >>> > at > >>> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > >>> > at org.apache.tools.ant.Task.perform(Task.java:364) > >>> > at org.apache.tools.ant.Target.execute(Target.java:341) > >>> > at org.apache.tools.ant.Target.performTasks(Target.java:369) > >>> > at > >>> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > >>> > at > org.apache.tools.ant.Project.executeTarget(Project.java:1185) > >>> > at > >>> > > >>> > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) > >>> > at > org.apache.tools.ant.Project.executeTargets(Project.java:1068) > >>> > at org.apache.tools.ant.Main.runBuild(Main.java:668) > >>> > at org.apache.tools.ant.Main.startAnt(Main.java:187) > >>> > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) > >>> > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) > >>> > Caused by: java.net.ConnectException: Connection timed out > >>> > at java.net.PlainSocketImpl.socketConnect(Native Method) > >>> > at > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) > >>> > at > >>> > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) > >>> > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) > >>> > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) > >>> > at java.net.Socket.connect(Socket.java:529) > >>> > at java.net.Socket.connect(Socket.java:478) > >>> > at sun.net.NetworkClient.doConnect(NetworkClient.java:163) > >>> > at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) > >>> > at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) > >>> > at sun.net.www.http.HttpClient.<init>(HttpClient.java:233) > >>> > at sun.net.www.http.HttpClient.New(HttpClient.java:306) > >>> > at sun.net.www.http.HttpClient.New(HttpClient.java:323) > >>> > at > >>> > > >>> > sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970) > >>> > at > >>> > > >>> > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911) > >>> > at > >>> > > >>> > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836) > >>> > at org.apache.tools.ant.taskdefs.Get.doGet(Get.java:158) > >>> > at org.apache.tools.ant.taskdefs.Get.execute(Get.java:76) > >>> > ... 12 more > >>> > --- Nested Exception --- > >>> > java.net.ConnectException: Connection timed out > >>> > at java.net.PlainSocketImpl.socketConnect(Native Method) > >>> > at > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) > >>> > at > >>> > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) > >>> > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) > >>> > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) > >>> > at java.net.Socket.connect(Socket.java:529) > >>> > at java.net.Socket.connect(Socket.java:478) > >>> > at sun.net.NetworkClient.doConnect(NetworkClient.java:163) > >>> > at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) > >>> > at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) > >>> > at sun.net.www.http.HttpClient.<init>(HttpClient.java:233) > >>> > at sun.net.www.http.HttpClient.New(HttpClient.java:306) > >>> > at sun.net.www.http.HttpClient.New(HttpClient.java:323) > >>> > at > >>> > > >>> > sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970) > >>> > at > >>> > > >>> > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911) > >>> > at > >>> > > >>> > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836) > >>> > at org.apache.tools.ant.taskdefs.Get.doGet(Get.java:158) > >>> > at org.apache.tools.ant.taskdefs.Get.execute(Get.java:76) > >>> > at > >>> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > >>> > at org.apache.tools.ant.Task.perform(Task.java:364) > >>> > at org.apache.tools.ant.Target.execute(Target.java:341) > >>> > at org.apache.tools.ant.Target.performTasks(Target.java:369) > >>> > at > >>> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > >>> > at > org.apache.tools.ant.Project.executeTarget(Project.java:1185) > >>> > at > >>> > > >>> > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) > >>> > at > org.apache.tools.ant.Project.executeTargets(Project.java:1068) > >>> > at org.apache.tools.ant.Main.runBuild(Main.java:668) > >>> > at org.apache.tools.ant.Main.startAnt(Main.java:187) > >>> > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) > >>> > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) > >>> > > >>> > Total time: 21 seconds > >>> > >> > >> >