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 on
03-21-2017
07:52 PM
- last edited on
04-21-2026
05:24 AM
by
GrazittiAPI
Hi Everyone,Hope you are doing well. I have a virtual machine and I've added a new ext4 disk.I want to convert this to hdfs( Hadoop file system).Can anyone please provide me the information about how can i do this.
Created 03-21-2017 09:48 PM
Yes, you can use ext4 disks to store HDFS data. Once you have installed HDP, you can set the property :
dfs.datanode.data.dir in hdfs-site.xml to point to any locations you want the data to be stored.
Below post talks about the same:
https://community.hortonworks.com/questions/89786/file-uri-required-for-dfsdatanodedatadir.html
For your second question, I am not aware of any rpm which can convert existing data to HDFS. You would have to migrate the existing data to HDFS. There are many ways possible as how to migrate the data also depending upon where the data resides (on disk, in database etc). Below is one basic example of loading the data:
https://hortonworks.com/hadoop-tutorial/loading-data-into-the-hortonworks-sandbox/
Created 03-21-2017 08:00 PM
If you want entire HDP (which includes major Hadoop components like HDFS etc) stack for learning / tutorial purposes, you can download and install Hortonworks Sandbox:
https://hortonworks.com/products/sandbox/
There is another article which talks about custom install of HDP:
Created 03-21-2017 09:17 PM
Thanks Namit.So like I can use ext4 that will be used to store Hadoop files? I was thinking like if there is any option to convert existing file system to hadoop file system through a rpm or so.like we do for asm.
Created 03-21-2017 09:48 PM
Yes, you can use ext4 disks to store HDFS data. Once you have installed HDP, you can set the property :
dfs.datanode.data.dir in hdfs-site.xml to point to any locations you want the data to be stored.
Below post talks about the same:
https://community.hortonworks.com/questions/89786/file-uri-required-for-dfsdatanodedatadir.html
For your second question, I am not aware of any rpm which can convert existing data to HDFS. You would have to migrate the existing data to HDFS. There are many ways possible as how to migrate the data also depending upon where the data resides (on disk, in database etc). Below is one basic example of loading the data:
https://hortonworks.com/hadoop-tutorial/loading-data-into-the-hortonworks-sandbox/