本文介绍了如何在没有 hadoop 的情况下使用 Hive的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 NoSQL 解决方案的新手,想使用 Hive.但是安装 HDFS/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).

有没有办法在没有 HDFS/Hadoop 的本地机器上安装和使用 Hive?

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

推荐答案

是的,你可以在没有 hadoop 的情况下运行 hive1.在本地系统上创建仓库2. 将默认 fs 设为 file:///比你可以在没有安装 hadoop 的情况下在本地模式下运行 hive

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

在 Hive-site.xml 中

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>

这篇关于如何在没有 hadoop 的情况下使用 Hive的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-24 16:15