Note that there are some explanatory texts on larger screens.

plurals
  1. POOvercoming HDFS-2556: unit tests directory and permissions
    primarykey
    data
    text
    <p>I'm trying to a JUnit tests on hadoop, I wrote a test case that I run on a local mini-hadoop environment using MiniDFSCluster,MiniMRCluster and JUnit.</p> <p>however I'm getting this error:</p> <pre><code> WARNING: Metrics system not started: Cannot locate configuration: tried hadoop-metrics2-datanode.properties, hadoop-metrics2.properties Dec 18, 2012 4:42:29 PM org.apache.hadoop.hdfs.server.datanode.DataNode makeInstance WARNING: Invalid directory in dfs.data.dir: Incorrect permission for build/test/data/dfs/data/data1, expected: rwxr-xr-x, while actual: rwxrwxr-x Dec 18, 2012 4:42:29 PM org.apache.hadoop.hdfs.server.datanode.DataNode makeInstance WARNING: Invalid directory in dfs.data.dir: Incorrect permission for build/test/data/dfs/data/data2, expected: rwxr-xr-x, while actual: rwxrwxr-x Dec 18, 2012 4:42:29 PM org.apache.hadoop.hdfs.server.datanode.DataNode makeInstance SEVERE: All directories in dfs.data.dir are invalid. </code></pre> <p>This looks like the HDFS bug <a href="https://issues.apache.org/jira/browse/HDFS-2556" rel="nofollow">https://issues.apache.org/jira/browse/HDFS-2556</a> that is still pending.</p> <p>Since I can't change the hadoop version i'm using, is there a way to force hadoop to accept these permissions?</p> <p>I tried: System.setProperty("dfs.datanode.data.dir.perm", "775"); But hadoop ignores them.</p> <p>Also, I can't change the permissions manually, it seems that the mini-cluster re-creates them every run.</p> <p>Is there a way to overcome this without modifing hadoop or changing version? Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload