mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
[ZEPPELIN-2152] Fixed format issues
This commit is contained in:
parent
f55e6e2632
commit
5e29cca41b
2 changed files with 6 additions and 4 deletions
|
|
@ -164,7 +164,7 @@ public class HeliumBundleFactory {
|
|||
System.getenv("HTTPS_PROXY") : System.getenv("https_proxy");
|
||||
|
||||
try {
|
||||
if(isSecure)
|
||||
if (isSecure)
|
||||
proxies.add(generateProxy("secure", new URI(httpsProxy)));
|
||||
else proxies.add(generateProxy("insecure", new URI(httpProxy)));
|
||||
} catch (Exception ex) {
|
||||
|
|
@ -662,7 +662,8 @@ public class HeliumBundleFactory {
|
|||
}
|
||||
|
||||
private void npmCommand(String args, Map<String, String> env) throws TaskRunnerException {
|
||||
NpmRunner npm = frontEndPluginFactory.getNpmRunner(getProxyConfig(isSecure(defaultNpmRegistryUrl)), defaultNpmRegistryUrl);
|
||||
NpmRunner npm = frontEndPluginFactory.getNpmRunner(
|
||||
getProxyConfig(isSecure(defaultNpmRegistryUrl)), defaultNpmRegistryUrl);
|
||||
npm.execute(args, env);
|
||||
}
|
||||
|
||||
|
|
@ -676,7 +677,8 @@ public class HeliumBundleFactory {
|
|||
|
||||
private void yarnCommand(FrontendPluginFactory fpf,
|
||||
String args, Map<String, String> env) throws TaskRunnerException {
|
||||
YarnRunner yarn = fpf.getYarnRunner(getProxyConfig(isSecure(defaultNpmRegistryUrl)), defaultNpmRegistryUrl);
|
||||
YarnRunner yarn = fpf.getYarnRunner(
|
||||
getProxyConfig(isSecure(defaultNpmRegistryUrl)), defaultNpmRegistryUrl);
|
||||
yarn.execute(args, env);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ public class HeliumOnlineRegistry extends HeliumRegistry {
|
|||
|
||||
try {
|
||||
String scheme = new URI(uri).getScheme();
|
||||
if(scheme.toLowerCase().startsWith("https")) {
|
||||
if (scheme.toLowerCase().startsWith("https")) {
|
||||
URI httpsProxyUri = new URI(httpsProxy);
|
||||
return new HttpHost(httpsProxyUri.getHost(),
|
||||
httpsProxyUri.getPort(), httpsProxyUri.getScheme());
|
||||
|
|
|
|||
Loading…
Reference in a new issue