Ant is finding an older version of Ivy and using it instead of the newer
copy that the Hive build script automatically downloads. The older copy of
Ivy is probably located somewhere under $HOME/.ant and/or in $ANT_HOME/lib.
You need to locate these old versions of the ivy jar and remove them. Then
run the build script again and everything should work. Optionally, you can
also copy the new version of ivy located in hive-trunk/build/ivy/lib to the
places where you previously found the old versions of Ivy (do this after
building Hive).

Carl



On Mon, Feb 22, 2010 at 5:20 PM, Something Something <
[email protected]> wrote:

> Carl is right.  I have /user/hivee/warehouse and /tmp created under HDFS.
>
> Carl - I am trying to follow your instructions.  Getting this...
>
> /home/training/hive/hive-trunk/build-common.xml:180: impossible to
> configure ivy:settings with given file:
> /home/training/hive/hive-trunk/ivy/ivysettings.xml :
> java.text.ParseException: failed to load settings from
> file:/home/training/hive/hive-trunk/ivy/ivysettings.xml: impossible to set
> defaultTTL to eternal on class
> org.apache.ivy.core.cache.DefaultRepositoryCacheManager
>
>
> when I run:  ant package -Dhadoop.version=0.20.1
>
> Any ideas?
>
>
> On Mon, Feb 22, 2010 at 5:12 PM, Carl Steinbach <[email protected]> wrote:
>
>>
>> I think the problem is that Hive server set hive.metastore.warehouse.dir
>>> to /user/hive/warehouse. So we have to create the directory before running
>>> TestJdbcDriver and TestHiveServer.
>>>
>>
>> Based on the output of HiveServer that something posted it looks like
>> /user/hive/warehouse already exists:
>>
>>
>>
>>
>> > 10/02/21 11:25:16 INFO metastore.warehouse: Deleted the diretory
>> hdfs://localhost:9000/user/
>> hive/warehouse/testhivedrivertable
>>
>> I also don't see any errors in the HiveServer output, which makes me think
>> that the problem is due to library skew on the client side.
>>
>> Carl
>>
>
>

Reply via email to