You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by zs...@apache.org on 2008/08/28 01:33:43 UTC

svn commit: r689666 - in /hadoop/core/trunk: CHANGES.txt src/contrib/fuse-dfs/build.xml

Author: zshao
Date: Wed Aug 27 16:33:42 2008
New Revision: 689666

URL: http://svn.apache.org/viewvc?rev=689666&view=rev
Log:
HADOOP-3908. Better error message if llibhdfs.so doesn't exist. Contributed by Pete Wyckoff.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/contrib/fuse-dfs/build.xml

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=689666&r1=689665&r2=689666&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Wed Aug 27 16:33:42 2008
@@ -106,6 +106,9 @@
 
   IMPROVEMENTS
 
+    HADOOP-3908. Fuse-dfs: better error message if llibhdfs.so doesn't exist.
+    (Pete Wyckoff through zshao)
+
     HADOOP-3732. Delay intialization of datanode block verification till
     the verification thread is started. (rangadi)
 

Modified: hadoop/core/trunk/src/contrib/fuse-dfs/build.xml
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/fuse-dfs/build.xml?rev=689666&r1=689665&r2=689666&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/fuse-dfs/build.xml (original)
+++ hadoop/core/trunk/src/contrib/fuse-dfs/build.xml Wed Aug 27 16:33:42 2008
@@ -30,8 +30,19 @@
     </condition>
   </target>
 
+
+  <target name="check-libhdfs-exists" if="fusedfs">
+  <property name="libhdfs.lib" value="${hadoop.root}/build/libhdfs/libhdfs.so"/>
+        <available file="${libhdfs.lib}" property="libhdfs-exists"/>
+    <fail message="libhdfs.so does not exist: ${libhdfs.lib}. Please check flags -Dlibhdfs=1 -Dfusedfs=1 are set or first try ant compile-libhdfs -Dlibhdfs=1">
+         <condition>
+            <not><isset property="libhdfs-exists"/></not>
+          </condition>
+   </fail>
+   </target>
+
   <!-- override compile target !-->
-  <target name="compile" depends="check-libhdfs-fuse" if="libhdfs-fuse">
+  <target name="compile" depends="check-libhdfs-fuse,check-libhdfs-exists" if="libhdfs-fuse">
     <echo message="contrib: ${name}"/>
 
     <exec executable="/bin/sh" failonerror="true">