Did you ever set HADOOP_CLASSPATH or CLASSPATH? You might want to unset those parameters and have a try.
Zheng On Mon, Feb 8, 2010 at 3:55 AM, Vidyasagar Venkata Nallapati <[email protected]> wrote: > Hi Edward, > > On Running even thorough the build 4.1 > We are getting > > phoe...@ph5:/master/hadoop/hive-0.4.1-bin$ bin/hive > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/hadoop/hive/conf/HiveConf > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:247) > at org.apache.hadoop.util.RunJar.main(RunJar.java:149) > Caused by: java.lang.ClassNotFoundException: > org.apache.hadoop.hive.conf.HiveConf > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > ... 3 more > > Regards > Vidyasagar N V > > -----Original Message----- > From: Edward Capriolo [mailto:[email protected]] > Sent: Sunday, February 07, 2010 9:13 PM > To: [email protected] > Subject: Re: Hive Installation Problem > > On Sun, Feb 7, 2010 at 8:51 AM, Vidyasagar Venkata Nallapati > <[email protected]> wrote: >> Hi, >> >> I am getting the problem while downloading the .pom file from >> >> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom >> ERROR: Server access Error: Connection timed out >> url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom >> >> Is this reporsitory changed? >> >> Regards >> Vidyasagar N V >> >> -----Original Message----- >> From: John Sichi [mailto:[email protected]] >> Sent: Saturday, February 06, 2010 7:39 AM >> To: [email protected] >> Subject: Re: Hive Installation Problem >> >> By the way, the current IVY_HOME detection in build-common.xml is broken >> because it doesn't do: >> >> <property environment="env"/> >> >> first. >> >> I'll log a JIRA issue for it, but it seems there are other problems with it >> even after I fix that since the build is currenlty installing ivy under >> build/ivy rather than under ${ivy.home}; nothing else in build-common.xml >> references ivy.home. >> >> JVS >> >> On Feb 5, 2010, at 1:15 PM, Zheng Shao wrote: >> >>> HI guys, >>> >>> Can you have a try to make the following directory the same as mine? >>> Once this is done, remove the "build" directory, and run "ant package". >>> >>> Does this solve the problem? >>> >>> >>> >>> [zs...@dev ~/.ant] ls -lR >>> .: >>> total 3896 >>> drwxr-xr-x 2 zshao users 4096 Feb 5 13:04 apache-ivy-2.0.0-rc2 >>> -rw-r--r-- 1 zshao users 3965953 Nov 4 2008 apache-ivy-2.0.0-rc2-bin.zip >>> -rw-r--r-- 1 zshao users 0 Feb 5 13:04 >>> apache-ivy-2.0.0-rc2.installed >>> drwxr-xr-x 3 zshao users 4096 Feb 5 13:07 cache >>> drwxr-xr-x 2 zshao users 4096 Feb 5 13:04 lib >>> >>> ./apache-ivy-2.0.0-rc2: >>> total 880 >>> -rw-r--r-- 1 zshao users 893199 Oct 28 2008 ivy-2.0.0-rc2.jar >>> >>> ./cache: >>> total 4 >>> drwxr-xr-x 3 zshao users 4096 Feb 4 19:30 hadoop >>> >>> ./cache/hadoop: >>> total 4 >>> drwxr-xr-x 3 zshao users 4096 Feb 5 13:08 core >>> >>> ./cache/hadoop/core: >>> total 4 >>> drwxr-xr-x 2 zshao users 4096 Feb 4 19:30 sources >>> >>> ./cache/hadoop/core/sources: >>> total 127436 >>> -rw-r--r-- 1 zshao users 14427013 Aug 20 2008 hadoop-0.17.2.1.tar.gz >>> -rw-r--r-- 1 zshao users 30705253 Jan 22 2009 hadoop-0.18.3.tar.gz >>> -rw-r--r-- 1 zshao users 42266180 Nov 13 2008 hadoop-0.19.0.tar.gz >>> -rw-r--r-- 1 zshao users 42813980 Apr 8 2009 hadoop-0.20.0.tar.gz >>> >>> ./lib: >>> total 880 >>> -rw-r--r-- 1 zshao users 893199 Feb 5 13:04 ivy-2.0.0-rc2.jar >>> >>> >>> Zheng >>> >>> On Fri, Feb 5, 2010 at 5:49 AM, Vidyasagar Venkata Nallapati >>> <[email protected]> wrote: >>>> Hi , >>>> >>>> >>>> >>>> We are still getting the problem >>>> >>>> >>>> >>>> [ivy:retrieve] no resolved descriptor found: launching default resolve >>>> >>>> Overriding previous definition of property "ivy.version" >>>> >>>> [ivy:retrieve] using ivy parser to parse >>>> file:/master/hadoop/hive/shims/ivy.xml >>>> >>>> [ivy:retrieve] :: resolving dependencies :: >>>> org.apache.hadoop.hive#shims;work...@ph1 >>>> >>>> [ivy:retrieve] confs: [default] >>>> >>>> [ivy:retrieve] validate = true >>>> >>>> [ivy:retrieve] refresh = false >>>> >>>> [ivy:retrieve] resolving dependencies for configuration 'default' >>>> >>>> [ivy:retrieve] == resolving dependencies for >>>> org.apache.hadoop.hive#shims;work...@ph1 [default] >>>> >>>> [ivy:retrieve] == resolving dependencies >>>> org.apache.hadoop.hive#shims;work...@ph1->hadoop#core;0.20.1 [default->*] >>>> >>>> [ivy:retrieve] default: Checking cache for: dependency: hadoop#core;0.20.1 >>>> {*=[*]} >>>> >>>> [ivy:retrieve] hadoop-source: no ivy file nor artifact found for >>>> hadoop#core;0.20.1 >>>> >>>> [ivy:retrieve] tried >>>> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.1/core-0.20.1.pom >>>> >>>> >>>> >>>> And the .pom for this is not getting copied, please suggest something on >>>> this. >>>> >>>> >>>> >>>> Regards >>>> >>>> Vidyasagar N V >>>> >>>> >>>> >>>> From: baburaj.S [mailto:[email protected]] >>>> Sent: Friday, February 05, 2010 4:59 PM >>>> >>>> To: [email protected] >>>> Subject: RE: Hive Installation Problem >>>> >>>> >>>> >>>> No I don't have the variable defined. Any other things that I have to >>>> check. >>>> Is this happening because I am trying for Hadoop 0.20.1 >>>> >>>> >>>> >>>> Babu >>>> >>>> >>>> >>>> >>>> >>>> From: Carl Steinbach [mailto:[email protected]] >>>> Sent: Friday, February 05, 2010 3:07 PM >>>> To: [email protected] >>>> Subject: Re: Hive Installation Problem >>>> >>>> >>>> >>>> Hi Babu, >>>> >>>> ~/.ant/cache is the default Ivy cache directory for Hive, but if the >>>> environment variable IVY_HOME >>>> is set it will use $IVY_HOME/cache instead. Is it possible that you have >>>> this environment >>>> variable set to a value different than ~/.ant? >>>> >>>> On Fri, Feb 5, 2010 at 12:09 AM, baburaj.S <[email protected]> wrote: >>>> >>>> I have tried the same but still the installation is giving the same error. >>>> I >>>> don't know if it is looking in the cache . Can we make any change in >>>> ivysettings.xml that it has to resolve the file from the file system rather >>>> through an url. >>>> >>>> Babu >>>> >>>> -----Original Message----- >>>> From: Zheng Shao [mailto:[email protected]] >>>> Sent: Friday, February 05, 2010 12:47 PM >>>> To: [email protected] >>>> Subject: Re: Hive Installation Problem >>>> >>>> Added to http://wiki.apache.org/hadoop/Hive/FAQ >>>> >>>> Zheng >>>> >>>> On Thu, Feb 4, 2010 at 11:11 PM, Zheng Shao <[email protected]> wrote: >>>>> Try this: >>>>> >>>>> cd ~/.ant/cache/hadoop/core/sources >>>>> wget >>>>> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz >>>>> >>>>> >>>>> Zheng >>>>> >>>>> On Thu, Feb 4, 2010 at 10:23 PM, baburaj.S <[email protected]> wrote: >>>>>> Hello , >>>>>> >>>>>> I am new to Hadoop and is trying to install Hive now. We have the >>>>>> following setup at our side >>>>>> >>>>>> OS - Ubuntu 9.10 >>>>>> Hadoop - 0.20.1 >>>>>> Hive installation tried - 0.4.0 . >>>>>> >>>>>> The Hadoop is installed and is working fine . Now when we were installing >>>>>> Hive I got error that it couldn't resolve the dependencies. I changed the >>>>>> shims build and properties xml to make the dependencies look for Hadoop >>>>>> 0.20.1 . But now when I call the ant script I get the following error >>>>>> >>>>>> ivy-retrieve-hadoop-source: >>>>>> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: >>>>>> http://ant.apache.org/ivy/ : >>>>>> :: loading settings :: file = /master/hive/ivy/ivysettings.xml >>>>>> [ivy:retrieve] :: resolving dependencies :: >>>>>> org.apache.hadoop.hive#shims;working >>>>>> [ivy:retrieve] confs: [default] >>>>>> [ivy:retrieve] :: resolution report :: resolve 953885ms :: artifacts dl >>>>>> 0ms >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> | | modules || artifacts >>>>>> | >>>>>> | conf | number| search|dwnlded|evicted|| >>>>>> number|dwnlded| >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> | default | 1 | 0 | 0 | 0 || 0 | 0 >>>>>> | >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> [ivy:retrieve] >>>>>> [ivy:retrieve] :: problems summary :: >>>>>> [ivy:retrieve] :::: WARNINGS >>>>>> [ivy:retrieve] module not found: hadoop#core;0.20.1 >>>>>> [ivy:retrieve] ==== hadoop-source: tried >>>>>> [ivy:retrieve] -- artifact hadoop#core;0.20.1!hadoop.tar.gz(source): >>>>>> [ivy:retrieve] >>>>>> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz >>>>>> [ivy:retrieve] ==== apache-snapshot: tried >>>>>> [ivy:retrieve] >>>>>> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.1/core-0.20.1.pom >>>>>> [ivy:retrieve] -- artifact hadoop#core;0.20.1!hadoop.tar.gz(source): >>>>>> [ivy:retrieve] >>>>>> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.1/hadoop-0.20.1.tar.gz >>>>>> [ivy:retrieve] ==== maven2: tried >>>>>> [ivy:retrieve] >>>>>> http://repo1.maven.org/maven2/hadoop/core/0.20.1/core-0.20.1.pom >>>>>> [ivy:retrieve] -- artifact hadoop#core;0.20.1!hadoop.tar.gz(source): >>>>>> [ivy:retrieve] >>>>>> http://repo1.maven.org/maven2/hadoop/core/0.20.1/core-0.20.1.tar.gz >>>>>> [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: >>>>>> [ivy:retrieve] :: UNRESOLVED DEPENDENCIES :: >>>>>> [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: >>>>>> [ivy:retrieve] :: hadoop#core;0.20.1: not found >>>>>> [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: >>>>>> [ivy:retrieve] :::: ERRORS >>>>>> [ivy:retrieve] Server access Error: Connection timed out >>>>>> url=http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz >>>>>> [ivy:retrieve] Server access Error: Connection timed out >>>>>> url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.1/core-0.20.1.pom >>>>>> [ivy:retrieve] Server access Error: Connection timed out >>>>>> url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.1/hadoop-0.20.1.tar.gz >>>>>> [ivy:retrieve] Server access Error: Connection timed out >>>>>> url=http://repo1.maven.org/maven2/hadoop/core/0.20.1/core-0.20.1.pom >>>>>> [ivy:retrieve] Server access Error: Connection timed out >>>>>> url=http://repo1.maven.org/maven2/hadoop/core/0.20.1/core-0.20.1.tar.gz >>>>>> [ivy:retrieve] >>>>>> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS >>>>>> >>>>>> BUILD FAILED >>>>>> /master/hive/build.xml:148: The following error occurred while executing >>>>>> this line: >>>>>> /master/hive/build.xml:93: The following error occurred while executing >>>>>> this line: >>>>>> /master/hive/shims/build.xml:64: The following error occurred while >>>>>> executing this line: >>>>>> /master/hive/build-common.xml:172: impossible to resolve dependencies: >>>>>> resolve failed - see output for details >>>>>> >>>>>> Total time: 15 minutes 55 seconds >>>>>> >>>>>> >>>>>> I have even tried to download hadoop-0.20.1.tar.gz and put it in the ant >>>>>> cache of the user . Still the same error is repeated. I am stuck and not >>>>>> able to install it . >>>>>> >>>>>> Any help on the above will be greatly appreciated. >>>>>> >>>>>> Babu >>>>>> >>>>>> >>>>>> DISCLAIMER: The information in this message is confidential and may be >>>>>> legally privileged. It is intended solely for the addressee. Access to >>>>>> this >>>>>> message by anyone else is unauthorized. If you are not the intended >>>>>> recipient, any disclosure, copying, or distribution of the message, or >>>>>> any >>>>>> action or omission taken by you in reliance on it, is prohibited and may >>>>>> be >>>>>> unlawful. Please immediately contact the sender if you have received this >>>>>> message in error. Further, this e-mail may contain viruses and all >>>>>> reasonable precaution to minimize the risk arising there from is taken by >>>>>> OnMobile. OnMobile is not liable for any damage sustained by you as a >>>>>> result >>>>>> of any virus in this e-mail. All applicable virus checks should be >>>>>> carried >>>>>> out by you before opening this e-mail or any attachment thereto. >>>>>> Thank you - OnMobile Global Limited. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Yours, >>>>> Zheng >>>>> >>>> >>>> >>>> >>>> -- >>>> Yours, >>>> Zheng >>>> >>>> DISCLAIMER: The information in this message is confidential and may be >>>> legally privileged. It is intended solely for the addressee. Access to this >>>> message by anyone else is unauthorized. If you are not the intended >>>> recipient, any disclosure, copying, or distribution of the message, or any >>>> action or omission taken by you in reliance on it, is prohibited and may be >>>> unlawful. Please immediately contact the sender if you have received this >>>> message in error. Further, this e-mail may contain viruses and all >>>> reasonable precaution to minimize the risk arising there from is taken by >>>> OnMobile. OnMobile is not liable for any damage sustained by you as a >>>> result >>>> of any virus in this e-mail. All applicable virus checks should be carried >>>> out by you before opening this e-mail or any attachment thereto. >>>> Thank you - OnMobile Global Limited. >>>> >>>> >>>> >>>> >>>> >>>> ________________________________ >>>> >>>> DISCLAIMER: The information in this message is confidential and may be >>>> legally privileged. It is intended solely for the addressee. Access to this >>>> message by anyone else is unauthorized. If you are not the intended >>>> recipient, any disclosure, copying, or distribution of the message, or any >>>> action or omission taken by you in reliance on it, is prohibited and may be >>>> unlawful. Please immediately contact the sender if you have received this >>>> message in error. Further, this e-mail may contain viruses and all >>>> reasonable precaution to minimize the risk arising there from is taken by >>>> OnMobile. OnMobile is not liable for any damage sustained by you as a >>>> result >>>> of any virus in this e-mail. All applicable virus checks should be carried >>>> out by you before opening this e-mail or any attachment thereto. >>>> Thank you - OnMobile Global Limited. >>>> >>>> ________________________________ >>>> DISCLAIMER: The information in this message is confidential and may be >>>> legally privileged. It is intended solely for the addressee. Access to this >>>> message by anyone else is unauthorized. If you are not the intended >>>> recipient, any disclosure, copying, or distribution of the message, or any >>>> action or omission taken by you in reliance on it, is prohibited and may be >>>> unlawful. Please immediately contact the sender if you have received this >>>> message in error. Further, this e-mail may contain viruses and all >>>> reasonable precaution to minimize the risk arising there from is taken by >>>> OnMobile. OnMobile is not liable for any damage sustained by you as a >>>> result >>>> of any virus in this e-mail. All applicable virus checks should be carried >>>> out by you before opening this e-mail or any attachment thereto. >>>> Thank you - OnMobile Global Limited. >>>> >>> >>> >>> >>> -- >>> Yours, >>> Zheng >> >> >> DISCLAIMER: The information in this message is confidential and may be >> legally privileged. It is intended solely for the addressee. Access to this >> message by anyone else is unauthorized. If you are not the intended >> recipient, any disclosure, copying, or distribution of the message, or any >> action or omission taken by you in reliance on it, is prohibited and may be >> unlawful. Please immediately contact the sender if you have received this >> message in error. Further, this e-mail may contain viruses and all >> reasonable precaution to minimize the risk arising there from is taken by >> OnMobile. OnMobile is not liable for any damage sustained by you as a result >> of any virus in this e-mail. All applicable virus checks should be carried >> out by you before opening this e-mail or any attachment thereto. >> Thank you - OnMobile Global Limited. >> > > Not that this solves your problem, but Have you considered using a > release instead of building from trunk? > > DISCLAIMER: The information in this message is confidential and may be > legally privileged. It is intended solely for the addressee. Access to this > message by anyone else is unauthorized. If you are not the intended > recipient, any disclosure, copying, or distribution of the message, or any > action or omission taken by you in reliance on it, is prohibited and may be > unlawful. Please immediately contact the sender if you have received this > message in error. Further, this e-mail may contain viruses and all reasonable > precaution to minimize the risk arising there from is taken by OnMobile. > OnMobile is not liable for any damage sustained by you as a result of any > virus in this e-mail. All applicable virus checks should be carried out by > you before opening this e-mail or any attachment thereto. > Thank you - OnMobile Global Limited. > -- Yours, Zheng
