hdfs-deprecated
hdfs-deprecated copied to clipboard
Detect the presence of the archive
After #64, if the archive containing the HDFS Binary is not on the server, http://127.0.0.1:8765/hdfs-mesos-0.0.2.tgz
will return the hdfs-site.xml
file.
Is there a way to check the existence of the file and send an error code, or do something at the start up of the framework?
If the path to the archive is set correctly then the binary should be successfully hosted on the server. I find that error checks are always helpful. An additional error check in case of user or other error would be nice.
Definitely doable. We're currently chaining the ServeHdfsConfigHandler (edits the cfg) after the executor's ResourceHandler, but we could easily have the Config handler default to 404 if it's not a valid config-file URI.