You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Cam Bazz <ca...@gmail.com> on 2011/02/11 23:51:38 UTC
reset hive and hadoop
Hello,
I sometimes need to delete everything in hdfs and recreate the tables.
The question is: how do I clear everything in the hdfs and hive?
I delete everything in /tmp, hadoop/logs and any metastore_db i can find.
then hadoop namenode -format
-
is this enough?
best regards,
c.b.
RE: reset hive and hadoop
Posted by "Christopher, Pat" <pa...@hp.com>.
What else would be left? There's still any site configs but otherwise it's a cleaned system, right?
c.b.: you can specify your metastore_db location (so you only have one db) for your hive instance as a whole in hive-site.xml with this:
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:derby:PATH_FOR_YOUR_METASTORE</value>
</property>
It'll make it easier for you to blow away your setup.
Pat
From: Ajo Fod [mailto:ajo.fod@gmail.com]
Sent: Friday, February 11, 2011 4:52 PM
To: user@hive.apache.org
Subject: Re: reset hive and hadoop
I'd be surprised if this were not enough.
-Ajo
On Fri, Feb 11, 2011 at 2:51 PM, Cam Bazz <ca...@gmail.com>> wrote:
Hello,
I sometimes need to delete everything in hdfs and recreate the tables.
The question is: how do I clear everything in the hdfs and hive?
I delete everything in /tmp, hadoop/logs and any metastore_db i can find.
then hadoop namenode -format
-
is this enough?
best regards,
c.b.
Re: reset hive and hadoop
Posted by Cam Bazz <ca...@gmail.com>.
Hello,
what is the metastore_db for and why it does not stay just under $HIVE_HOME.
any directory i run, this metastore_db directory gets created,
best,
c.b.
On Sat, Feb 12, 2011 at 2:51 AM, Ajo Fod <aj...@gmail.com> wrote:
> I'd be surprised if this were not enough.
>
> -Ajo
>
> On Fri, Feb 11, 2011 at 2:51 PM, Cam Bazz <ca...@gmail.com> wrote:
>>
>> Hello,
>>
>> I sometimes need to delete everything in hdfs and recreate the tables.
>>
>> The question is: how do I clear everything in the hdfs and hive?
>>
>> I delete everything in /tmp, hadoop/logs and any metastore_db i can find.
>>
>> then hadoop namenode -format
>>
>> -
>>
>> is this enough?
>>
>>
>> best regards,
>> c.b.
>
>
Re: reset hive and hadoop
Posted by Ajo Fod <aj...@gmail.com>.
I'd be surprised if this were not enough.
-Ajo
On Fri, Feb 11, 2011 at 2:51 PM, Cam Bazz <ca...@gmail.com> wrote:
> Hello,
>
> I sometimes need to delete everything in hdfs and recreate the tables.
>
> The question is: how do I clear everything in the hdfs and hive?
>
> I delete everything in /tmp, hadoop/logs and any metastore_db i can find.
>
> then hadoop namenode -format
>
> -
>
> is this enough?
>
>
> best regards,
> c.b.
>