How to get all sections by name in the sectionGroup applicationSettings in .Net 2.0

Take a look at the ConfigurationManager.OpenExeConfiguration function to load in your configuration file. Then on the System.Configuration.Configuration class that you’ll get back from ConfigurationManager.OpenExeConfiguration you’ll want to look at the SectionGroups property. That’ll return a ConfigurationSectionGroupCollection in which you’ll find the applicationSettings section. In the ConfigurationSectionGroupCollection there will be a Sections property which contains the … Read more

How do I not log a particular type of Exception in Logback?

You can do it with a simple EvaluatorFilter: <filter class=”ch.qos.logback.core.filter.EvaluatorFilter”> <evaluator> <expression>java.lang.RuntimeException.class.isInstance(throwable)</expression> </evaluator> <onMatch>DENY</onMatch> </filter> Please note that you need the following dependency in your pom.xml as well: <dependency> <groupId>org.codehaus.janino</groupId> <artifactId>janino</artifactId> <version>3.1.9</version> </dependency> Another possible solution is a custom Filter implementation: import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.classic.spi.IThrowableProxy; import ch.qos.logback.classic.spi.ThrowableProxy; import ch.qos.logback.core.filter.Filter; import ch.qos.logback.core.spi.FilterReply; public class SampleFilter extends … Read more

IIS 7.5 Fixing An attempt was made to load a program with an incorrect format problem?

Found the problem – The solution is in the way that the two AppPools are configured: Default Website/my_app is using DefaultAppPool where Enable 32-Bit applications is TRUE Beta/my_app -> BetaAppPool is using Enable 32-Bit applications is FALSE Changing BetaAppPool to set Enable 32-Bit applications to TRUE has fixed this problem. Solution was found by @Rick … Read more

Datanode process not running in Hadoop

You need to do something like this: bin/stop-all.sh (or stop-dfs.sh and stop-yarn.sh in the 2.x serie) rm -Rf /app/tmp/hadoop-your-username/* bin/hadoop namenode -format (or hdfs in the 2.x serie) the solution was taken from: http://pages.cs.brandeis.edu/~cs147a/lab/hadoop-troubleshooting/. Basically it consists in restarting from scratch, so make sure you won’t loose data by formating the hdfs.

What is spark.driver.maxResultSize?

assuming that a worker wants to send 4G of data to the driver, then having spark.driver.maxResultSize=1G, will cause the worker to send 4 messages (instead of 1 with unlimited spark.driver.maxResultSize). No. If estimated size of the data is larger than maxResultSize given job will be aborted. The goal here is to protect your application from … Read more