Due to certains constraints with respect to the size of the AWS instance which is about 500GB, i am going for the complex approach of merging two different Planet OSM files.
This is the approach am following:
- Northamerica.osm.bz2 - decompress it to .osm using bzip2 -d command (bz2 size - 12 GB and decompressed .osm size is 161 GB)
- Southamerica.osm.bz2 - decompress it to .osm using bzip2 -d command (bz2 size - 2.33GB and decompressed .osm size is 31 GB)
- Merge Northamerica.osm and Southamerica.osm using osmosis command to get merged.osm (merged.osm size is 168 GB)
- Again zip merged.osm to bz2 due to the limitations in size of my AWS instance
- Them Import this merged.osm.bz2 to respective DB directories accordingly
Among the above steps, i got stuck at 4th step where i tries to zip the merged.osm to merge.osm.bz2
So many times the operation got aborted. Dont exactly know whats the issue.
Can someone help in this context?