Search code examples
hadoophivehdfs

How to use Hive without hadoop


I am a new to NoSQL solutions and want to play with Hive. But installing HDFS/Hadoop takes a lot of resources and time (maybe without experience but I got no time to do this).

Are there ways to install and use Hive on a local machine without HDFS/Hadoop?


Solution

  • yes you can run hive without hadoop 1.create your warehouse on your local system 2. give default fs as file:/// than you can run hive in local mode with out hadoop installation

    In Hive-site.xml

    <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> 
    <configuration>
          <property>
             <name>hive.metastore.schema.verification</name> 
             <value>false</value> 
          </property> 
         <property> 
          <!-- this should eventually be deprecated since the metastore should supply this --> 
            <name>hive.metastore.warehouse.dir</name> 
            <value>file:///tmp</value>
            <description></description> 
         </property>
         <property> 
            <name>fs.default.name</name> 
            <value>file:///tmp</value> 
         </property> 
    </configuration>