Updated Branches: refs/heads/master cde28869b -> 27664e1ce
Fixed for linux (ubuntu), hopefully this will work on other distros. Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/27664e1c Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/27664e1c Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/27664e1c Branch: refs/heads/master Commit: 27664e1ceb7f8142295cfca246701e0fd518bd1d Parents: cde2886 Author: Aaron McCurry <[email protected]> Authored: Sat Sep 21 21:31:46 2013 -0400 Committer: Aaron McCurry <[email protected]> Committed: Sat Sep 21 21:31:46 2013 -0400 ---------------------------------------------------------------------- .../src/test/java/org/apache/blur/MiniCluster.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/27664e1c/blur-core/src/test/java/org/apache/blur/MiniCluster.java ---------------------------------------------------------------------- diff --git a/blur-core/src/test/java/org/apache/blur/MiniCluster.java b/blur-core/src/test/java/org/apache/blur/MiniCluster.java index 2f34119..c97bcaa 100644 --- a/blur-core/src/test/java/org/apache/blur/MiniCluster.java +++ b/blur-core/src/test/java/org/apache/blur/MiniCluster.java @@ -480,6 +480,22 @@ public class MiniCluster { } public void startDfs(Configuration conf, boolean format, String path) { + Properties properties = System.getProperties(); + +// Set<Object> keySet = properties.keySet(); +// for (Object k : keySet) { +// String key = k.toString(); +// if (key.contains("os")) { +// String value = properties.getProperty(key); +// System.out.println("Key [" + key + "] Value [" + value + "]"); +// } +// } + + String osName = properties.getProperty("os.name").toLowerCase(); +// System.out.println("os.name=" + osName); + if (osName.contains("linux")) { + conf.set("dfs.datanode.data.dir.perm", "775"); + } System.setProperty("test.build.data", path); try { cluster = new MiniDFSCluster(conf, 1, true, (String[]) null);
