Skip to content

Commit

Permalink
Merge pull request #265 from baifendian/fix-file-share
Browse files Browse the repository at this point in the history
修复文件分享后找不到文件的问题.
  • Loading branch information
LuPan2015 authored Sep 29, 2016
2 parents 4c2fbb8 + a109bbd commit a403f4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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,"HDFS/ShowShare",proxy_link)
proxy_link = "{0}/{1}/{2}".format(settings.SHARE_PROXY_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
8 changes: 4 additions & 4 deletions docker-k8s/k8s_config/sirius-rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
spec:
containers:
- name: sirius
image: docker.baifendian.com/lupan/sirius_lugu:1
image: docker.baifendian.com/lupan/sirius_lugu:1.0
ports:
- containerPort: 10086
volumeMounts:
Expand All @@ -21,13 +21,13 @@ spec:
- mountPath: /opt/Siurs/download
name: siriusdownload
imagePullSecrets:
- name: docker-registry-sys
- name: docker-registry-sys
volumes:
- emptyDir: {}
name: siriuslog
- emptyDir: {}
name: siriusdownload
imagePullSecrets:
- name: docker-registry-sys
nodeSelector:
kubernetes.io/hostname: 192.168.49.46
#nodeSelector:
# kubernetes.io/hostname: 192.168.49.46

0 comments on commit a403f4c

Please sign in to comment.