You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by abhinav narain <ab...@gmail.com> on 2011/02/07 09:27:15 UTC

hadoop core 0.20.2 not found

hi,
  I have mailed my problem on dev-list and have not received any replies.
Please help me, if you have some spare time.
I have hive 0.6.0, hadoop 0.20.2 in my /home/narain folder and run as usual.

I took the hive source code provided in the hive tar bal and copied it to
/project/narain
When i build the project using :
$ ant -Dhadoop.version=0.20.2 package
it results in sayign hadoop core 0.20.2 not found.
In the output it also give hadoop core 0.17.2.1, 18.3, 0.20.0 found as
remarks !
What shall i do to get the compilation right ?

Is it unable to locate hadoop 0.20.2 in /home/narain, or its searching
hadoop 0.20.2 in repo (connected to using Ant ) and unable to find ?

 this is a part of output :
[ivy:retrieve]     ==== hadoop-source: tried
[ivy:retrieve]       -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source):
[ivy:retrieve]
http://mirror.facebook.net/facebook/hive-deps/hadoop/core/hadoop-0.20.2/hadoop-0.20.2.tar.gz
[ivy:retrieve]     ==== apache-snapshot: tried
[ivy:retrieve]
https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.2/core-0.20.2.pom
[ivy:retrieve]       -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source):
[ivy:retrieve]
https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.2/hadoop-0.20.2.tar.gz
[ivy:retrieve]     ==== maven2: tried
[ivy:retrieve]
http://repo1.maven.org/maven2/hadoop/core/0.20.2/core-0.20.2.pom
[ivy:retrieve]       -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source):
[ivy:retrieve]
http://repo1.maven.org/maven2/hadoop/core/0.20.2/core-0.20.2.tar.gz
[ivy:retrieve]     ==== datanucleus-repo: tried
[ivy:retrieve]       -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source):
[ivy:retrieve]
http://www.datanucleus.org/downloads/maven2/hadoop/core/0.20.2/core-0.20.2.tar.gz
[ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]         ::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]         :: hadoop#core;0.20.2: not found
[ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
/project/narain/src/build.xml:169: The following error occurred while
executing this line:
/project/narain/src/build.xml:108: The following error occurred while
executing this line:
/project/narain/src/build-common.xml:210: The following error occurred while
executing this line:
/project/narain/src/build-common.xml:201: The following error occurred while
executing this line:
/project/narain/src/build-common.xml:179: impossible to resolve
dependencies:
    resolve failed - see output for details

If I use instead just : $ ant package
I get the following error :

compile:
     [echo] Compiling: hbase-handler
    [javac] /project/narain/src/build-common.xml:274: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
to false for repeatable builds
    [javac] Compiling 15 source files to
/project/narain/src/build/hbase-handler/classes
    [javac]
/project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:3:
package javax.servlet does not exist
    [javac] import javax.servlet.ServletContext;
    [javac]                     ^
    [javac]
/project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:4:
package javax.servlet does not exist
    [javac] import javax.servlet.ServletContextEvent;
    [javac]                     ^
    [javac]
/project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:14:
package javax.servlet does not exist
    [javac] public class HWIContextListener implements
javax.servlet.ServletContextListener {
    [javac]                                                         ^
    [javac]
/project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:27:
cannot find symbol
    [javac] symbol  : class ServletContextEvent
    [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener
    [javac]   public void contextInitialized(ServletContextEvent sce) {
    [javac]                                  ^
    [javac]
/project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:46:
cannot find symbol
    [javac] symbol  : class ServletContextEvent
    [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener
    [javac]   public void contextDestroyed(ServletContextEvent sce) {
    [javac]                                ^
    [javac]
org/apache/hadoop/hbase/io/RowResult.class(org/apache/hadoop/hbase/io:RowResult.class):
warning: Cannot find annotation method 'base64()' in type
'agilejson.TOJSON': class file for agilejson.TOJSON not found
    [javac]
org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class):
warning: Cannot find annotation method 'fieldName()' in type
'agilejson.TOJSON'
    [javac]
org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class):
warning: Cannot find annotation method 'base64()' in type 'agilejson.TOJSON'
    [javac]
org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class):
warning: Cannot find annotation method 'prefixLength()' in type
'agilejson.TOJSON'
    [javac]
org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class):
warning: Cannot find annotation method 'prefixLength()' in type
'agilejson.TOJSON'
    [javac]
org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class):
warning: Cannot find annotation method 'prefixLength()' in type
'agilejson.TOJSON'
    [javac]
org/apache/hadoop/hbase/HTableDescriptor.class(org/apache/hadoop/hbase:HTableDescriptor.class):
warning: Cannot find annotation method 'fieldName()' in type
'agilejson.TOJSON'
    [javac]
org/apache/hadoop/hbase/io/Cell.class(org/apache/hadoop/hbase/io:Cell.class):
warning: Cannot find annotation method 'base64()' in type 'agilejson.TOJSON'
    [javac]
/project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:28:
cannot find symbol
    [javac] symbol  : class ServletContext
    [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener
    [javac]     ServletContext sc = sce.getServletContext();
    [javac]     ^
    [javac]
/project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:47:
cannot find symbol
    [javac] symbol  : class ServletContext
    [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener
    [javac]     ServletContext sc = sce.getServletContext();
    [javac]     ^
    [javac]
/project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIServer.java:88:
package org.mortbay.util does not exist
    [javac]         } catch (org.mortbay.util.MultiException ex) {
    [javac]                                  ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 8 errors
    [javac] 8 warnings

BUILD FAILED
/project/narain/src/build.xml:169: The following error occurred while
executing this line:
/project/narain/src/build.xml:108: The following error occurred while
executing this line:
/project/narain/src/build-common.xml:274: Compile failed; see the compiler
error output for details.


Please comment on what I shall do, as i have run out of ideas.

regards,
Abhinav Narain

Re: hadoop core 0.20.2 not found

Posted by abhinav narain <ab...@gmail.com>.
On Thu, Feb 10, 2011 at 2:17 PM, Carl Steinbach <ca...@cloudera.com> wrote:

> Hi Abhinav,
>
> Assuming that your .ant directory already contains all of the Hive
> dependencies, then you should be able to build Hive in an offline mode
> using
> the following ant command:
>
> % ant -Divy.cache.name=offline
>
> Setting ivy.cache.name=offline tells Ivy to look for dependencies in its
> local cache (.ant/cache) before looking for things on the network.
>
FYI.
This did not work.

>
> I also found a blog post that describes how to access Ivy resources over a
> proxy via a local instance of cntlm:
>
>
> http://ramathoughts.blogspot.com/2010/04/dealing-with-pentaho-bi-server-build.html
>
> I have already done these things.

> In my opinion the cntlm route looks like the easiest to get working, and it
> doesn't require you to make any special settings to your Hive build
> properties.
>
> I did not make any changes to these properties. Just added cntlm and added
ANT_OPTS variable in .bashrc.

I don't know why it does not work and still contacts remote server even
though offline mode is given in *ant* as instructed by you.

regards,
Abhinav

>
> On Tue, Feb 8, 2011 at 11:48 PM, abhinav narain
> <ab...@gmail.com>wrote:
>
> > I compiled the code on remote machine without a proxy and it worked.
> > Then, I copied the .ant folder to my comp(in lab) and the hive code also
> >
> > Now, I can see some ivy*.xml files and jar files in the
> > org.apache.hbase/hbase folder .
> >
> > I build the same code using the new .ant folder in my home and I again
> get
> > the same error as before of hbase-0.89.0-SNAPSHOT.jar not found.
> >
> > Is everyone on the development of hive having public ips and none behind
> a
> > proxy ? facing similar issues ?
> >
> > I am unable to understand, why is it unable to fetch the jars when they
> are
> > already present in the cache ?
> >
> >
> > same error again :
> >
> >
> >
> http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.pom
> > [ivy:resolve]       -- artifact
> > org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
> > [ivy:resolve]
> >
> >
> http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> > [ivy:resolve]       -- artifact
> > org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
> > [ivy:resolve]
> >
> >
> http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> > [ivy:resolve]     ==== datanucleus-repo: tried
> > [ivy:resolve]       -- artifact
> > org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
> > [ivy:resolve]
> >
> >
> http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> > [ivy:resolve]       -- artifact
> > org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
> > [ivy:resolve]
> >
> >
> http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> > [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]         ::          UNRESOLVED DEPENDENCIES         ::
> > [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
> > [ivy:resolve]         :: org.apache.hbase#hbase;0.89.0-SNAPSHOT: not
> found
> >
> >    Abhinav Narain
> >
> > On Wed, Feb 9, 2011 at 2:31 AM, Carl Steinbach <ca...@cloudera.com>
> wrote:
> > >
> > >> Hi Abhinav,
> > >>
> > >> Please make sure the .ant cache directory contains the following
> files:
> > >>
> > >> .ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
> > >>
> > >>
> >
> .ant/cache/org.apache.hbase/hbase/test-jars/hbase-0.89.0-SNAPSHOT-tests.jar
> > >>
> > >> I don't have any more suggestions if this does not work. Sorry.
> > >>
> > >> Carl
> > >>
> > >
> >
>

Re: hadoop core 0.20.2 not found

Posted by Carl Steinbach <ca...@cloudera.com>.
Hi Abhinav,

Assuming that your .ant directory already contains all of the Hive
dependencies, then you should be able to build Hive in an offline mode using
the following ant command:

% ant -Divy.cache.name=offline

Setting ivy.cache.name=offline tells Ivy to look for dependencies in its
local cache (.ant/cache) before looking for things on the network.

I also found a blog post that describes how to access Ivy resources over a
proxy via a local instance of cntlm:

http://ramathoughts.blogspot.com/2010/04/dealing-with-pentaho-bi-server-build.html

In my opinion the cntlm route looks like the easiest to get working, and it
doesn't require you to make any special settings to your Hive build
properties.

Hope this helps.

Carl

On Tue, Feb 8, 2011 at 11:48 PM, abhinav narain
<ab...@gmail.com>wrote:

> I compiled the code on remote machine without a proxy and it worked.
> Then, I copied the .ant folder to my comp(in lab) and the hive code also
>
> Now, I can see some ivy*.xml files and jar files in the
> org.apache.hbase/hbase folder .
>
> I build the same code using the new .ant folder in my home and I again get
> the same error as before of hbase-0.89.0-SNAPSHOT.jar not found.
>
> Is everyone on the development of hive having public ips and none behind a
> proxy ? facing similar issues ?
>
> I am unable to understand, why is it unable to fetch the jars when they are
> already present in the cache ?
>
>
> same error again :
>
>
> http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.pom
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
> [ivy:resolve]
>
> http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
> [ivy:resolve]
>
> http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]     ==== datanucleus-repo: tried
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
> [ivy:resolve]
>
> http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
> [ivy:resolve]
>
> http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]         ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]         :: org.apache.hbase#hbase;0.89.0-SNAPSHOT: not found
>
>    Abhinav Narain
>
> On Wed, Feb 9, 2011 at 2:31 AM, Carl Steinbach <ca...@cloudera.com> wrote:
> >
> >> Hi Abhinav,
> >>
> >> Please make sure the .ant cache directory contains the following files:
> >>
> >> .ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
> >>
> >>
> .ant/cache/org.apache.hbase/hbase/test-jars/hbase-0.89.0-SNAPSHOT-tests.jar
> >>
> >> I don't have any more suggestions if this does not work. Sorry.
> >>
> >> Carl
> >>
> >
>

Re: hadoop core 0.20.2 not found

Posted by abhinav narain <ab...@gmail.com>.
I compiled the code on remote machine without a proxy and it worked.
Then, I copied the .ant folder to my comp(in lab) and the hive code also

Now, I can see some ivy*.xml files and jar files in the
org.apache.hbase/hbase folder .

I build the same code using the new .ant folder in my home and I again get
the same error as before of hbase-0.89.0-SNAPSHOT.jar not found.

Is everyone on the development of hive having public ips and none behind a
proxy ? facing similar issues ?

I am unable to understand, why is it unable to fetch the jars when they are
already present in the cache ?


same error again :

http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.pom
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
[ivy:resolve]
http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
[ivy:resolve]
http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]     ==== datanucleus-repo: tried
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
[ivy:resolve]
http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
[ivy:resolve]
http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         :: org.apache.hbase#hbase;0.89.0-SNAPSHOT: not found

    Abhinav Narain

On Wed, Feb 9, 2011 at 2:31 AM, Carl Steinbach <ca...@cloudera.com> wrote:
>
>> Hi Abhinav,
>>
>> Please make sure the .ant cache directory contains the following files:
>>
>> .ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
>>
>> .ant/cache/org.apache.hbase/hbase/test-jars/hbase-0.89.0-SNAPSHOT-tests.jar
>>
>> I don't have any more suggestions if this does not work. Sorry.
>>
>> Carl
>>
>

Re: hadoop core 0.20.2 not found

Posted by Carl Steinbach <ca...@cloudera.com>.
Hi Abhinav,

Please make sure the .ant cache directory contains the following files:

.ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
.ant/cache/org.apache.hbase/hbase/test-jars/hbase-0.89.0-SNAPSHOT-tests.jar

I don't have any more suggestions if this does not work. Sorry.

Carl

On Tue, Feb 8, 2011 at 8:40 AM, abhinav narain <ab...@gmail.com>wrote:

> I am waiting, if Carl can suggest anything ?
>
> On Tue, Feb 8, 2011 at 9:08 PM, abhinav narain <abhinavnarain10@gmail.com
> >wrote:
>
> > Only if I had a machine, that was not behind a proxy !
> >
> >
> > On Tue, Feb 8, 2011 at 8:43 PM, Edward Capriolo <edlinuxguru@gmail.com
> >wrote:
> >
> >> On Tue, Feb 8, 2011 at 5:40 AM, abhinav narain
> >> <ab...@gmail.com> wrote:
> >> > On Mon, Feb 7, 2011 at 11:29 PM, Carl Steinbach <ca...@cloudera.com>
> >> wrote:
> >> >
> >> >> Hi Abhinav,
> >> >>
> >> >> I am using a proxy.
> >> >> > I am using cntlm for authentication.
> >> >> > I have added localhost:1234 in ANT_OPTS ... as above before
> compiling
> >> >> >
> >> >> >
> >> >> It looks like Ivy supports NTLM authentication:
> >> >>
> >> >>
> >> >>
> >>
> https://issues.apache.org/jira/browse/IVY-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> >> >>
> >> >> Can you try also setting -Dhttp.proxyRealm=<your_domain> in ANT_OPTS
> >> and
> >> >> let
> >> >> us know if it works?
> >> >>
> >> >> Sadly, the above does not help.
> >> > I get the same error.
> >> > The following is a line from my .bashrc
> >> > export ANT_OPTS="-Dhttp.proxyHost=localhost -Dhttp.proxyPort=1234
> >> > -Dhttp.proxyRealm=iitm.ac.in"
> >> >
> >> >
> >> >
> >>
> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/
> >> >
> >> >> > >
> >> $HOME/.ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
> >> >> > >
> >> >> > > There is no folder as org.apache.hbase ....
> >> >> > but there are folders as org.apache.{zookeeper},{commons} etc ...
> >> >> > Shall i create one and place the downloaded hbase jar there ?
> >> >>
> >> >>
> >> >> Yes, if you can't get Ivy to work then you'll need to satisfy the
> >> >> dependency
> >> >> manually by downloading the hbase jar and copying it to
> >> >>
> $HOME/.ant/cache/org/apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
> >> >>
> >> > I have added the following jars in the folder
> >> > $HOME/.ant/cache/org{.}apache.hbase/hbase/jars/
> >> >
> >> > Please note the dot{.} in the path instead of a slash{/}
> >> >
> >> > hbase-0.89.0-SNAPSHOT-tests.jar,  hbase-0.89.0-SNAPSHOT.jar,
> >> > hbase-0.89.0-SNAPSHOT.pom
> >> >
> >> > But, I still get the same error as before !
> >> > What should I do.
> >> > Are there any xml fiels that have to be manually added too ?
> >> >
> >> > Abhinav Narain
> >> >
> >>
> >> I am a big fan of quixotic quests, but have you considering building
> >> on a machine without this proxy? Java byte-code is portable after all.
> >>
> >
> >
>

Re: hadoop core 0.20.2 not found

Posted by abhinav narain <ab...@gmail.com>.
I am waiting, if Carl can suggest anything ?

On Tue, Feb 8, 2011 at 9:08 PM, abhinav narain <ab...@gmail.com>wrote:

> Only if I had a machine, that was not behind a proxy !
>
>
> On Tue, Feb 8, 2011 at 8:43 PM, Edward Capriolo <ed...@gmail.com>wrote:
>
>> On Tue, Feb 8, 2011 at 5:40 AM, abhinav narain
>> <ab...@gmail.com> wrote:
>> > On Mon, Feb 7, 2011 at 11:29 PM, Carl Steinbach <ca...@cloudera.com>
>> wrote:
>> >
>> >> Hi Abhinav,
>> >>
>> >> I am using a proxy.
>> >> > I am using cntlm for authentication.
>> >> > I have added localhost:1234 in ANT_OPTS ... as above before compiling
>> >> >
>> >> >
>> >> It looks like Ivy supports NTLM authentication:
>> >>
>> >>
>> >>
>> https://issues.apache.org/jira/browse/IVY-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>> >>
>> >> Can you try also setting -Dhttp.proxyRealm=<your_domain> in ANT_OPTS
>> and
>> >> let
>> >> us know if it works?
>> >>
>> >> Sadly, the above does not help.
>> > I get the same error.
>> > The following is a line from my .bashrc
>> > export ANT_OPTS="-Dhttp.proxyHost=localhost -Dhttp.proxyPort=1234
>> > -Dhttp.proxyRealm=iitm.ac.in"
>> >
>> >
>> >
>> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/
>> >
>> >> > >
>> $HOME/.ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
>> >> > >
>> >> > > There is no folder as org.apache.hbase ....
>> >> > but there are folders as org.apache.{zookeeper},{commons} etc ...
>> >> > Shall i create one and place the downloaded hbase jar there ?
>> >>
>> >>
>> >> Yes, if you can't get Ivy to work then you'll need to satisfy the
>> >> dependency
>> >> manually by downloading the hbase jar and copying it to
>> >> $HOME/.ant/cache/org/apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
>> >>
>> > I have added the following jars in the folder
>> > $HOME/.ant/cache/org{.}apache.hbase/hbase/jars/
>> >
>> > Please note the dot{.} in the path instead of a slash{/}
>> >
>> > hbase-0.89.0-SNAPSHOT-tests.jar,  hbase-0.89.0-SNAPSHOT.jar,
>> > hbase-0.89.0-SNAPSHOT.pom
>> >
>> > But, I still get the same error as before !
>> > What should I do.
>> > Are there any xml fiels that have to be manually added too ?
>> >
>> > Abhinav Narain
>> >
>>
>> I am a big fan of quixotic quests, but have you considering building
>> on a machine without this proxy? Java byte-code is portable after all.
>>
>
>

Re: hadoop core 0.20.2 not found

Posted by abhinav narain <ab...@gmail.com>.
Only if I had a machine, that was not behind a proxy !

On Tue, Feb 8, 2011 at 8:43 PM, Edward Capriolo <ed...@gmail.com>wrote:

> On Tue, Feb 8, 2011 at 5:40 AM, abhinav narain
> <ab...@gmail.com> wrote:
> > On Mon, Feb 7, 2011 at 11:29 PM, Carl Steinbach <ca...@cloudera.com>
> wrote:
> >
> >> Hi Abhinav,
> >>
> >> I am using a proxy.
> >> > I am using cntlm for authentication.
> >> > I have added localhost:1234 in ANT_OPTS ... as above before compiling
> >> >
> >> >
> >> It looks like Ivy supports NTLM authentication:
> >>
> >>
> >>
> https://issues.apache.org/jira/browse/IVY-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> >>
> >> Can you try also setting -Dhttp.proxyRealm=<your_domain> in ANT_OPTS and
> >> let
> >> us know if it works?
> >>
> >> Sadly, the above does not help.
> > I get the same error.
> > The following is a line from my .bashrc
> > export ANT_OPTS="-Dhttp.proxyHost=localhost -Dhttp.proxyPort=1234
> > -Dhttp.proxyRealm=iitm.ac.in"
> >
> >
> >
> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/
> >
> >> > >
> $HOME/.ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
> >> > >
> >> > > There is no folder as org.apache.hbase ....
> >> > but there are folders as org.apache.{zookeeper},{commons} etc ...
> >> > Shall i create one and place the downloaded hbase jar there ?
> >>
> >>
> >> Yes, if you can't get Ivy to work then you'll need to satisfy the
> >> dependency
> >> manually by downloading the hbase jar and copying it to
> >> $HOME/.ant/cache/org/apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
> >>
> > I have added the following jars in the folder
> > $HOME/.ant/cache/org{.}apache.hbase/hbase/jars/
> >
> > Please note the dot{.} in the path instead of a slash{/}
> >
> > hbase-0.89.0-SNAPSHOT-tests.jar,  hbase-0.89.0-SNAPSHOT.jar,
> > hbase-0.89.0-SNAPSHOT.pom
> >
> > But, I still get the same error as before !
> > What should I do.
> > Are there any xml fiels that have to be manually added too ?
> >
> > Abhinav Narain
> >
>
> I am a big fan of quixotic quests, but have you considering building
> on a machine without this proxy? Java byte-code is portable after all.
>

Re: hadoop core 0.20.2 not found

Posted by Edward Capriolo <ed...@gmail.com>.
On Tue, Feb 8, 2011 at 5:40 AM, abhinav narain
<ab...@gmail.com> wrote:
> On Mon, Feb 7, 2011 at 11:29 PM, Carl Steinbach <ca...@cloudera.com> wrote:
>
>> Hi Abhinav,
>>
>> I am using a proxy.
>> > I am using cntlm for authentication.
>> > I have added localhost:1234 in ANT_OPTS ... as above before compiling
>> >
>> >
>> It looks like Ivy supports NTLM authentication:
>>
>>
>> https://issues.apache.org/jira/browse/IVY-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>>
>> Can you try also setting -Dhttp.proxyRealm=<your_domain> in ANT_OPTS and
>> let
>> us know if it works?
>>
>> Sadly, the above does not help.
> I get the same error.
> The following is a line from my .bashrc
> export ANT_OPTS="-Dhttp.proxyHost=localhost -Dhttp.proxyPort=1234
> -Dhttp.proxyRealm=iitm.ac.in"
>
>
> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/
>
>> > > $HOME/.ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
>> > >
>> > > There is no folder as org.apache.hbase ....
>> > but there are folders as org.apache.{zookeeper},{commons} etc ...
>> > Shall i create one and place the downloaded hbase jar there ?
>>
>>
>> Yes, if you can't get Ivy to work then you'll need to satisfy the
>> dependency
>> manually by downloading the hbase jar and copying it to
>> $HOME/.ant/cache/org/apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
>>
> I have added the following jars in the folder
> $HOME/.ant/cache/org{.}apache.hbase/hbase/jars/
>
> Please note the dot{.} in the path instead of a slash{/}
>
> hbase-0.89.0-SNAPSHOT-tests.jar,  hbase-0.89.0-SNAPSHOT.jar,
> hbase-0.89.0-SNAPSHOT.pom
>
> But, I still get the same error as before !
> What should I do.
> Are there any xml fiels that have to be manually added too ?
>
> Abhinav Narain
>

I am a big fan of quixotic quests, but have you considering building
on a machine without this proxy? Java byte-code is portable after all.

Re: hadoop core 0.20.2 not found

Posted by abhinav narain <ab...@gmail.com>.
On Mon, Feb 7, 2011 at 11:29 PM, Carl Steinbach <ca...@cloudera.com> wrote:

> Hi Abhinav,
>
> I am using a proxy.
> > I am using cntlm for authentication.
> > I have added localhost:1234 in ANT_OPTS ... as above before compiling
> >
> >
> It looks like Ivy supports NTLM authentication:
>
>
> https://issues.apache.org/jira/browse/IVY-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
> Can you try also setting -Dhttp.proxyRealm=<your_domain> in ANT_OPTS and
> let
> us know if it works?
>
> Sadly, the above does not help.
I get the same error.
The following is a line from my .bashrc
export ANT_OPTS="-Dhttp.proxyHost=localhost -Dhttp.proxyPort=1234
-Dhttp.proxyRealm=iitm.ac.in"


https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/

> > > $HOME/.ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
> > >
> > > There is no folder as org.apache.hbase ....
> > but there are folders as org.apache.{zookeeper},{commons} etc ...
> > Shall i create one and place the downloaded hbase jar there ?
>
>
> Yes, if you can't get Ivy to work then you'll need to satisfy the
> dependency
> manually by downloading the hbase jar and copying it to
> $HOME/.ant/cache/org/apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
>
I have added the following jars in the folder
$HOME/.ant/cache/org{.}apache.hbase/hbase/jars/

Please note the dot{.} in the path instead of a slash{/}

hbase-0.89.0-SNAPSHOT-tests.jar,  hbase-0.89.0-SNAPSHOT.jar,
hbase-0.89.0-SNAPSHOT.pom

But, I still get the same error as before !
What should I do.
Are there any xml fiels that have to be manually added too ?

Abhinav Narain

Re: hadoop core 0.20.2 not found

Posted by Carl Steinbach <ca...@cloudera.com>.
Hi Abhinav,

I am using a proxy.
> I am using cntlm for authentication.
> I have added localhost:1234 in ANT_OPTS ... as above before compiling
>
>
It looks like Ivy supports NTLM authentication:

https://issues.apache.org/jira/browse/IVY-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Can you try also setting -Dhttp.proxyRealm=<your_domain> in ANT_OPTS and let
us know if it works?


> > $HOME/.ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
> >
> > There is no folder as org.apache.hbase ....
> but there are folders as org.apache.{zookeeper},{commons} etc ...
> Shall i create one and place the downloaded hbase jar there ?


Yes, if you can't get Ivy to work then you'll need to satisfy the dependency
manually by downloading the hbase jar and copying it to
$HOME/.ant/cache/org/apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar

Carl

>

Re: hadoop core 0.20.2 not found

Posted by abhinav narain <ab...@gmail.com>.
On Mon, Feb 7, 2011 at 10:50 PM, Carl Steinbach <ca...@cloudera.com> wrote:

> Hi Abhinav,
>
>
> > [ivy:resolve]   Host repository.apache.org not found. url=
> >
> >
> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/maven-metadata.xml
> >
> >
> This looks like a connection/DNS problem on your end. Can you please verify
> this by attempting to load the following URL in a browser:
>
>
> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT
>
>
If this works then chances are that you're accessing the web through a
> proxy, in which case you need to tell Ant which proxy to use, e.g:
>
> It works

> export ANT_OPTS="-Dhttp.proxyHost=myproxy.com -Dhttp.proxyPort=8080"
>
I am using a proxy.
I am using cntlm for authentication.
I have added localhost:1234 in ANT_OPTS ... as above before compiling

>
>
> > There is no .ivy folder in my home directory.
> >  There are these two jars : hbase-0.20.3-test.jar  hbase-0.20.3.jar in
> > ~/hive-0.6.0/src/hbase-handler/lib$
> > Do u want me to use them some how ?
> >
> >
> The Hive build actually sets ivy.home to ${user.home}/.ant, so if you want
> to manually satisfy the dependency you will need to put the JAR here:
>
> $HOME/.ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar
>
> There is no folder as org.apache.hbase ....
but there are folders as org.apache.{zookeeper},{commons} etc ...
Shall i create one and place the downloaded hbase jar there ?


> You can get a copy of the hbase-0.89 jar from archive.apache.org:
>
> http://archive.apache.org/dist/hbase/hbase-0.89.2010<http://archive.apache.org/dist/hbase/hbase-0.89.20100924/hbase-0.89.20100924/hbase-0.89.20100924.jar>
>
> This looks like a connection/DNS problem on your end. Can you please verify
> this by attempting to load the following URL
> 0924/hbase-0.89.20100924/hbase-0.89.20100924.jar<http://archive.apache.org/dist/hbase/hbase-0.89.20100924/hbase-0.89.20100924/hbase-0.89.20100924.jar>
>
> I downloaded the jar from here.

Note that you'll need to rename the JAR before copying it to the Ivy cache.
>
Ok.

Abhinav Narain

Re: hadoop core 0.20.2 not found

Posted by Carl Steinbach <ca...@cloudera.com>.
Hi Abhinav,


> [ivy:resolve]   Host repository.apache.org not found. url=
>
> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/maven-metadata.xml
>
>
This looks like a connection/DNS problem on your end. Can you please verify
this by attempting to load the following URL in a browser:

https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT

If this works then chances are that you're accessing the web through a
proxy, in which case you need to tell Ant which proxy to use, e.g:

export ANT_OPTS="-Dhttp.proxyHost=myproxy.com -Dhttp.proxyPort=8080"


> There is no .ivy folder in my home directory.
>  There are these two jars : hbase-0.20.3-test.jar  hbase-0.20.3.jar in
> ~/hive-0.6.0/src/hbase-handler/lib$
> Do u want me to use them some how ?
>
>
The Hive build actually sets ivy.home to ${user.home}/.ant, so if you want
to manually satisfy the dependency you will need to put the JAR here:

$HOME/.ant/cache/org.apache.hbase/hbase/jars/hbase-0.89.0-SNAPSHOT.jar

You can get a copy of the hbase-0.89 jar from archive.apache.org:

http://archive.apache.org/dist/hbase/hbase-0.89.20100924/hbase-0.89.20100924/hbase-0.89.20100924.jar

Note that you'll need to rename the JAR before copying it to the Ivy cache.

Hope this helps.

Carl

Re: hadoop core 0.20.2 not found

Posted by abhinav narain <ab...@gmail.com>.
>
>
> I do not see the jar that is being looked for in the repository.
>
> If possible I would suggest trying to build from trunk not 0.6.0 since
> all the development is targeted for trunk.
>

I am using the trunk, not the 0.6.0 source code.

[ivy:resolve] You probably access the destination server through a proxy
server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy
server that is not well configured.
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]   Host repository.apache.org not found. url=
https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
[ivy:resolve]   Host repository.apache.org not found. url=
https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
[ivy:resolve]   Host repository.apache.org not found. url=
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/maven-metadata.xml
[ivy:resolve]   Host repository.apache.org not found. url=
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.pom
[ivy:resolve]   Host repository.apache.org not found. url=
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]   Host repository.apache.org not found. url=
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT-tests.jar
[ivy:resolve]           module not found:
org.apache.hbase#hbase;0.89.0-SNAPSHOT
[ivy:resolve]   ==== hadoop-source: tried
[ivy:resolve]     -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
[ivy:resolve]
http://mirror.facebook.net/facebook/hive-deps/hadoop/core/hbase-0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]     -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
[ivy:resolve]
http://mirror.facebook.net/facebook/hive-deps/hadoop/core/hbase-0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]   ==== apache-snapshot: tried
[ivy:resolve]
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.pom
[ivy:resolve]     -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
[ivy:resolve]
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]     -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
[ivy:resolve]
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT-tests.jar
[ivy:resolve]   ==== maven2: tried
[ivy:resolve]
http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.pom
[ivy:resolve]     -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
[ivy:resolve]
http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]     -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
[ivy:resolve]
http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]   ==== datanucleus-repo: tried
[ivy:resolve]     -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
[ivy:resolve]
http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]     -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
[ivy:resolve]
http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           :: org.apache.hbase#hbase;0.89.0-SNAPSHOT: not found
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
/project/narain/hive/build.xml:199: The following error occurred while
executing this line:
/project/narain/hive/build.xml:133: The following error occurred while
executing this line:
/project/narain/hive/build-common.xml:163: impossible to resolve
dependencies:
        resolve failed - see output for details

Total time: 9 minutes 35 seconds

This is the build error. again
This some SNAPSHOT jar its looking for, From where can I replace it ?


>
> Other solutions are to find the jar yourself and place it where ivy
> will look for it /home/$USER/.ivy I believe.
>
There is no .ivy folder in my home directory.
 There are these two jars : hbase-0.20.3-test.jar  hbase-0.20.3.jar in
~/hive-0.6.0/src/hbase-handler/lib$
Do u want me to use them some how ?

Abhinav

Re: hadoop core 0.20.2 not found

Posted by Edward Capriolo <ed...@gmail.com>.
On Mon, Feb 7, 2011 at 10:23 AM, abhinav narain
<ab...@gmail.com> wrote:
> I get the following error about hbase, then ?
>
> this is the code recently checked out from svn
>
>    Host repository.apache.org not found. url=
> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]     Host repository.apache.org not found. url=
> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT-tests.jar
> [ivy:resolve]         module not found:
> org.apache.hbase#hbase;0.89.0-SNAPSHOT
> [ivy:resolve]     ==== hadoop-source: tried
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
> [ivy:resolve]
> http://mirror.facebook.net/facebook/hive-deps/hadoop/core/hbase-0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
> [ivy:resolve]
> http://mirror.facebook.net/facebook/hive-deps/hadoop/core/hbase-0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]     ==== apache-snapshot: tried
> [ivy:resolve]
> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.pom
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
> [ivy:resolve]
> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
> [ivy:resolve]
> https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT-tests.jar
> [ivy:resolve]     ==== maven2: tried
> [ivy:resolve]
> http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.pom
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
> [ivy:resolve]
> http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
> [ivy:resolve]
> http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]     ==== datanucleus-repo: tried
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
> [ivy:resolve]
> http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]       -- artifact
> org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
> [ivy:resolve]
> http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
> [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]         ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]         :: org.apache.hbase#hbase;0.89.0-SNAPSHOT: not found
> [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]
> [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>
> BUILD FAILED
> /home/narain/hive-trunk/build.xml:199: The following error occurred while
> executing this line:
> /home/narain/hive-trunk/build.xml:133: The following error occurred while
> executing this line:
> /home/narain/hive-trunk/build-common.xml:163: impossible to resolve
> dependencies:
>    resolve failed - see output for details
>
> What should i do ?
>

I do not see the jar that is being looked for in the repository.

If possible I would suggest trying to build from trunk not 0.6.0 since
all the development is targeted for trunk.

Other solutions are to find the jar yourself and place it where ivy
will look for it /home/$USER/.ivy I believe.

Edward

Re: hadoop core 0.20.2 not found

Posted by abhinav narain <ab...@gmail.com>.
I get the following error about hbase, then ?

this is the code recently checked out from svn

    Host repository.apache.org not found. url=
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]     Host repository.apache.org not found. url=
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT-tests.jar
[ivy:resolve]         module not found:
org.apache.hbase#hbase;0.89.0-SNAPSHOT
[ivy:resolve]     ==== hadoop-source: tried
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
[ivy:resolve]
http://mirror.facebook.net/facebook/hive-deps/hadoop/core/hbase-0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
[ivy:resolve]
http://mirror.facebook.net/facebook/hive-deps/hadoop/core/hbase-0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]     ==== apache-snapshot: tried
[ivy:resolve]
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.pom
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
[ivy:resolve]
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
[ivy:resolve]
https://repository.apache.org/content/repositories/snapshots/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT-tests.jar
[ivy:resolve]     ==== maven2: tried
[ivy:resolve]
http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.pom
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
[ivy:resolve]
http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
[ivy:resolve]
http://repo1.maven.org/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]     ==== datanucleus-repo: tried
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar(test-jar):
[ivy:resolve]
http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]       -- artifact
org.apache.hbase#hbase;0.89.0-SNAPSHOT!hbase.jar:
[ivy:resolve]
http://www.datanucleus.org/downloads/maven2/org/apache/hbase/hbase/0.89.0-SNAPSHOT/hbase-0.89.0-SNAPSHOT.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         :: org.apache.hbase#hbase;0.89.0-SNAPSHOT: not found
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
/home/narain/hive-trunk/build.xml:199: The following error occurred while
executing this line:
/home/narain/hive-trunk/build.xml:133: The following error occurred while
executing this line:
/home/narain/hive-trunk/build-common.xml:163: impossible to resolve
dependencies:
    resolve failed - see output for details

What should i do ?

Re: hadoop core 0.20.2 not found

Posted by Edward Capriolo <ed...@gmail.com>.
You do not need to compile against a specific minor (it is a bug in
the build process)

Try: ant -Dhadoop.version=0.20.0 package

The resulting binary will be compatible with 0.20.2

Edward

On Mon, Feb 7, 2011 at 3:27 AM, abhinav narain
<ab...@gmail.com> wrote:
> hi,
>  I have mailed my problem on dev-list and have not received any replies.
> Please help me, if you have some spare time.
> I have hive 0.6.0, hadoop 0.20.2 in my /home/narain folder and run as usual.
>
> I took the hive source code provided in the hive tar bal and copied it to
> /project/narain
> When i build the project using :
> $ ant -Dhadoop.version=0.20.2 package
> it results in sayign hadoop core 0.20.2 not found.
> In the output it also give hadoop core 0.17.2.1, 18.3, 0.20.0 found as
> remarks !
> What shall i do to get the compilation right ?
>
> Is it unable to locate hadoop 0.20.2 in /home/narain, or its searching
> hadoop 0.20.2 in repo (connected to using Ant ) and unable to find ?
>
>  this is a part of output :
> [ivy:retrieve]     ==== hadoop-source: tried
> [ivy:retrieve]       -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source):
> [ivy:retrieve]
> http://mirror.facebook.net/facebook/hive-deps/hadoop/core/hadoop-0.20.2/hadoop-0.20.2.tar.gz
> [ivy:retrieve]     ==== apache-snapshot: tried
> [ivy:retrieve]
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.2/core-0.20.2.pom
> [ivy:retrieve]       -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source):
> [ivy:retrieve]
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.2/hadoop-0.20.2.tar.gz
> [ivy:retrieve]     ==== maven2: tried
> [ivy:retrieve]
> http://repo1.maven.org/maven2/hadoop/core/0.20.2/core-0.20.2.pom
> [ivy:retrieve]       -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source):
> [ivy:retrieve]
> http://repo1.maven.org/maven2/hadoop/core/0.20.2/core-0.20.2.tar.gz
> [ivy:retrieve]     ==== datanucleus-repo: tried
> [ivy:retrieve]       -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source):
> [ivy:retrieve]
> http://www.datanucleus.org/downloads/maven2/hadoop/core/0.20.2/core-0.20.2.tar.gz
> [ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve]         ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve]         :: hadoop#core;0.20.2: not found
> [ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve]
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>
> BUILD FAILED
> /project/narain/src/build.xml:169: The following error occurred while
> executing this line:
> /project/narain/src/build.xml:108: The following error occurred while
> executing this line:
> /project/narain/src/build-common.xml:210: The following error occurred while
> executing this line:
> /project/narain/src/build-common.xml:201: The following error occurred while
> executing this line:
> /project/narain/src/build-common.xml:179: impossible to resolve
> dependencies:
>    resolve failed - see output for details
>
> If I use instead just : $ ant package
> I get the following error :
>
> compile:
>     [echo] Compiling: hbase-handler
>    [javac] /project/narain/src/build-common.xml:274: warning:
> 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
> to false for repeatable builds
>    [javac] Compiling 15 source files to
> /project/narain/src/build/hbase-handler/classes
>    [javac]
> /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:3:
> package javax.servlet does not exist
>    [javac] import javax.servlet.ServletContext;
>    [javac]                     ^
>    [javac]
> /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:4:
> package javax.servlet does not exist
>    [javac] import javax.servlet.ServletContextEvent;
>    [javac]                     ^
>    [javac]
> /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:14:
> package javax.servlet does not exist
>    [javac] public class HWIContextListener implements
> javax.servlet.ServletContextListener {
>    [javac]                                                         ^
>    [javac]
> /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:27:
> cannot find symbol
>    [javac] symbol  : class ServletContextEvent
>    [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener
>    [javac]   public void contextInitialized(ServletContextEvent sce) {
>    [javac]                                  ^
>    [javac]
> /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:46:
> cannot find symbol
>    [javac] symbol  : class ServletContextEvent
>    [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener
>    [javac]   public void contextDestroyed(ServletContextEvent sce) {
>    [javac]                                ^
>    [javac]
> org/apache/hadoop/hbase/io/RowResult.class(org/apache/hadoop/hbase/io:RowResult.class):
> warning: Cannot find annotation method 'base64()' in type
> 'agilejson.TOJSON': class file for agilejson.TOJSON not found
>    [javac]
> org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class):
> warning: Cannot find annotation method 'fieldName()' in type
> 'agilejson.TOJSON'
>    [javac]
> org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class):
> warning: Cannot find annotation method 'base64()' in type 'agilejson.TOJSON'
>    [javac]
> org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class):
> warning: Cannot find annotation method 'prefixLength()' in type
> 'agilejson.TOJSON'
>    [javac]
> org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class):
> warning: Cannot find annotation method 'prefixLength()' in type
> 'agilejson.TOJSON'
>    [javac]
> org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class):
> warning: Cannot find annotation method 'prefixLength()' in type
> 'agilejson.TOJSON'
>    [javac]
> org/apache/hadoop/hbase/HTableDescriptor.class(org/apache/hadoop/hbase:HTableDescriptor.class):
> warning: Cannot find annotation method 'fieldName()' in type
> 'agilejson.TOJSON'
>    [javac]
> org/apache/hadoop/hbase/io/Cell.class(org/apache/hadoop/hbase/io:Cell.class):
> warning: Cannot find annotation method 'base64()' in type 'agilejson.TOJSON'
>    [javac]
> /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:28:
> cannot find symbol
>    [javac] symbol  : class ServletContext
>    [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener
>    [javac]     ServletContext sc = sce.getServletContext();
>    [javac]     ^
>    [javac]
> /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:47:
> cannot find symbol
>    [javac] symbol  : class ServletContext
>    [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener
>    [javac]     ServletContext sc = sce.getServletContext();
>    [javac]     ^
>    [javac]
> /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIServer.java:88:
> package org.mortbay.util does not exist
>    [javac]         } catch (org.mortbay.util.MultiException ex) {
>    [javac]                                  ^
>    [javac] Note: Some input files use or override a deprecated API.
>    [javac] Note: Recompile with -Xlint:deprecation for details.
>    [javac] Note: Some input files use unchecked or unsafe operations.
>    [javac] Note: Recompile with -Xlint:unchecked for details.
>    [javac] 8 errors
>    [javac] 8 warnings
>
> BUILD FAILED
> /project/narain/src/build.xml:169: The following error occurred while
> executing this line:
> /project/narain/src/build.xml:108: The following error occurred while
> executing this line:
> /project/narain/src/build-common.xml:274: Compile failed; see the compiler
> error output for details.
>
>
> Please comment on what I shall do, as i have run out of ideas.
>
> regards,
> Abhinav Narain
>