Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.
The following page has been changed by RaghothamMurthy: http://wiki.apache.org/hadoop/Hive/GettingStarted ------------------------------------------------------------------------------ == Downloading and building == + Hive is available via SVN at: http://svn.apache.org/repos/asf/hadoop/hive/trunk + * $ svn co http://svn.apache.org/repos/asf/hadoop/hive/trunk hive + * $ cd hive + * $ ant package - You can either build hive jar files for your environment: - * apply patch - * cd hadoop/src/contrib/hive - * src/contrib/hive> ant -Dtarget.dir=<your-install-dir> package - - Or you can use the pre-packaged jars that is available at the following location - and untar it: - http://mirror.facebook.com/facebook/hive/hadoop-0.17/dist.tar.gz - - * $ wget http://mirror.facebook.com/facebook/hive/hadoop-0.17/dist.tar.gz - * $ tar zxvf dist.tar.gz - * $ cd dist + * $ cd build/dist * $ ls - o README bin conf lib + o README.txt bin conf examples lib * bin/ (all the shell scripts) * lib/ (required jar files) * conf/ (configuration files) + * examples/ (sample input and query files) - In the rest of the README, we use dist and <install-dir> interchangeably. + In the rest of the page, we use build/dist and <install-dir> interchangeably. == Running Hive == Hive uses hadoop that means: * you must have hadoop in your path OR - * export HADOOP=<hadoop-install-dir>/bin/hadoop + * export HADOOP_HOME=<hadoop-install-dir> To use hive command line interface (cli) from the shell: ''$ bin/hive''
