Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 01-19-2017 12:52 AM
hi , I have
<property> <name>dfs.datanode.data.dir</name> <value>/hadoop/hdfs/data</value><final>true</final></property
When i cd to /hadoop/hdfs/data , i see below files
[hdfs@xxxxxxxxxx]$ pwd
/hadoop/hdfs/data
[hdfs@xxxxxxxxxxx]$ ls -ltr
total 8
-rw-r--r-- 1 hdfs hadoop 43 Jan 19 00:01 in_use.lock
drwxr-xr-x 5 hdfs hadoop 4096 Jan 19 00:01 current
My understand , was dfs.datanode.data.dir , should hold a series of disks values like ‘/u01/hadoop/data, /u02/hadoop/data’ …. where hdfs will store the data. In that case where will be current directory of datanode reside , which holds the VERSION file.
Created 01-19-2017 03:57 AM
All the HDFS meta directories explained here, http://hortonworks.com/blog/hdfs-metadata-directories-explained/ hope this helps.
Created 01-19-2017 03:57 AM
All the HDFS meta directories explained here, http://hortonworks.com/blog/hdfs-metadata-directories-explained/ hope this helps.
Created 01-19-2017 05:37 AM
dfs.datanode.data.dir can be any directory which is available on the datanode. It can be a directory where disk partitions are mounted like '/u01/hadoop/data, /u02/hadoop/data' which is in case if you have multiple disks partitions to be used for hdfs purpose.
Created 01-19-2017 10:54 AM
@Jacqualin jasmin, you name any directory on your datanodes as the data directory. Make sure of the permissions and the value of the dfs.datanode.data.dir parameter in HDFS configurations.
e.g. /dev/vdb 1.5T 70M 1.4T 1% /volumes/disk1
dfs.datanode.data.dir=/volumes/disk1/hadoop/data/
after that you will find the VERSION file into the data directory once your HDFS detects the data directory.