如何在风暴中找到调试拓扑的结果?

时间:2015-12-13 06:34:42

标签: apache-storm topology

我是暴风雨尝试使用调试的新手

我在topology.debug: true

中强制storm.yaml

但是当我完成sumbiting拓扑时,找不到调试结果的位置

我在storm ui注意到topology.debug is false

为什么它不能阅读我的更改?

1 个答案:

答案 0 :(得分:0)

群集中的每个节点/计算机都有自己的<?xml version="1.0" encoding="utf-8"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=152368 --> <configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> <section name="twpSettings" type="TWP.Areas.Core.Models.Settings.TwpSettingsSection, TWP"/> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> </configSections> <!-- Path to the configuration file for custom TWP settings --> <twpSettings configSource="Config\Twp.config"/> <appSettings> <!-- Setting for increasing the max size of http requests --> <add key="aspnet:MaxHttpCollectionKeys" value="10000"/> <!-- Path to the configuration file for log4net --> <add key="log4net.Config" value="Config\log4net.config"/> <add key="ClientValidationEnabled" value="true"/> <add key="UnobtrusiveJavaScriptEnabled" value="true"/> </appSettings> <connectionStrings> <add name="ADConnectionString1" connectionString="xxxxxx,OU=xxxxxx,DC=xxxxxx,DC=xxx"/> <add name="TWPConnectionString" connectionString="Data Source=xxxxxx;Initial Catalog=xxxxxxxxx;Persist Security Info=True;User ID=xxxxxxxxxx;Password=xxxxxxxxxxxxxxx" providerName="System.Data.SqlClient"/> </connectionStrings> <system.web> <customErrors mode="Off"/> <compilation debug="false" targetFramework="4.0"> <assemblies> <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </assemblies> </compilation> <!-- Default culture --> <globalization uiCulture="en-GB" culture="en-GB"/> <authentication mode="Forms"> <forms loginUrl="~/Core/Account/LogOn" timeout="2880"/> </authentication> <pages> <namespaces> <add namespace="System.Web.Helpers"/> <add namespace="System.Web.Mvc"/> <add namespace="System.Web.Mvc.Ajax"/> <add namespace="System.Web.Mvc.Html"/> <add namespace="System.Web.Routing"/> <add namespace="System.Web.WebPages"/> <add namespace="TWP.Areas.Core.Models"/> </namespaces> </pages> <httpRuntime maxRequestLength="10240"/> </system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31BF3856AD364E35" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="1.0.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.WebPages.Deployment" publicKeyToken="31BF3856AD364E35" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="1.0.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Razor" publicKeyToken="31BF3856AD364E35" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/> <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> <system.serviceModel> <!-- Clients --> <client> (removed) </client> <!-- Services --> <services> (removed) </services> <!-- Service Hosting Environment --> <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/> <!-- Bindings --> <bindings> <wsHttpBinding> <binding name="wsHttpBinding_DccWcfLibrary" closeTimeout="00:00:10" openTimeout="00:00:10" sendTimeout="00:00:10" maxReceivedMessageSize="4194304" /> </wsHttpBinding> <webHttpBinding> <binding name="webHttpBinding_Large" maxReceivedMessageSize="1655360"> <readerQuotas maxDepth="32" maxStringContentLength="163840" maxArrayLength="163840" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="None" /> </binding> </webHttpBinding> </bindings> <!-- Behaviors --> <behaviors> <serviceBehaviors> <behavior name=""> <serviceMetadata httpGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="true"/> </behavior> </serviceBehaviors> <endpointBehaviors> <behavior name="geocodingBehavior"> <webHttp/> </behavior> </endpointBehaviors> </behaviors> </system.serviceModel> <entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/> <providers> <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/> </providers> </entityFramework> </configuration> 文件。因此,您对本地storm.yaml的更改不会产生任何影响。但是,您可以通过提交拓扑时提供的拓扑配置覆盖此值:

storm.yaml

您可以在Config cfg = new Config(); cfg.setDebug(true); StormSubmitter.submitTopology("myTopology", cfg, builder.createTopology());

中找到群集中节点上的日志文件