file.yaml 1.1 KB

12345678910111213141516171819202122232425262728
  1. default:
  2. # The type of the file, could be json, csv and lines
  3. fileType: json
  4. # The directory of the file relative to kuiper root or an absolute path.
  5. # Do not include the file name here. The file name should be defined in the stream data source
  6. path: data
  7. # The interval between reading the files, time unit is ms. If only read once, set it to 0
  8. interval: 0
  9. # The sending interval between each event in millisecond
  10. sendInterval: 0
  11. # After read
  12. # 0: keep the file
  13. # 1: delete the file
  14. # 2: move the file to moveTo
  15. actionAfterRead: 0
  16. # The path to move the file to after read, only valid when the actionAfterRead is 2
  17. moveTo: /tmp/kuiper/moved
  18. # If the first line is header
  19. hasHeader: false
  20. # Define the columns. If header is defined, this will be override
  21. # columns: [id, name]
  22. # How many lines to be ignored at the beginning. Notice that, empty line will be ignored and not be calculated.
  23. ignoreStartLines: 0
  24. # How many lines to be ignored in the end. Notice that, empty line will be ignored and not be calculated.
  25. ignoreEndLines: 0
  26. test:
  27. path: test