fluo icon indicating copy to clipboard operation
fluo copied to clipboard

Discuss get jars behavior

Open keith-turner opened this issue 8 years ago • 2 comments

For get jars command add in #907 the command expects the target directory to exist but does not care if the directory is non-empty. I found myself wondering if the behavior should change or if the docs should be improved to clearly state the behavior for a non-empty dir while looking at the PR. I was not sure. Below are some thoughts I had.

  • Should the get jars command create the dir?
  • If the directory is not empty should the get jars command fail? Their are two use cases to consider.
    • A user intentionally adds jars to a dir before calling get jars and does not expect it to empty.
    • A user unintentionally reuses a dir and expects the dir to be empty when its not and ends ups extra/unexpected jars in the dir.

keith-turner avatar Aug 11 '17 15:08 keith-turner

Could classes be loaded from HDFS directly using Accumulo's VFS classloader?

See: https://blogs.apache.org/accumulo/entry/the_accumulo_classloader

ghost avatar Jul 29 '18 04:07 ghost

Could classes be loaded from HDFS directly using Accumulo's VFS classloader?

Yes. One possible way to do this would be to run fluo config -a <app> and grep for the property fluo.observer.jars.url. Its also possible to obtain this property via the Java API using FluoAdmin.getApplicationConfig(). Then the VFS classloader could be configured to use this.

Fluo is not currently using the VFS classloader for itself though. Currently its not doing anything with classloaders and relying on the launch scripts to setup its classpath.

keith-turner avatar Jul 30 '18 13:07 keith-turner