hdfs-deprecated icon indicating copy to clipboard operation
hdfs-deprecated copied to clipboard

Detect the presence of the archive

Open MiLk opened this issue 10 years ago • 2 comments

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?

MiLk avatar Feb 20 '15 03:02 MiLk

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.

elingg avatar Feb 20 '15 18:02 elingg

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.

adam-mesos avatar Feb 25 '15 07:02 adam-mesos