hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "Hive/GettingStarted" by CarlSteinbach
Date Fri, 29 Oct 2010 14:09:54 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "Hive/GettingStarted" page has been changed by CarlSteinbach.
http://wiki.apache.org/hadoop/Hive/GettingStarted?action=diff&rev1=39&rev2=40

--------------------------------------------------

   * Java 1.6
   * Hadoop 0.17.x to 0.20.x.
  
- === Downloading and building ===
+ === Installing Hive from a Stable Release ===
  
- Hive is available via SVN at: http://svn.apache.org/repos/asf/hive/trunk
+ Start by downloading the most recent stable release of Hive from one of the Apache download
mirrors (see [[http://hive.apache.org/releases.html|Hive Releases]]).
+ 
+ Next you need to unpack the tarball. This will result in the creation of a subdirectory
named {{{hive-x.y.z}}}:
+ {{{
+   $ tar -xzvf hive-x.y.z.tar.gz
+ }}}
+ 
+ Set the environment variable {{{HIVE_HOME}}} to point to the installation directory:
+ {{{
+   $ cd hive-x.y.z
+   $ export HIVE_HOME=`pwd`
+ }}}
+ 
+ Finally, add {{{$HIVE_HOME/bin}}} to your {{{PATH}}}:
+ {{{
+   $ export PATH=$HIVE_HOME/bin:$PATH
+ }}}
+ 
+ 
+ === Installing from Source ===
+ 
+ The Hive SVN repository is located here: http://svn.apache.org/repos/asf/hive/trunk
  
  {{{
    $ svn co http://svn.apache.org/repos/asf/hive/trunk hive
    $ cd hive
-   $ ant package
+   $ ant clean package
    $ cd build/dist
    $ ls
    README.txt
@@ -68, +89 @@

  
  === Configuration management overview ===
  
- - hive default configuration is stored in `<install-dir>/conf/hive-default.xml`
+ - Hive default configuration is stored in `<install-dir>/conf/hive-default.xml`
      Configuration variables can be changed by (re-)defining them in `<install-dir>/conf/hive-site.xml`
+ - The location of the Hive configuration directory can be changed by setting the {{{HIVE_CONF_DIR}}}
environment variable.
- - log4j configuration is stored in `<install-dir>/conf/hive-log4j.properties`
+ - Log4j configuration is stored in `<install-dir>/conf/hive-log4j.properties`
  
- - hive configuration is an overlay on top of hadoop - meaning the hadoop configuration variables
are inherited by default.
+ - Hive configuration is an overlay on top of hadoop - meaning the hadoop configuration variables
are inherited by default.
  
- - hive configuration can be manipulated by:
+ - Hive configuration can be manipulated by:
-   * editing hive-site.xml and defining any desired variables (including hadoop variables)
in it
+   * Editing hive-site.xml and defining any desired variables (including hadoop variables)
in it
-   * from the cli using the set command (see below)
+   * From the cli using the set command (see below)
-   * by invoking hive using the syntax:
+   * By invoking hive using the syntax:
      * `$ bin/hive -hiveconf x1=y1 -hiveconf x2=y2`
        this sets the variables x1 and x2 to y1 and y2 respectively
      * By setting the `HIVE_OPTS` environment variable to "-hiveconf x1=y1 -hiveconf x2=y2"
which does the same as above

Mime
View raw message