forked from microsoft/Mobius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.config
92 lines (79 loc) · 5.2 KB
/
App.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!--*************************************************************************************-->
<!-- Log4Net configuration sections below are needed only if Log4NetLoggerService is used -->
<!--**************************************************************************************-->
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<root>
<level value="DEBUG" />
<appender-ref ref="ConsoleAppender" />
<appender-ref ref="LogFileAppender" />
</root>
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%date] [%thread] [%-5level] [%logger] - %message%newline" />
</layout>
</appender>
<appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender">
<file type="log4net.Util.PatternString">
<conversionPattern value="%env{TEMP}\\SparkCLRLogs\\SparkCLRSamples_%env{COMPUTERNAME}[%processid].log" />
</file>
<param name="AppendToFile" value="true" />
<param name="MaxSizeRollBackups" value="2000" />
<param name="MaxFileSize" value="51200000" />
<param name="StaticLogFileName" value="false" />
<param name="DatePattern" value=".yyyy_MM_dd_hh" />
<param name="RollingStyle" value="Composite" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%date] [%thread] [%-5level] [%logger] - %message%newline" />
</layout>
</appender>
</log4net>
<appSettings>
<!--********************************************************************************************************-->
<!--** Instructions to update the following settings for debug mode are at ** -->
<!--** http://github.com/Microsoft/Mobius/blob/master/notes/running-mobius-app.md#debug-mode **-->
<!--** Uncomment the following setting to run Spark driver executable in **debug** mode ** -->
<!--** Setting the port number is optional and needed only to override the default debug port number (5567) -->
<!--** In debug mode, the driver is not launched by CSharpRunner but launched from VS or command prompt not configured for SparkCLR ** -->
<!--** CSharpBackend should be launched in debug mode as well and the port number from that should be used below ** -->
<!--** Command to launch CSharpBackend in debug mode is "sparkclr-submit.cmd debug <port number - optional>" ** -->
<!--** If port number is not specified default debug port number will be used **-->
<!--********************************************************************************************************-->
<!--
<add key="CSharpBackendPortNumber" value="0"/>
-->
<!--********************************************************************************************************-->
<!--** Uncomment the following setting to override the location of CSharpWorker.exe to use ** -->
<!--** when running Spark in **local** or ** YARN ** modes ** -->
<!--** If this setting is not used, CSharpWorker.exe will be used from default location - location of driver exe ** -->
<!--********************************************************************************************************-->
<!--
<add key="CSharpWorkerPath" value="C:\path\to\mobius\driver\application\CSharpWorker.exe"/>
-->
<!-- *** Settings for Mobius in Linux *** -->
<!--********************************************************************************************************-->
<!--** Uncomment the following setting to use Mobius in Linux - ** CentOS, Fedora or OS X or similiar distros ** ** -->
<!--** This setting uses the application layout settings recommended at http://www.mono-project.com/docs/getting-started/application-deployment/#layout-recommendation ** -->
<!--** Make sure CSharpWorker.sh.exe is available in the same location as your Mobius driver application ** -->
<!--** For more instructions refer to https://github.com/Microsoft/Mobius/blob/master/notes/linux-instructions.md#instructions-1 **-->
<!--********************************************************************************************************-->
<!-- for Spark in ** local ** mode -->
<!--
<add key="CSharpWorkerPath" value="/path/to/mobius/driver/application/CSharpWorker.sh.exe"/>
-->
<!-- for Spark in ** YARN ** mode -->
<add key="CSharpWorkerPath" value="C:\Users\ikalyvas\workspace\Code\MobiusCore\csharp\Samples\Microsoft.Spark.CSharp\csharpworkerrunner.cmd"/>
<!--set up a test kafka server before running sample DStreamDirectKafkaWithRepartitionSample-->
<add key="KafkaTestBrokers" value="127.0.0.1:9092"/>
<!--your test topic name-->
<add key="KafkaTestTopic" value="test"/>
<!--number of partitions you want to create for the RDD, please set a different value from the original kafka partitions-->
<add key="KafkaTestPartitions" value="10"/>
<!--total message count of your test topic, please do not load too much data to your test topic-->
<add key="KafkaMessageCount" value="100"/>
</appSettings>
</configuration>