I'm facing an issue loading repositories from the settings file.
Zeppelin uses gson to load the saved repositories, and as RemoteRepository
doesn't have a setter for protocol, it instantiates a RemoteRepository with
null protocol (not going through the Builder which resolves the protocol
from the url), resulting in not being able to fetch dependencies.

For now, my workaround is to patch InterpreterSettingManager, by cloning
the RemoteRepository and forcing it going through the Builder to resolve
protocol (see below).
Wonder if there's a patchless solution. couldn't find an open issue. With
zeppelin 0.8.2 this doesn't happen...

Lior

for (RemoteRepository repo : infoSaving.interpreterRepositories) {
  if (!dependencyResolver.getRepos().contains(repo)) {
    RemoteRepository clonedRepo = new
RemoteRepository.Builder(repo.getId(), repo.getContentType(),
repo.getUrl()).build();
    this.interpreterRepositories.add(clonedRepo);
  }
}

Reply via email to