Alternatively, for hive-site.xml, you can create an empty XML file with just 
the header and a set of configuration tags (<configuration></configuration>) 
and only fill in those properties that you want to change; Hive will then use 
the defaults for everything else.  Either approach works.

-Chris Dragga

From: Ritesh Kumar Singh [mailto:[email protected]]
Sent: Thursday, November 13, 2014 3:32 PM
To: [email protected]
Subject: Re: basic, dumb getting started question (single-node)

Great.
However u can configure your hive manually when ever you have some time( or in 
case next time you get stuck somewhere :p). Just go to the $HIVE_HOME/conf/ 
directory. U will see a lot of template files in there. Each one is written 
with most of the basic params set. Now what we do is copy all the files with 
.template extensions to their normal extensions.

Ex: copy hive-env.sh.template to hive-env.sh in the same directory. Once you 
have copied the template files as normal ones, you can manually tune them by 
specifying all their properties. These properties are then automatically loaded 
whenever you start your hive server/worker.

On Fri, Nov 14, 2014 at 1:34 AM, Nicholas Murphy 
<[email protected]<mailto:[email protected]>> wrote:
Okay, an explanation of my idiocy for future idiots:

It seemed like the documentation was saying running HCatalog was a necessary 
prerequisite, and it's not.  I couldn't start the HCatalog server out of the 
box (I still can't...it complains about a lack of hive-site.xml), but running 
hive works (I think) just fine.

Thanks/sorry,
Nick

> On Nov 12, 2014, at 3:12 PM, Ritesh Kumar Singh 
> <[email protected]<mailto:[email protected]>> wrote:
>
> Run this first:
>
> >cp $HIVE_HOME/conf/hive-env.sh.template $HIVE_HOME/conf/hive-env.sh
> >gedit $HIVE_HOME/conf/hive-env.sh
>
> Uncomment the lines towards the bottom that asks for HADDOP_HOME and 
> HIVE_CONF_DIR and set the locations.
>
> On Thu, Nov 13, 2014 at 4:31 AM, Gopal V 
> <[email protected]<mailto:[email protected]>> wrote:
> On 11/12/14, 1:27 PM, Nicholas Murphy wrote:
>
> Hadoop version 2.5.1, Hive version 0.13.1, Oracle JDK (1.6, I believe), 
> Debian 7.7.
>
> I notice the default conf/ directory has a bunch of template files, but only 
> that.  Can someone
> point me to a resource, or to an example of what configuration I need, to 
> actually run Hive
> correctly out of the box on a single machine?
>
> I do a build the first thing every morning with the latest of Tez/Hive & 
> leave perf runs in the night, if all day it didn't give me any errors.
>
> So, I run into this problem often enough that I carry an easy build+install 
> combo as part of my git repos.
>
> https://github.com/t3rmin4t0r/tez-autobuild
>
> FYI, this tracks bleeding edge of Hive+Tez (& ships a rough 
> hive-site.xml.default which corresponds to one of my setups).
>
> That Makefile + the hive-site.xml.default/.frag should help - you'll have to 
> edit the defaults for things like the mysql:// jdbc configs for metastore.
>
> Cheers,
> Gopal
>

Reply via email to