Are there anybody use locally input file to calculate by TESK and how to configuration?
Are there anybody use locally input file to calculate by TESK and how to configuration? Anybody can help me?
In my deployment I use configuration like this: - name: TESK_API_TASKMASTER_ENVIRONMENT_HOST_BASE_PATH value: '/nfs'
- name: TESK_API_TASKMASTER_ENVIRONMENT_CONTAINER_BASE_PATH
value: '/transfer'
- name: TESK_API_TASKMASTER_ENVIRONMENT_TRANSFER_PVC_NAME
value: 'tesk-claim'
but I get the error:
Traceback (most recent call last):
File "/usr/bin/filer", line 10, in
It would help, if you provided more information.
- When are you getting the error? (What was the TES API call; specifically which input path led to this error?)
- How have you configured your PVC (what storage class it is etc)?
- Is there any README.md file and if so, where? Answering your question - there were people who successfully used TESK in shared filesystem mode. I assume you read this, as your are trying to set correct variables.
thank you for your response!
1、I didn't use TES api, I use yaml configuration file to run my job, the job configuration file like this:
{ "description": "FTP outputting file and directory from volume location", "volumes": [ "/mnt" ], "inputs": [ { "description": "test local file", "path": "/mnt/volumes/file1.txt", "type": "FILE", "url": "file:///nfs/inputs/README.md" } ], "executors": [ { "image": "10.50.10.48:5000/centos:7", "command": [ "sh", "-c", "echo 'This goes to file1'" ] } ] }
I just want to test locally input file, but the error i get.
2、I defined the pvc storage class by myself,it works fine when i use configuration like this:
{ "description": "FTP outputting file and directory from volume location", "volumes": [ "/mnt" ], "inputs": [ { "description": "test local file", "path": "/mnt/volumes/file1.txt", "type": "FILE", "content": "file:///nfs/inputs/README.md" } ], "executors": [ { "image": "10.50.10.48:5000/centos:7", "command": [ "sh", "-c", "echo 'This goes to file1'" ] } ] }
3、I try to put the README.md file in path /transfer/inputs and /nfs/inputs/,but it didn't work.Are there anything I forget?
I set my storage class and pvc like this:
the storage class
apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: managed-nfs-storage namespace: nfs-test annotations: storageclass.kubernetes.io/is-default-class: "true" provisioner: qgg-nfs-storage archiveOnDelete: "false" reclaimPolicy: Retain allowVolumeExpansion: true
the PVC
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: tesk-claim
namespace: tesk-test
annotations:
volume.beta.kubernetes.io/storage-class: "managed-nfs-storage"
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Mi