commit e3dee310cf85052649f4846ae3952d4cd13fafd1 Author: Todd Lipcon Date: Sun Jun 20 22:38:37 2010 -0700 Warn if running with append disabled diff --git src/main/java/org/apache/hadoop/hbase/util/FSUtils.java src/main/java/org/apache/hadoop/hbase/util/FSUtils.java index 0feb1e3..5cf3481 100644 --- src/main/java/org/apache/hadoop/hbase/util/FSUtils.java +++ src/main/java/org/apache/hadoop/hbase/util/FSUtils.java @@ -601,6 +601,7 @@ public class FSUtils { public static void recoverFileLease(final FileSystem fs, final Path p, Configuration conf) throws IOException{ if (!isAppendSupported(conf)) { + LOG.warn("Running on HDFS without append enabled may result in data loss"); return; } // lease recovery not needed for local file system case. diff --git src/main/resources/hbase-webapps/master/master.jsp src/main/resources/hbase-webapps/master/master.jsp index 0ccc976..2c01d46 100644 --- src/main/resources/hbase-webapps/master/master.jsp +++ src/main/resources/hbase-webapps/master/master.jsp @@ -3,6 +3,7 @@ import="org.apache.hadoop.conf.Configuration" import="org.apache.hadoop.hbase.util.Bytes" import="org.apache.hadoop.hbase.util.JvmVersion" + import="org.apache.hadoop.hbase.util.FSUtils" import="org.apache.hadoop.hbase.master.HMaster" import="org.apache.hadoop.hbase.HConstants" import="org.apache.hadoop.hbase.master.MetaRegion" @@ -38,6 +39,7 @@

Master: <%=master.getMasterAddress().getHostname()%>:<%=master.getMasterAddress().getPort()%>

+ <% if (JvmVersion.isBadJvmVersion()) { %>
Your current JVM version <%= System.getProperty("java.version") %> is known to be @@ -46,6 +48,14 @@ for details.
<% } %> +<% if (!FSUtils.isAppendSupported(conf)) { %> +
+ You are currently running the HMaster without HDFS append support enabled. + This may result in data loss. + Please see the HBase wiki + for details. +
+<% } %>