Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-2447

FIWARE.Request.Tech.Data.CEP.Consumers output file

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Dear All,

      When we create the consumers and specify output as a file "./sample/DOS.txt"
      Do we need to create those files or the CEP handle this issue ?

      I am asking because when I leave the folder empty, in catalina.out I find
      error that no such file or directory and no files are created

      Looking forward for your reply

      Ahmed Sadek

      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-tech-help

      [Created via e-mail received from: Ahmed Sadek <don1559@gmail.com>]

        Activity

        Hide
        fw.ext.user FW External User added a comment -

        Dear Ahmed,

        Sorry for belated reply due to the Easter holidays. Please contact the GE owner directly. Her address is public on the catalogue:

        http://catalogue.fiware.org/enablers/complex-event-processing-cep-proactive-technology-online

        Best regards,

        Miguel
        El 01/04/2015 a las 18:39, Ahmed Sadek escribió:
        Dear All,

        When we create the consumers and specify output as a file "./sample/DOS.txt"
        Do we need to create those files or the CEP handle this issue ?

        I am asking because when I leave the folder empty, in catalina.out I find error that no such file or directory and no files are created

        Looking forward for your reply

        Ahmed Sadek

        Show
        fw.ext.user FW External User added a comment - Dear Ahmed, Sorry for belated reply due to the Easter holidays. Please contact the GE owner directly. Her address is public on the catalogue: http://catalogue.fiware.org/enablers/complex-event-processing-cep-proactive-technology-online Best regards, Miguel El 01/04/2015 a las 18:39, Ahmed Sadek escribió: Dear All, When we create the consumers and specify output as a file "./sample/DOS.txt" Do we need to create those files or the CEP handle this issue ? I am asking because when I leave the folder empty, in catalina.out I find error that no such file or directory and no files are created Looking forward for your reply Ahmed Sadek
        Hide
        TALI Fabiana Fournier added a comment -

        Dear Ahmed,
        As you pointed out, from the log you saw that the CEP can't open the output file:
        >>>
        Apr 3, 2015 3:58:30 PM com.ibm.hrl.proton.adapter.servers.AbstractServer startAdapters
        WARNING: initializeAdapters: failed to initialize adapter Output adapter for consumer: SysTemCrashConsumer, reason: No such file or directory
        Apr 3, 2015 3:58:30 PM com.ibm.hrl.proton.adapter.servers.AbstractServer startAdapters
        WARNING: initializeAdapters: failed to initialize adapter Output adapter for consumer: DoSAttackTRConsumer, reason: No such file or directory
        >>>
        This usually happen if the path specified as the Consumer's output file doesn't exist, or if you run on unix/linux and tomcat has no permission to write in this directory or to write to the specific file.
        I would also recommend to use an absolute path and not relative path for the output file, since in different operating systems, the Tomcat "current" directory may be different.

        As for your current question - you don't need to create the file, but you do need to create the directory and make sure tomcat has permission to write to this directory (or if the file exists to write to this file)

        So here are my recommendations:
        1. Stop tomcat
        2. Delete catalina.out 
        3. Activate tomcat
        4. In the CEP web UI, change the path of the Consumers to an absolute path, save the project, export it to the repository
        5. Make sure the path you specified for the Consumers exists, and that tomcat has permission to write to the directory, and if the files exist, to this files.
        6. Change the status of the CEP engine to Stop
        7. Change the status of the CEP engine to Start
        8. Send an input event
        Make sure you don't see the warning listed above in the catalina.out

        Hope this helps,
        Best regards,
        Tali

        Show
        TALI Fabiana Fournier added a comment - Dear Ahmed, As you pointed out, from the log you saw that the CEP can't open the output file: >>> Apr 3, 2015 3:58:30 PM com.ibm.hrl.proton.adapter.servers.AbstractServer startAdapters WARNING: initializeAdapters: failed to initialize adapter Output adapter for consumer: SysTemCrashConsumer, reason: No such file or directory Apr 3, 2015 3:58:30 PM com.ibm.hrl.proton.adapter.servers.AbstractServer startAdapters WARNING: initializeAdapters: failed to initialize adapter Output adapter for consumer: DoSAttackTRConsumer, reason: No such file or directory >>> This usually happen if the path specified as the Consumer's output file doesn't exist, or if you run on unix/linux and tomcat has no permission to write in this directory or to write to the specific file. I would also recommend to use an absolute path and not relative path for the output file, since in different operating systems, the Tomcat "current" directory may be different. As for your current question - you don't need to create the file, but you do need to create the directory and make sure tomcat has permission to write to this directory (or if the file exists to write to this file) So here are my recommendations: 1. Stop tomcat 2. Delete catalina.out  3. Activate tomcat 4. In the CEP web UI, change the path of the Consumers to an absolute path, save the project, export it to the repository 5. Make sure the path you specified for the Consumers exists, and that tomcat has permission to write to the directory, and if the files exist, to this files. 6. Change the status of the CEP engine to Stop 7. Change the status of the CEP engine to Start 8. Send an input event Make sure you don't see the warning listed above in the catalina.out Hope this helps, Best regards, Tali

          People

          • Assignee:
            TALI Fabiana Fournier
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: