in src/main/java/com/microsoft/azure/spark/tools/clusters/ArcadiaComputeDetail.java [79:90]
public static ArcadiaComputeDetail parseFromLivyUrl(final String url) {
Matcher matcher = LIVY_URL_WORKSPACE_IN_HOSTNAME_PATTERN.matcher(url);
if (matcher.matches() && matcher.group("workspace") != null && matcher.group("compute") != null) {
return new ArcadiaComputeDetail(
matcher.group("workspace"),
matcher.group("compute"),
url);
}
throw new IllegalArgumentException("Bad Arcadia URL: " + url);
}