Updated Run Presto on SeaweedFS (markdown)

boshen-dev 2020-12-02 20:35:05 +08:00
parent 4b0a0375c2
commit f5b004781b

@ -89,3 +89,46 @@ hive.max-partitions-per-scan=1000000
hive.compression-codec=NONE hive.compression-codec=NONE
hive.config.resources=/opt/presto-server-347/etc/catalog/core-site.xml hive.config.resources=/opt/presto-server-347/etc/catalog/core-site.xml
``` ```
# 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
}
```