Repository: accumulo
Updated Branches:
  refs/heads/master 7eaa02943 -> 5a3e4c47c


ACCUMULO-2601 test for the existence of /accumulo in hdfs


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/7a68838a
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/7a68838a
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/7a68838a

Branch: refs/heads/master
Commit: 7a68838ac5650dbc1bfe64818506875c4dacc099
Parents: 4956b15
Author: Eric C. Newton <eric.new...@gmail.com>
Authored: Tue Apr 1 13:50:07 2014 -0400
Committer: Eric C. Newton <eric.new...@gmail.com>
Committed: Tue Apr 1 13:50:28 2014 -0400

----------------------------------------------------------------------
 init/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/7a68838a/init/pom.xml
----------------------------------------------------------------------
diff --git a/init/pom.xml b/init/pom.xml
index c811fff..8ffe3f6 100644
--- a/init/pom.xml
+++ b/init/pom.xml
@@ -86,7 +86,7 @@
                     </mapping>
                   </mappings>
                   <postinstallScriptlet>
-                    <script>su hdfs -c 'hadoop fs -mkdir /accumulo &amp;&amp; 
hadoop fs -chown accumulo /accumulo'</script>
+                    <script>su hdfs -c 'hadoop fs -test -e /accumulo || hadoop 
fs -mkdir /accumulo &amp;&amp; hadoop fs -chown accumulo /accumulo'</script>
                   </postinstallScriptlet>
                 </configuration>
               </execution>

Reply via email to