It did not make any difference. I noticed that the settings under the default folder always get re-written to the default values while running the code.
I've attached the hama-env.sh file as well. Ashish On Thu, May 5, 2011 at 2:02 AM, ChiaHung Lin <[email protected]> wrote: > It looks like the unit test is going to test with real cluster setting as > specified with hama-site.xml. > > Can you remove custom setting under conf folder (or use the default value) > and re-execute the ant > command? It looks like the build process is unit tested with real cluster > setting which I think maybe the cause of this issue. > > -----Original message----- > From:Ashish Agarwal<[email protected]> > To:hama-dev<[email protected]> > Date: Thu, 5 May 2011 00:56:58 -0600 > Subject: Re: Unit tests Failing > > Hi, > > I had a look in the /build/report/tests folder and there are only three > tests that failed - > > org.apache.hama.bsp.TestBSPPeer > org.apache.hama.bsp.TestSerializePrinting > org.apache.hama.bsp.TestBSPMasterGroomServer > > Each of them shows a timeout error and looks something like this - > > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > > Testcase: testSubmitJob took 0.008 sec > Caused an ERROR > Timeout occurred. Please note the time in the report does not reflect the > time until the timeout. > junit.framework.AssertionFailedError: Timeout occurred. Please note the > time in the report does not reflect the time until the timeout. > > > I tried running the command bin/start-bspd.sh and it shows the following > output - > > mydomain.com: ssh: connect to host mydomain.com port 22: Connection timed > out > starting bspmaster, logging to > /home/hadoop/had/hadoop/hama-trunk/bin/../logs/hama-hadoop-bspmaster-ubuntu.out > localhost: starting groom, logging to > /home/hadoop/had/hadoop/hama-trunk/bin/../logs/hama-hadoop-groom-ubuntu.out > > It looks like there is something wrong with the hama-site.xml file or with > the ssh configuration but I don't know what. I have attached a copy of the > file. > > Thank you, > > Kind regards > Ashish > > > 2011/5/4 Edward J. Yoon <[email protected]> > Fyi, you also need to shutdown bsp daemons. > > Sent from my iPhone > > On 2011. 5. 4., at 오전 11:29, "ChiaHung Lin" <[email protected]> wrote: > > > I build with trunk and the process works well. Which version are you > using? > > > > [exec] BUILD SUCCESSFUL > > [exec] Total time: 8 seconds > > [copy] Copying 81 files to /home/user/hama-trunk/build/docs/site > > [copy] Copied 9 empty directories to 3 empty directories under > /home/user/hama-trunk/build/docs/site > > [delete] Deleting directory /home/user/hama-trunk/src/docs/build > > > > BUILD SUCCESSFUL > > Total time: 1 minute 37 seconds > > > > The command used is `ant clean test docs -Dforrest.home=$FORREST_HOME` > > > > `ant clean test docs -Dforrest.home={$FORREST_HOME}` will throw error > because ant can not recognize the variable `{$FORREST_HOME}' > > > > The error may be > > > > Execute failed: java.io.IOException: Cannot run program > "{/home/user/apache-forrest-0.9/}/bin/forrest" (in directory > "/home/user/hama-trunk/src/docs"): java.io.IOException: error=2, No such > file or directory > > > > > > From the error message shown in the mail, it looks like the test case > TestSerializePrinting does not get passed. Have you checked the output > located under $HAMA_HOME/build/reports/tests/? It might provide more > information on what goes wrong. > > > > > > -----Original message----- > > From:Ashish Agarwal <[email protected]> > > To:[email protected] > > Date:Tue, 3 May 2011 04:33:42 -0600 > > Subject:Unit tests Failing > > > > Hi, > > > > I am trying to run the Unit tests using the command > > > > ant clean test docs -Dforrest.home={$FORREST_HOME} > > > > and the build is failing. The output is - > > > > Buildfile: /home/hadoop/had/hadoop/hama-trunk/build.xml > > > > clean: > > > > pre-init: > > [mkdir] Created dir: /home/hadoop/had/hadoop/hama-trunk/build > > [mkdir] Created dir: /home/hadoop/had/hadoop/hama-trunk/build/classes > > [mkdir] Created dir: /home/hadoop/had/hadoop/hama-trunk/build/test > > [mkdir] Created dir: /home/hadoop/had/hadoop/hama-trunk/build/examples > > [mkdir] Created dir: > > /home/hadoop/had/hadoop/hama-trunk/build/reports/tests > > [mkdir] Created dir: /home/hadoop/had/hadoop/hama-trunk/build/lib > > [copy] Copying 15 files to > /home/hadoop/had/hadoop/hama-trunk/build/lib > > [touch] Creating /tmp/null1070640997 > > [delete] Deleting: /tmp/null1070640997 > > > > eval.reset.conf: > > > > pre-init-reset-conf: > > [copy] Copying 3 files to /home/hadoop/had/hadoop/hama-trunk/conf > > [copy] Copying > > /home/hadoop/had/hadoop/hama-trunk/conf/groomservers.template to > > /home/hadoop/had/hadoop/hama-trunk/conf/groomservers > > [copy] Copying > > /home/hadoop/had/hadoop/hama-trunk/conf/hama-site.xml.template to > > /home/hadoop/had/hadoop/hama-trunk/conf/hama-site.xml > > [copy] Copying > > /home/hadoop/had/hadoop/hama-trunk/conf/hama-env.sh.template to > > /home/hadoop/had/hadoop/hama-trunk/conf/hama-env.sh > > > > init: > > > > compile: > > [mkdir] Created dir: /home/hadoop/had/hadoop/hama-trunk/build/src > > [javac] Compiling 77 source files to > > /home/hadoop/had/hadoop/hama-trunk/build/classes > > > > compile-test: > > [javac] Compiling 15 source files to > > /home/hadoop/had/hadoop/hama-trunk/build/test > > [jar] Building jar: > > /home/hadoop/had/hadoop/hama-trunk/build/hama-0.3.0-test.jar > > > > test: > > [junit] Running org.apache.hama.bsp.TestBSPMasterGroomServer > > [junit] Running org.apache.hama.bsp.TestBSPMasterGroomServer > > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > > [junit] Test org.apache.hama.bsp.TestBSPMasterGroomServer FAILED > > (timeout) > > [junit] Running org.apache.hama.bsp.TestBSPMessageBundle > > [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.033 sec > > [junit] Running org.apache.hama.bsp.TestBSPPeer > > [junit] Running org.apache.hama.bsp.TestBSPPeer > > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > > [junit] Test org.apache.hama.bsp.TestBSPPeer FAILED (timeout) > > [junit] Running org.apache.hama.bsp.TestClusterStatus > > [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.205 sec > > [junit] Running org.apache.hama.bsp.TestSerializePrinting > > [junit] Running org.apache.hama.bsp.TestSerializePrinting > > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > > [junit] Test org.apache.hama.bsp.TestSerializePrinting FAILED > (timeout) > > [junit] Running org.apache.hama.ipc.TestIPC > > [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 12.127 sec > > [junit] Running org.apache.hama.ipc.TestRPC > > [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.663 sec > > [junit] Running org.apache.hama.util.TestBytes > > [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.145 sec > > [junit] Running org.apache.hama.util.TestNumeric > > [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.121 sec > > [junit] Running org.apache.hama.util.TestRandomVariable > > [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.009 sec > > > > BUILD FAILED > > /home/hadoop/had/hadoop/hama-trunk/build.xml:329: Tests failed! > > > > Total time: 30 minutes 24 seconds > > > > > > Kind Regards, > > Ashish > > > > > > -- > > ChiaHung Lin > > Department of Information Management > > National University of Kaohsiung > > Taiwan > > > > -- > ChiaHung Lin > Department of Information Management > National University of Kaohsiung > Taiwan >
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- /** * Copyright 2007 The Apache Software Foundation * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ --> <configuration> <property> <name>bsp.master.address</name> <value>mydomain.com:40000</value> <description>The address of the bsp master server. Either the literal string "local" or a host:port for distributed mode </description> </property> <property> <name>fs.default.name</name> <value>hdfs://mydomain.com:9000/</value> <description> The name of the default file system. Either the literal string "local" or a host:port for HDFS. </description> </property> <property> <name>hama.zookeeper.quorum</name> <value>mydomain.com</value> <description>Comma separated list of servers in the ZooKeeper Quorum. For example, "host1.mydomain.com,host2.mydomain.com,host3.mydomain.com". By default this is set to localhost for local and pseudo-distributed modes of operation. For a fully-distributed setup, this should be set to a full list of ZooKeeper quorum servers. If HAMA_MANAGES_ZK is set in hama-env.sh this is the list of servers which we will start/stop zookeeper on. </description> </property> </configuration>
hama-env.sh
Description: Bourne shell script
