List of usage examples for org.apache.hadoop.fs CommonConfigurationKeysPublic HADOOP_SOCKS_SERVER_KEY
String HADOOP_SOCKS_SERVER_KEY
To view the source code for org.apache.hadoop.fs CommonConfigurationKeysPublic HADOOP_SOCKS_SERVER_KEY.
Click Source Link
From source file:com.datatorrent.stram.cli.ApexCli.java
License:Apache License
public void init() throws IOException { conf = StramClientUtils.addDTSiteResources(new YarnConfiguration()); SecurityUtils.init(conf);//www. j av a 2 s . c o m fs = StramClientUtils.newFileSystemInstance(conf); stramAgent = new StramAgent(fs, conf); yarnClient.init(conf); yarnClient.start(); LOG.debug("Yarn Client initialized and started"); String socks = conf.get(CommonConfigurationKeysPublic.HADOOP_SOCKS_SERVER_KEY); if (socks != null) { int colon = socks.indexOf(':'); if (colon > 0) { LOG.info("Using socks proxy at {}", socks); System.setProperty("socksProxyHost", socks.substring(0, colon)); System.setProperty("socksProxyPort", socks.substring(colon + 1)); } } }
From source file:com.datatorrent.stram.cli.DTCli.java
License:Apache License
public void init() throws IOException { conf = StramClientUtils.addDTSiteResources(new YarnConfiguration()); fs = StramClientUtils.newFileSystemInstance(conf); stramAgent = new StramAgent(fs, conf); yarnClient.init(conf);/* ww w. j a va 2 s .com*/ yarnClient.start(); LOG.debug("Yarn Client initialized and started"); String socks = conf.get(CommonConfigurationKeysPublic.HADOOP_SOCKS_SERVER_KEY); if (socks != null) { int colon = socks.indexOf(':'); if (colon > 0) { LOG.info("Using socks proxy at {}", socks); System.setProperty("socksProxyHost", socks.substring(0, colon)); System.setProperty("socksProxyPort", socks.substring(colon + 1)); } } }