- Big Data Analytics with Hadoop 3
- Sridhar Alla
- 96字
- 2021-06-25 21:26:10
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
推薦閱讀
- 32位嵌入式系統與SoC設計導論
- Mastering Hadoop 3
- 計算機原理
- WOW!Illustrator CS6完全自學寶典
- 手把手教你玩轉RPA:基于UiPath和Blue Prism
- Hands-On Neural Networks with Keras
- Windows 8應用開發實戰
- 大數據挑戰與NoSQL數據庫技術
- Implementing Oracle API Platform Cloud Service
- PostgreSQL 10 Administration Cookbook
- 筆記本電腦使用與維護
- 電氣控制及Micro800 PLC程序設計
- 智能+:制造業的智能化轉型
- 超好玩的Python少兒編程
- TensorFlow 2.0卷積神經網絡實戰