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

问题描述

我是nosql解决方案中的新成员,并希望与Hive一起玩。但安装hdfs / hadoop需要很多资源和时间(也许没有经验,但我没有时间待办事项)。



是否有一些解决方案可以在没有hdfs / hadoop的本地机器上安装和使用Hive? 解决方案

是的,您可以在没有hadoop
的情况下运行配置单元1.在您的本地系统上创建您的仓库
2.将默认fs作为文件:///
比您可以运行hive在本地模式下安装hadoop安装



在Hive-site.xml中

 <?xml version =1.0?> <?xml-stylesheet type =text / xslhref =configuration.xsl?> 
<配置>
<属性>
<名称> hive.metastore.schema.verification< /名称>
<值> false< /值>
< / property>
<属性>
< name> hive.metastore.warehouse.dir< / name>
< value> file:/// tmp< / value>
< description>< / description>
< / property>
<属性>
<名称> fs.default.name< /名称>
< value> file:/// tmp< / value>
< / property>
< / configuration>


I am a new in nosql solution and want to play with Hive. But install hdfs/hadoop takes many resources and time (maybe without experience but I have not time todo this).

Are there some solution to install and use Hive on local machine without hdfs/hadoop?

解决方案

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

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