Error while importing hive sql using the Import external metadata

Hi,

I am trying to import a hive sql file using the import->external metadata option but the physical model does not get created.

It fails with a warning ->"Couldn't recognize the CREATE ....sql"

When i try it again i get different errors "/users/documents/xyz.pdm is not writable"

Please advise.

Thanks,

Raj