2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2020

03/27/2013: Running Accumulo Unit Tests On Windows

Accumulo is not designed to run under Windows. Nor are its unit tests. However, if you persist in this foolishness, add the following elements to the indicated pom.xml files.
core/pom.xml

    <profile>
        <id>skipped_tests_on_windows</id>
        <activation>
            <activeByDefault>false</activeByDefault>
            <os>
                <family>Windows</family>
            </os>
            </activation>
        <build>
        <plugins>
            <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>**/AccumuloFileOutputFormatTest.java</exclude>
                        <exclude>**/AccumuloFileInputFormatTest.java</exclude>
                        <exclude>**/AccumuloOutputFormatTest.java</exclude>
                        <exclude>**/AccumuloRowInputFormatTest.java</exclude>
                        <exclude>**/AccumuloInputFormatTest.java</exclude>
                        <exclude>**/MockTableOperationsTest.java</exclude>
                        <exclude>**/AggregatingIteratorTest.java</exclude>
                        <exclude>**/IterUtilTest.java</exclude>
                        <exclude>**/CombinerTest.java</exclude>
                        <exclude>**/FormatterCommandTest.java</exclude>
                        </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>

examples/simple/pom.xml

    <profile>
        <id>skipped_tests_on_windows</id>
        <activation>
            <activeByDefault>false</activeByDefault>
            <os>
                <family>Windows</family>
            </os>
            </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <excludes>
                            <exclude>**/ChunkInputFormatTest.java</exclude>
                            </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>

proxy/pom.xml

    <profile>
        <id>skipped_tests_on_windows</id>
        <activation>
            <activeByDefault>false</activeByDefault>
            <os>
                <family>Windows</family>
            </os>
            </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <excludes>
                            <exclude>**/SimpleTest.java</exclude>
                            <exclude>**/TestProxyInstanceOperations.java</exclude>
                        </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>
  </profiles>

server/pom.xml

    <profile>
        <id>skipped_tests_on_windows</id>
        <activation>
            <activeByDefault>false</activeByDefault>
            <os>
                <family>Windows</family>
            </os>
            </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <excludes>
                            <exclude>**/TableLoadBalancerTest.java</exclude>
                            </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>

start/pom.xml

    <profile>
        <id>skipped_tests_on_windows</id>
        <activation>
            <activeByDefault>false</activeByDefault>
            <os>
                <family>Windows</family>
            </os>
            </activation>
        <build>
        <plugins>
            <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>**/AccumuloVFSClassLoaderTest.java</exclude>
                        <exclude>**/ReadOnlyHdfsFileProviderTest.java</exclude>
                        <exclude>**/VfsClassLoaderTest.java</exclude>
                        </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>

test/pom.xml

    <profile>
        <id>skipped_tests_on_windows</id>
        <activation>
            <activeByDefault>false</activeByDefault>
            <os>
                <family>Windows</family>
            </os>
            </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <excludes>
                            <exclude>**/MiniAccumuloClusterTest.java</exclude>
                            <exclude>**/ShellServerTest.java</exclude>
                        </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>

12/29/2012: How To Stop Accumulo Debug Messages From Being Logged

Comment out references to A2 in conf/generic_logger.xml and conf/monitor_logger.xml. Then stop all Accumulo processes. Delete logs/*. Restart Accumulo. Done.