presto
一、 配置文件有哪些在哪
/opt/presto/presto-server-0.263.1/etc
config.properties jvm.config launcher log.properties node.properties
config.properties
coordinator=true
node-scheduler.include-coordinator=true
query.max-memory=4GB
http-server.http.port=8180
discovery-server.enabled=true
discovery.uri=http://192.168.1.111:8180
jvm.config
-server
-Xmx4G
-XX:+UseG1GC
-XX:G1HeapRegionSize=32M
-XX:+UseGCOverheadLimit
launcher(启动)
export JAVA_HOME=/opt/jdk1.8.0_271
export PATH=$JAVA_HOME:$PATH
node.properties
node.environment=presto
node.id=node111
node.data-dir=/opt/presto/presto-server-0.263.1/data
log.properties
com.facebook.presto=DEBUG
二、怎么启动presto呢
1.先到达bin目录
cd /opt/presto/presto-server-0.263.1/bin
2.启动语句
./launcher start
三、关于不同数据库的注意点
这些数据库配置文件都放在哪
/opt/presto/presto-server-0.263.1/etc/catalog
mysql的properties
connector.name=mysql
connection-url=jdbc:mysql://192.168.1.111:3306?useSSL=false
connection-user=root
connection-password=dk123456
Oracle的properties
错误格式:(官网是错误的)
connection-url=jdbc:oracle:thin:@192.168.1.223:1521/orcl
正确格式:
connection-url=jdbc:oracle:thin:test1/pass$123@//192.168.1.223:1521/orcl
完整内容:
connector.name=oracle
connection-url=jdbc:oracle:thin:test1/pass$123@//192.168.1.223:1521/orcl
达梦DM的properties
connector.name=dm
connection-url=jdbc:dm://192.168.1.111:5236/DAMENG?user=SYSDBA&password=pass$1234
connection-user=SYSDBA
connection-password=pass$1234
四、yanagishima,presto的前端程序
程序放在哪了
/opt/presto/yanagishima-19.0/
配置文件放哪了
/opt/presto/yanagishima-19.0/conf/yanagishima.properties
内容:
#前端的端口,访问的时候其实就是192.168.1.111:8181
jetty.port=8181
presto.datasources=atiguigu-presto
#presto的程序访问路径,和presto中的配置文件 config.properties访问路径里保持一致
presto.coordinator.server.atiguigu-presto=http://192.168.1.111:8180
catalog.atiguigu-presto=hive
schema.atiguigu-presto=default
sql.query.engines=presto
# 注意一定要在这个目录下新建一个空的hive_setup_query_your-hive文件
hive.setup.query.path.your-hive=/opt/presto/yanagishima-19.0/conf/hive_setup_query_your-hive
配置文件里的注意点
注意一定要在这个目录下新建一个空的hive_setup_query_your-hive文件
hive.setup.query.path.your-hive=/opt/presto/yanagishima-19.0/conf/hive_setup_query_your-hive
启动
正确启动:
1、进入到yanagishima-19.0文件夹下
cd /opt/presto/yanagishima-19.0
2、启动
nohup bin/yanagishima-start.sh >y.log 2>&1 &
错误启动:
1、进入到yanagishima-19.0/bin文件夹下
cd /opt/presto/yanagishima-19.0/bin
2、启动
nohup ./yanagishima-start.sh >y.log 2>&1 &
成功的画面
访问路径:
192.168.1.111:8181