diff --git a/Run-Presto-on-SeaweedFS.md b/Run-Presto-on-SeaweedFS.md index e6880b9..47d660e 100644 --- a/Run-Presto-on-SeaweedFS.md +++ b/Run-Presto-on-SeaweedFS.md @@ -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 ``` @@ -31,4 +32,24 @@ cp seaweedfs-hadoop2-client-1.5.6.jar /opt/hive-metastore/lib/ ``` -## install Presto \ No newline at end of file +3. Modify hive-site.xml +modify hive-site.xml to support SeaweedFS, need to manually create the /presto/warehouse directory in Filer +``` + + metastore.warehouse.dir + seaweedfs://10.0.100.51:30888/presto/warehouse + + + metastore.thrift.port + 9850 + +``` + +## 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 +```