Created 06-10-2016 05:23 AM
How to access hdfs in the system? I understand we use hadoop commands for that but what if I actually want to see what directories it is physically stored in?
Created 06-10-2016 05:23 AM
take a look at your hdfs-defaults.xml and look at the directory setting for dfs.data.dir. this is where you hdfs files are stored. You can also view this setting on ambari under hdfs tab under configuration.
Created 06-10-2016 05:23 AM
take a look at your hdfs-defaults.xml and look at the directory setting for dfs.data.dir. this is where you hdfs files are stored. You can also view this setting on ambari under hdfs tab under configuration.
Created 06-10-2016 05:26 AM
@sameer lail I do want to inform you that hdfs is not a posix file system. data is stored in blocks and then split onto the data nodes. The name node has information about all the files, all the data blocks which make up the file. So when you use hadoop fs to do file level actions.
Created 06-10-2016 05:36 AM
Go to Ambari-> HDFS and search for dfs.datanode.data.dir
then go to your Linux server and navigate to respective directories to see the data.
Ex:
[root@adcp DATA]# pwd
/DATA
[root@adcpDATA]#ls -lrt
drwxr-xr-x. 3 root root 4096 Dec 15 2014 sdd1
drwxr-xr-x. 3 root root 4096 Dec 15 2014 sdc1
drwxr-xr-x. 3 root root 4096 Dec 15 2014 sdf1
drwxr-xr-x. 3 root root 4096 Dec 15 2014 sde1
drwxr-xr-x. 3 root root 4096 Dec 15 2014 sdg1