Browse Source

HADOOP-3559. Fix the libhdfs test script and config to work with the current
semantics. Contributed by lohit vijayarenu.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@670785 13f79535-47bb-0310-9956-ffa450edef68

Christopher Douglas 17 years ago
parent
commit
269cd4cc8b

+ 3 - 0
CHANGES.txt

@@ -655,6 +655,9 @@ Release 0.18.0 - Unreleased
     HADOOP-3615. Set DatanodeProtocol.versionID to the correct value.
     (Tsz Wo (Nicholas), SZE via cdouglas)
 
+    HADOOP-3559. Fix the libhdfs test script and config to work with the
+    current semantics. (lohit vijayarenu via cdouglas)
+
 Release 0.17.1 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 1 - 1
src/c++/libhdfs/tests/conf/hadoop-site.xml

@@ -9,7 +9,7 @@
 
 <property>
   <name>hadoop.tmp.dir</name>
-  <value>../../../build/test/libhdfs</value>
+  <value>build/test/libhdfs</value>
   <description>A base for other temporary directories.</description>
 </property>
 

+ 1 - 0
src/c++/libhdfs/tests/test-libhdfs.sh

@@ -68,6 +68,7 @@ unset IFS
 
 # Put delays to ensure hdfs is up and running and also shuts down 
 # after the tests are complete
+cd $HADOOP_HOME
 echo Y | $HADOOP_BIN_DIR/hadoop namenode -format &&
 $HADOOP_BIN_DIR/hadoop-daemon.sh start namenode && sleep 2 && 
 $HADOOP_BIN_DIR/hadoop-daemon.sh start datanode && sleep 2 &&