hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zs...@apache.org
Subject svn commit: r689666 - in /hadoop/core/trunk: CHANGES.txt src/contrib/fuse-dfs/build.xml
Date Wed, 27 Aug 2008 23:33:43 GMT
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">



Mime
View raw message