forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault_emr_env.sh
58 lines (55 loc) · 2.1 KB
/
default_emr_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
##############################################################
# See emr_tools.sh
##############################################################
# specified sevices: ali,hw,tx
export SERVICE=ali
# doris host
export HOST=127.0.0.1
# doris user
export USER=root
# doris mysql cli port
export PORT=9030
# prepare endpoint,region,ak/sk
if [[ ${SERVICE} == 'ali' ]]; then
export CASE=ping
export AK=ak
export SK=sk
export ENDPOINT=oss-cn-beijing-internal.aliyuncs.com
export REGION=oss-cn-beijing
export HMS_META_URI="thrift://172.16.1.1:9083"
export HMS_WAREHOUSE=oss://benchmark-oss/user
elif [[ ${SERVICE} == 'hw' ]]; then
export CASE=ping
export AK=ak
export SK=sk
export ENDPOINT=obs.cn-north-4.myhuaweicloud.com
export REGION=cn-north-4
export HMS_META_URI="thrift://node1:9083,thrift://node2:9083"
export HMS_WAREHOUSE=obs://datalake-bench/user
export BEELINE_URI="jdbc:hive2://192.168.0.1:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;hive.server2.proxy.user=hive"
elif [[ ${SERVICE} == 'tx' ]]; then
export CASE=ping
export AK=ak
export SK=sk
export ENDPOINT=cos.ap-beijing.mycloud.com
export REGION=ap-beijing
export HMS_META_URI="thrift://172.21.0.1:7004"
export HMS_WAREHOUSE=cosn://datalake-bench-cos-1308700295/user
fi