This is an automated email from the ASF dual-hosted git repository.

lzljs3620320 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-paimon-presto.git


The following commit(s) were added to refs/heads/main by this push:
     new c978e42  Add S3 FileSystem usage in readme (#19)
c978e42 is described below

commit c978e4294a19aea34ca851fe25d958b33abe2ddb
Author: humengyu <[email protected]>
AuthorDate: Sat Nov 25 14:17:05 2023 +0800

    Add S3 FileSystem usage in readme (#19)
---
 README.md | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 8d04072..e0ba1f9 100644
--- a/README.md
+++ b/README.md
@@ -76,7 +76,7 @@ cd ${PRESTO_HOME}
 mkdir -p etc/catalog
 ```
 
-Query FileSystem table:
+**Query FileSystem table:**
 
 ```bash
 vim etc/catalog/paimon.properties
@@ -86,11 +86,25 @@ and set the following config:
 
 ```properties
 connector.name=paimon
-# set your filesystem path, like hdfs://namenode01:8020/path
+# set your filesystem path, such as hdfs://namenode01:8020/path and 
s3://${YOUR_S3_BUCKET}/path
 warehouse=${YOUR_FS_PATH}
 ```
 
-Query HiveCatalog table:
+If you are using HDFS FileSystem, you will also need to do one more thing: 
choose one of the following ways to configure your HDFS:
+
+- set environment variable HADOOP_HOME.
+- set environment variable HADOOP_CONF_DIR.
+- configure `hadoop-conf-dir` in the properties.
+
+If you are using S3 FileSystem, you need to add 
`paimon-s3-${PAIMON_VERSION}.jar` in `${PRESTO_HOME}/plugin/paimon` and 
additionally configure the following properties in `paimon.properties`:
+
+```properties
+s3.endpoint=${YOUR_ENDPOINTS}
+s3.access-key=${YOUR_AK}
+s3.secret-key=${YOUR_SK}
+```
+
+**Query HiveCatalog table:**
 
 ```bash
 vim etc/catalog/paimon.properties
@@ -100,7 +114,7 @@ and set the following config:
 
 ```properties
 connector.name=paimon
-# set your filesystem path, like hdfs://namenode01:8020/path
+# set your filesystem path, such as hdfs://namenode01:8020/path and 
s3://${YOUR_S3_BUCKET}/path
 warehouse=${YOUR_FS_PATH}
 metastore=hive
 uri=thrift://${YOUR_HIVE_METASTORE}:9083

Reply via email to