官术网_书友最值得收藏!

Downloading and extracting the Hive binaries

In this section, we will extract the downloaded binaries and then configure the Hive binaries to get everything started:

tar -xvzf apache-hive-2.3.3-bin.tar.gz

Once the Hive bundle is extracted, do the following to create a hive-site.xml:

cd apache-hive-2.3.3-bin
vi conf/hive-site.xml

At the top of the properties list, paste the following:

<property>
<name>system:java.io.tmpdir</name>
<value>/tmp/hive/java</value>
</property>

At the bottom of the hive-site.xml add the following properties:

<property>
<name>hive.metastore.local</name>
<value>TRUE</value>

</property>
<property>
<name>hive.metastore.warehouse.dir</name>
<value>/usr/hive/warehouse</value>
</property>

After this, using the Hadoop commands, create the HDFS paths needed for hive:

cd hadoop-3.1.0
./bin/hadoop fs -mkdir -p /usr/hive/warehouse
./bin/hadoop fs -chmod g+w /usr/hive/warehouse
主站蜘蛛池模板: 灵山县| 长寿区| 库尔勒市| 华坪县| 海安县| 邯郸县| 鄂州市| 泾川县| 邳州市| 元谋县| 潞城市| 错那县| 阆中市| 井研县| 饶河县| 涡阳县| 宁武县| 辉县市| 定州市| 武夷山市| 合川市| 绥阳县| 库伦旗| 古丈县| 大同市| 读书| 轮台县| 漳浦县| 偏关县| 临夏市| 丰都县| 合肥市| 阳朔县| 新宾| 老河口市| 平顺县| 永福县| 富蕴县| 通山县| 宽城| 嘉义县|