diff --git a/Run-Presto-on-SeaweedFS.md b/Run-Presto-on-SeaweedFS.md index a7c7227..f1788dc 100644 --- a/Run-Presto-on-SeaweedFS.md +++ b/Run-Presto-on-SeaweedFS.md @@ -88,4 +88,47 @@ hive.allow-drop-table=true hive.max-partitions-per-scan=1000000 hive.compression-codec=NONE hive.config.resources=/opt/presto-server-347/etc/catalog/core-site.xml -``` \ No newline at end of file +``` + +# Using Examples +1. Connect to Presto and create a table boshen +``` +[root@cluster9 ~]# ./presto --server 10.0.100.51:42174 --catalog hive --schema default +presto:default> create table boshen(name varchar); +CREATE TABLE +presto:default> +``` +2. Query whether the boshen directory has been generated in 10.0.10.51:30888/presto/warehouse +``` +[root@cluster9 ~]# curl -H "Accept: application/json" http://10.0.100.51:30888/presto/warehouse/?pretty=y +{ + "Path": "presto/warehouse", + "Entries": [ + { + "FullPath": "/presto/warehouse/boshen", + "Mtime": "2020-12-02T20:29:08+08:00", + "Crtime": "2020-12-02T20:29:08+08:00", + "Mode": 2147484159, + "Uid": 0, + "Gid": 0, + "Mime": "", + "Replication": "", + "Collection": "", + "TtlSec": 0, + "UserName": "root", + "GroupNames": [ + "root" + ], + "SymlinkTarget": "", + "Md5": null, + "FileSize": 0, + "Extended": null, + "HardLinkId": null, + "HardLinkCounter": 0 + } + ], + "Limit": 100, + "LastFileName": "boshen", + "ShouldDisplayLoadMore": false +} +```