on 06-16-2015 2:37 PM
Hi,
I have a local installation of ESP and have a problem with my Hadoop_File_CSV_Output adapter and wanted check in the "frameworkadapter.log" what the problem is. But unfurtunally I don't have this log file.
I searched a little bit and find that this log file should be located in the same directory where the both log files "esp_server.log" and "stdstreams.log" are.
I tried to reinstall esp and also tried to execute again the "STREAMING.bat" in the %STREAMING HOME% directory to set the environment variables. But I still don't have this log file.
Does anyone have another idea what I can try to get the "frameworkadapter.log"?
Thanks in advance.
Best Regards
Stefan
Stefan,
Are you running the project in the Studio or outside of the Studio?
Thanks,
Beverly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stefan,
Where is the log4j.properties located? Did you set a adapter_classpath environment variable?
Logging - SAP Event Stream Processor: Adapters Guide - SAP Library
Can you provide your esp_server.log file so that we can review it. If so, can you please upload it to the following location:
https://mdocs.sap.com/mcm/public/v1/open?shr=seDQV-msPRQ4KiOJgX2J6cqE0bbNCu5qHozJOEVp_i0
Thanks,
Beverly
Hi Beverly,
The log4j.properties I posted above is at %STREAMING HOME%\adapters\framework\config\log4j.properties locted.
I didn't set a adapter_classpath environment untill now.
Does I have to use the same path where the log4j.properties are located for the ADAPTER_CLASSPATH environment variable?
I also uploaded the esp_server.log at the link you posted.
Best Regards
Stefan
Stefan,
I created a system environment variable as the following:
ADAPTER_CLASSPATH=C:\esp\ESP-5_1\adapters\framework\config
The folder, C:\esp\ESP-5_1\adapters\framework\config, contains the log4j.properties.
I was able to see that a frameworkadapter.log file was created under:
C:\SybaseESP\5.1.9\workspace\projects\default.mynewhadoop.0\logs
Does that help?
Thanks,
Beverly
Stefan,
Can you send in your project and steps to reproduce?
You can use the same link as before:
https://mdocs.sap.com/mcm/public/v1/open?shr=seDQV-msPRQ4KiOJgX2J6cqE0bbNCu5qHozJOEVp_i0
Thanks,
Beverly
Hi Beverly,
in my project I simply use the generic input adapter to read datasets from SAP HANA (it worked without any problems). After that I have the hadoop file csv output adapter connected to the input adapter to write the datasets into hadoop.
I loaded up the project as zip file on your link.
Best Regards
Stefan
Stefan,
I was not able to reproduce your issue using the project that you provided.
Here are a few suggestions:
1. When you start the studio, right mouse click on the executable and select 'Run As Administrator'.
2. Make sure the file and folder have write permissions:
%STREAMING_HOME%\adapters\framework\instances\file_csv_output\adapter_config.xml
%STREAMING_HOME%\lib\adapters\toolkit_file_csv_output.cnxml
Thank you.
Beverly
Hi Stefan,
are you running ESP on Windows or Linux? Have you checked the log4j.properties, yet? Double check the logging path/file.
On Windows you'll find the frameworkadapter.log by default in your workspace folder under <Workspace>/projects/<project_name>/
On Linux I found frameworkadapter.log in <ESP_HOME>/cluster/projects/.../projectname
Good luck and regards,
Lukas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lucas,
I running ESP on Windows and also checked the log4j.properties, it looks like this:
-------------------------------------------------------------------------------------------------------------------------------------------------
# Set root logger level to DEBUG and set appenders to stdout, file and email
log4j.rootLogger=ALL, stdout, R
# stdout appender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{MM-dd-yyyy HH:mm:ss.SSS} %p [%t] (%C{1}.%M) %m%n
#log4j.appender.stdout.Threshold=INFO
# file appender
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=logs/frameworkadapter.log
log4j.appender.R.DatePattern='.'yyyy-MM-dd
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{MM-dd-yyyy HH:mm:ss.SSS} %p [%t] (%C{1}.%M) %m%n
#log4j.appender.R.Threshold=INFO
# email appender
log4j.appender.email=org.apache.log4j.net.SMTPAppender
log4j.appender.email.To=your.name@yourcompany.com
log4j.appender.email.From=alert.manager@yourcompany.com
log4j.appender.email.SMTPHost=yourmailhost
log4j.appender.email.BufferSize=1
log4j.appender.email.Subject=Framework Adapter Error
log4j.appender.email.layout=org.apache.log4j.PatternLayout
log4j.appender.email.layout.ConversionPattern=%d{MM-dd-yyyy HH:mm:ss.SSS} %p [%t] (%C{1}.%M) %m%n
log4j.appender.email.Threshold=ERROR
log4j.logger.com.sybase.esp=INFO
-------------------------------------------------------------------------------------------------------------------------------------------------
Is there anything wrong or should I edit something at this file?
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.