How to use Hive without hadoop

后端 未结 5 706
孤街浪徒
孤街浪徒 2021-01-05 08:30

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

5条回答
  •  孤独总比滥情好
    2021-01-05 09:23

    Although, there are some details that you have to keep in mind it's completely normal to use Hive without HDFS. There are a few details one should keep in mind.

    1. As a few commenters mentioned above you'll still need some .jar files from hadoop common.
    2. As of today(XII 2020) it's difficult to run Hive/hadoop3 pair. Use stable hadoop2 with Hive2.
    3. Make sure POSIX permissions are set correctly, so your local hive can access warehouse and eventually derby database location.
    4. Initialize your database by manual call to schematool

    You can use site.xml file pointing to local POSIX filesystem, but you can also set those options in HIVE_OPTS environmen variable. I covered that with examples of errors I've seen on my blog post

提交回复
热议问题