Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

删除 share_proxy_base_uri #332

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Aries/Aries/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@
AUTH_LDAP_USER_ATTR_MAP = AUTH_LDAP_SETTINGS["USER_ATTR_MAP"]

REST_BASE_URI = SETTINGS["REST_BASE_URI"]
SHARE_PROXY_BASE_URI = SETTINGS["SHARE_PROXY_BASE_URI"]

AMBARI_SETTINGS = SETTINGS["AMBARI"]
AMBARI_URL = AMBARI_SETTINGS["AMBARI_URL"]
HDFS_URL = AMBARI_SETTINGS["HDFS_URL"]
Expand Down
2 changes: 1 addition & 1 deletion Aries/hdfs/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def postshare(request,path):
path = os.path.realpath("/%s/%s" %(os.path.sep,path))
space_name = request.GET.get("spaceName","")
proxy_link = hashlib.md5("%s%s%s" %(space_name,path,int(time.time()))).hexdigest()
proxy_link = "{0}/{1}/{2}".format(settings.SHARE_PROXY_BASE_URI,"CloudService/HDFS/ShowShare",proxy_link)
proxy_link = "{0}/{1}/{2}".format(settings.REST_BASE_URI,"CloudService/HDFS/ShowShare",proxy_link)
hdfs_logger.info("proxy_link:{0}".format(proxy_link))
# 设置目录权限 chmod -R 755 space_path/path
exitCode,data = share_cmd(space_name,path,"755")
Expand Down
4 changes: 1 addition & 3 deletions docker-k8s/k8s_config/sirius-rc-hlg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ spec:
ports:
- containerPort: 10086
env:
- name: SHARE_PROXY_BASE_URI
value: "http://172.24.3.150:10086"
- name: REST_BASE_URI
value: "172.24.3.150:10086"
- name: DATABASES_DEFAULT_ENGINE
Expand Down Expand Up @@ -52,7 +50,7 @@ spec:
value: "True"
- name: LDAP_CACHE_GROUPS
value: "True"
- name: LDAP_GROUP_CACHE_TIMEOUT
- name: LDAP_GROUP_CACHE_TIMEOUT
value: "3600"
- name: LDAP_USER_ATTR_MAP_USERNAME
value: "givenName"
Expand Down
2 changes: 0 additions & 2 deletions docker-k8s/k8s_config/sirius-rc-lugu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ spec:
ports:
- containerPort: 10086
env:
- name: SHARE_PROXY_BASE_URI
value: "sirius.k8s.baifendian.com"
- name: REST_BASE_URI
value: "sirius.k8s.baifendian.com"
- name: DATABASES_DEFAULT_ENGINE
Expand Down
4 changes: 1 addition & 3 deletions docker-k8s/k8s_config/sirius-rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ spec:
ports:
- containerPort: 10086
env:
- name: SHARE_PROXY_BASE_URI
value: "http://172.24.3.150:10086"
- name: REST_BASE_URI
value: "172.24.3.150:10086"
- name: DATABASES_DEFAULT_ENGINE
Expand Down Expand Up @@ -52,7 +50,7 @@ spec:
value: "True"
- name: LDAP_CACHE_GROUPS
value: "True"
- name: LDAP_GROUP_CACHE_TIMEOUT
- name: LDAP_GROUP_CACHE_TIMEOUT
value: "3600"
- name: LDAP_USER_ATTR_MAP_USERNAME
value: "givenName"
Expand Down
1 change: 0 additions & 1 deletion docker-k8s/script/start_script.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
sed -i "s#k8s_SHARE_PROXY_BASE_URI#$SHARE_PROXY_BASE_URI#g" /opt/Sirius/sbin/Aries.yaml
sed -i "s#k8s_REST_BASE_URI#$REST_BASE_URI#g" /opt/Sirius/sbin/Aries.yaml


Expand Down
7 changes: 3 additions & 4 deletions sbin/Aries.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SHARE_PROXY_BASE_URI: "http://172.24.3.64:10086"
REST_BASE_URI: "172.24.3.64:10012"

DATABASES:
Expand All @@ -23,7 +22,7 @@ AUTH_LDAP:
BIND_AS_AUTHENTICATING_USER: True
CACHE_GROUPS: True
GROUP_CACHE_TIMEOUT: 3600
USER_ATTR_MAP:
USER_ATTR_MAP:
username: "givenName"
password: "password"

Expand Down Expand Up @@ -51,7 +50,7 @@ BDMS:

WEBHDFS:
HOSTS:
- 172.24.3.65:50070
- 172.24.3.65:50070
- 172.24.3.66:50070
PORT: 50070
PATH: "/webhdfs/v1"
Expand All @@ -66,7 +65,7 @@ CLIENTHDFS:
CODIS:
CODIS_REST_URL: 'http://192.168.49.127:8888'
OPENTSDB_URL: 'http://192.168.40.140:9999'

OPENSTACK:
IP_KEYSTONE: "192.168.190.11"
PORT_KEYSTONE: 5000
Expand Down
11 changes: 5 additions & 6 deletions sbin/Aries.yaml.k8s
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SHARE_PROXY_BASE_URI: k8s_SHARE_PROXY_BASE_URI
REST_BASE_URI: k8s_REST_BASE_URI

DATABASES:
Expand All @@ -19,11 +18,11 @@ DATABASES:

AUTH_LDAP:
SERVER_URI: k8s_LDAP_SERVER_URI
USER_DN_TEMPLATE: k8s_LDAP_DN
USER_DN_TEMPLATE: k8s_LDAP_DN
BIND_AS_AUTHENTICATING_USER: k8s_LDAP_BIND
CACHE_GROUPS: k8s_LDAP_CACHE_GROUPS
GROUP_CACHE_TIMEOUT: k8s_LDAP_GROUP_CACHE_TIMEOUT
USER_ATTR_MAP:
USER_ATTR_MAP:
username: k8s_LDAP_USER_ATTR_MAP_USERNAME
password: k8s_LDAP_USER_ATTR_MAP_PASSWORD

Expand All @@ -32,7 +31,7 @@ AMBARI:
HDFS_URL: k8s_AMBARI_HDFS_URL
HADOOP_CLIENT: k8s_AMBARI_HADOOP_CLIENT
AMBARI_PASSWORD: k8s_AMBARI_PASSWORD
AMBARI_USER: k8s_AMBARI_USER
AMBARI_USER: k8s_AMBARI_USER


K8S:
Expand All @@ -43,7 +42,7 @@ K8S:
INFLUXDB_DATABASE: k8s_K8S_INFLUXDB_DATABASE

BDMS:
IP: k8s_BDMS_IP
IP: k8s_BDMS_IP
PORT: k8s_BDMS_PORT
USERNAME: k8s_BDMS_USERNAME
PASSWORD: k8s_BDMS_PASSWORD
Expand All @@ -63,7 +62,7 @@ CLIENTHDFS:
CODIS:
CODIS_REST_URL: k8s_CODIS_REST_URL
OPENTSDB_URL: k8s_CODIS_OPENTSDB_URL

OPENSTACK:
IP_KEYSTONE: k8s_OPENSTACK_IP_KEYSTONE
PORT_KEYSTONE: k8s_OPENSTACK_PORT_KEYSTONE
Expand Down