cancel
Showing results for 
Search instead for 
Did you mean: 

"frameworkadapter.log" is missing

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Stefan,

Are you running the project in the Studio or outside of the Studio? 

Thanks,

Beverly

Former Member
0 Kudos

Hi Beverly,

I running the project in ESP Studio.

Best Regards

Stefan

Former Member
0 Kudos

Stefan,

Try searching under C:\Users\<userid>\My Documents\SybaseESP\5.1\<workspace>...

Thanks,
Beverly

Former Member
0 Kudos

Hi Beverly,

I tried it, but there are only the other two log files (I mentioned above). The frameworkadapter.log is not there. I also let my PC search for the log file. But it's no where on my pc.

Best Regards

Stefan

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Beverly,

thanks for the information. I tried the same ADAPTER_CLASSPATH and also set the log4j.properties to ALL. But unfortunally I still have no framworkadapter.log file.

Best Regards

Stefan

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Beverly,

thanks for your help. After starting ESP studio as admin I got the frameworkadapter.log.

Best Regards

Stefan

Answers (1)

Answers (1)

0 Kudos

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

Former Member
0 Kudos

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?