mikeizbicki / cmc-csci143

big data course materials
40 stars 76 forks source link

Error: directory "/var/lib/postgresql/data" exists but is not empty #542

Open agemeda opened 4 months ago

agemeda commented 4 months ago

Hello, i have been having lots of trouble with the indexes assignment and at one point decided to just start over as my errors weren't making any sense, so I assumed it was an issue with how I loaded the data over the creation of the indexes. Now I cant even get hte containers to build and am running into this error:

initdb: error: directory "/var/lib/postgresql/data" exists but is not empty

for both pg_normalized_batch and pg_denormalized.

I think while restarting the setup part of the assignment I made a mistake in deleting my data and now i'm having the issue that was referenced here. Would it be possible to have the data removed @mikeizbicki or is there another solution? Thank you.

mikeizbicki commented 4 months ago

I've deleted your data folders by running the command

$ sudo rm -rf /home/agemeda1373/bigdata/pg_denormalized /home/agemeda1373/bigdata/pg_normalized_batch
luisgomez214 commented 4 months ago

@mikeizbicki Hello, I am facing the same issue and I was wondering if the same can be done for both of my files.