Updated Run Presto on SeaweedFS (markdown)

boshen-dev 2020-12-02 18:02:26 +08:00
parent ffb5d1d1fb
commit 0a1ad615bd

@ -5,12 +5,13 @@ The installation steps are divided into 2 steps:
* https://cwiki.apache.org/confluence/display/Hive/AdminManual+Metastore+Administration
### Configure Hive Metastore to support SeaweedFS
Copy the seaweedfs-hadoop2-client-1.5.6.jar to hive lib directory,for example:
1. Copy the seaweedfs-hadoop2-client-1.5.6.jar to hive lib directory,for example:
```
cp seaweedfs-hadoop2-client-1.5.6.jar /opt/hadoop/share/hadoop/common/lib/
cp seaweedfs-hadoop2-client-1.5.6.jar /opt/hive-metastore/lib/
```
### Modify hive-site.xml
2. Modify core-site.xml
modify core-site.xml to support SeaweedFS, 30888 is the filer port
```
<configuration>
<property>
@ -31,4 +32,24 @@ cp seaweedfs-hadoop2-client-1.5.6.jar /opt/hive-metastore/lib/
</property>
</configuration>
```
## install Presto
3. Modify hive-site.xml
modify hive-site.xml to support SeaweedFS, need to manually create the /presto/warehouse directory in Filer
```
<property>
<name>metastore.warehouse.dir</name>
<value>seaweedfs://10.0.100.51:30888/presto/warehouse</value>
</property>
<property>
<name>metastore.thrift.port</name>
<value>9850</value>
</property>
```
## install Presto
Follow instructions for installation of Presto:
* https://prestosql.io/docs/current/installation/deployment.html
### Configure Presto to support SeaweedFS
1. Copy the seaweedfs-hadoop2-client-1.5.6.jar to Presto directory,for example:
```
cp presto-server-347/plugin/hive-hadoop2 presto-server-344/plugin/hive-hadoop2
```