- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.useHttps()
方法的一些代码示例,展示了YarnConfiguration.useHttps()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YarnConfiguration.useHttps()
方法的具体详情如下:
包路径:org.apache.hadoop.yarn.conf.YarnConfiguration
类名称:YarnConfiguration
方法名:useHttps
暂无
代码示例来源:origin: apache/kylin
if (YarnConfiguration.useHttps(conf)) {
webappConfKey = YarnConfiguration.RM_WEBAPP_HTTPS_ADDRESS;
defaultAddr = YarnConfiguration.DEFAULT_RM_WEBAPP_HTTPS_ADDRESS;
rmWebHost = (YarnConfiguration.useHttps(conf) ? "https://" : "http://") + rmWebHost;
代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common
/**
* Choose which scheme (HTTP or HTTPS) to use when generating a URL based on
* the configuration.
*
* @return the scheme (HTTP / HTTPS)
*/
public static String getHttpSchemePrefix(Configuration conf) {
return YarnConfiguration.useHttps(conf) ? HTTPS_PREFIX : HTTP_PREFIX;
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common
/**
* Choose which scheme (HTTP or HTTPS) to use when generating a URL based on
* the configuration.
*
* @return the scheme (HTTP / HTTPS)
*/
public static String getHttpSchemePrefix(Configuration conf) {
return YarnConfiguration.useHttps(conf) ? HTTPS_PREFIX : HTTP_PREFIX;
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common
public static String getAHSWebAppURLWithoutScheme(Configuration conf) {
if (YarnConfiguration.useHttps(conf)) {
return conf.get(YarnConfiguration.TIMELINE_SERVICE_WEBAPP_HTTPS_ADDRESS,
YarnConfiguration.DEFAULT_TIMELINE_SERVICE_WEBAPP_HTTPS_ADDRESS);
} else {
return conf.get(YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS,
YarnConfiguration.DEFAULT_TIMELINE_SERVICE_WEBAPP_ADDRESS);
}
}
代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common
public static void setNMWebAppHostNameAndPort(Configuration conf,
String hostName, int port) {
if (YarnConfiguration.useHttps(conf)) {
conf.set(YarnConfiguration.NM_WEBAPP_HTTPS_ADDRESS,
hostName + ":" + port);
} else {
conf.set(YarnConfiguration.NM_WEBAPP_ADDRESS,
hostName + ":" + port);
}
}
代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-common
public static void setNMWebAppHostNameAndPort(Configuration conf,
String hostName, int port) {
if (YarnConfiguration.useHttps(conf)) {
conf.set(YarnConfiguration.NM_WEBAPP_HTTPS_ADDRESS,
hostName + ":" + port);
} else {
conf.set(YarnConfiguration.NM_WEBAPP_ADDRESS,
hostName + ":" + port);
}
}
代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common
public static String getRMWebAppURLWithoutScheme(Configuration conf) {
if (YarnConfiguration.useHttps(conf)) {
return conf.get(YarnConfiguration.RM_WEBAPP_HTTPS_ADDRESS,
YarnConfiguration.DEFAULT_RM_WEBAPP_HTTPS_ADDRESS);
}else {
return conf.get(YarnConfiguration.RM_WEBAPP_ADDRESS,
YarnConfiguration.DEFAULT_RM_WEBAPP_ADDRESS);
}
}
代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-common
public static void setRMWebAppHostnameAndPort(Configuration conf,
String hostname, int port) {
String resolvedAddress = hostname + ":" + port;
if (YarnConfiguration.useHttps(conf)) {
conf.set(YarnConfiguration.RM_WEBAPP_HTTPS_ADDRESS, resolvedAddress);
} else {
conf.set(YarnConfiguration.RM_WEBAPP_ADDRESS, resolvedAddress);
}
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common
public static void setNMWebAppHostNameAndPort(Configuration conf,
String hostName, int port) {
if (YarnConfiguration.useHttps(conf)) {
conf.set(YarnConfiguration.NM_WEBAPP_HTTPS_ADDRESS,
hostName + ":" + port);
} else {
conf.set(YarnConfiguration.NM_WEBAPP_ADDRESS,
hostName + ":" + port);
}
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common
public static void setRMWebAppHostnameAndPort(Configuration conf,
String hostname, int port) {
String resolvedAddress = hostname + ":" + port;
if (YarnConfiguration.useHttps(conf)) {
conf.set(YarnConfiguration.RM_WEBAPP_HTTPS_ADDRESS, resolvedAddress);
} else {
conf.set(YarnConfiguration.RM_WEBAPP_ADDRESS, resolvedAddress);
}
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common
public static String getNMWebAppURLWithoutScheme(Configuration conf) {
if (YarnConfiguration.useHttps(conf)) {
return conf.get(YarnConfiguration.NM_WEBAPP_HTTPS_ADDRESS,
YarnConfiguration.DEFAULT_NM_WEBAPP_HTTPS_ADDRESS);
} else {
return conf.get(YarnConfiguration.NM_WEBAPP_ADDRESS,
YarnConfiguration.DEFAULT_NM_WEBAPP_ADDRESS);
}
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common
public static URI constructResURI(Configuration conf, String address,
String uri) {
return URI.create(
JOINER.join(YarnConfiguration.useHttps(conf) ? "https://" : "http://",
address, uri));
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common
public static String getRouterWebAppURLWithoutScheme(Configuration conf) {
if (YarnConfiguration.useHttps(conf)) {
return conf.get(YarnConfiguration.ROUTER_WEBAPP_HTTPS_ADDRESS,
YarnConfiguration.DEFAULT_ROUTER_WEBAPP_HTTPS_ADDRESS);
} else {
return conf.get(YarnConfiguration.ROUTER_WEBAPP_ADDRESS,
YarnConfiguration.DEFAULT_ROUTER_WEBAPP_ADDRESS);
}
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-server-web-proxy
private String getUrlByRmId(Configuration conf, String rmId) {
String addressPropertyPrefix = YarnConfiguration.useHttps(conf) ?
YarnConfiguration.RM_WEBAPP_HTTPS_ADDRESS :
YarnConfiguration.RM_WEBAPP_ADDRESS;
String host = conf.get(HAUtil.addSuffix(addressPropertyPrefix, rmId));
return host;
}
代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-api
@Private
public static List<String> getServiceAddressConfKeys(Configuration conf) {
return useHttps(conf) ? RM_SERVICES_ADDRESS_CONF_KEYS_HTTPS
: RM_SERVICES_ADDRESS_CONF_KEYS_HTTP;
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-api
@Private
public static List<String> getServiceAddressConfKeys(Configuration conf) {
return useHttps(conf) ? RM_SERVICES_ADDRESS_CONF_KEYS_HTTPS
: RM_SERVICES_ADDRESS_CONF_KEYS_HTTP;
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common
public static String getResolvedRemoteRMWebAppURLWithoutScheme(
Configuration conf) {
return getResolvedRemoteRMWebAppURLWithoutScheme(conf,
YarnConfiguration.useHttps(conf) ? Policy.HTTPS_ONLY : Policy.HTTP_ONLY);
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common
public static String getResolvedRMWebAppURLWithoutScheme(Configuration conf) {
return getResolvedRMWebAppURLWithoutScheme(conf,
YarnConfiguration.useHttps(conf) ? Policy.HTTPS_ONLY : Policy.HTTP_ONLY);
}
代码示例来源:origin: io.hops/hadoop-yarn-api
@Private
public static List<String> getServiceAddressConfKeys(Configuration conf) {
return useHttps(conf) ? RM_SERVICES_ADDRESS_CONF_KEYS_HTTPS
: RM_SERVICES_ADDRESS_CONF_KEYS_HTTP;
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-client
@VisibleForTesting
public URL getHAClusterUrl(Configuration conf, String rmhid)
throws MalformedURLException {
return new URL(WebAppUtils.getHttpSchemePrefix(conf)
+ WebAppUtils.getResolvedRemoteRMWebAppURLWithoutScheme(conf,
YarnConfiguration.useHttps(conf) ? Policy.HTTPS_ONLY
: Policy.HTTP_ONLY,
rmhid)
+ CLUSTER_INFO_URL);
}
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.areNodeLabelsEnabled()方法的一些代码示例,展示了YarnConfi
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.isCentralizedNodeLabelConfiguration()方法的一些代码
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.getClusterId()方法的一些代码示例,展示了YarnConfiguration
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.unset()方法的一些代码示例,展示了YarnConfiguration.unset(
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.getStringCollection()方法的一些代码示例,展示了YarnConfig
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.shouldRMFailFast()方法的一些代码示例,展示了YarnConfigura
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.updateConnectAddr()方法的一些代码示例,展示了YarnConfigur
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.getTimelineServiceVersion()方法的一些代码示例,展示了Yarn
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.timelineServiceEnabled()方法的一些代码示例,展示了YarnCon
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.getInstances()方法的一些代码示例,展示了YarnConfiguration
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.getBoolean()方法的一些代码示例,展示了YarnConfiguration.g
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.getLong()方法的一些代码示例,展示了YarnConfiguration.getL
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.setInt()方法的一些代码示例,展示了YarnConfiguration.setIn
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.getStrings()方法的一些代码示例,展示了YarnConfiguration.g
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.addResource()方法的一些代码示例,展示了YarnConfiguration.
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.getInt()方法的一些代码示例,展示了YarnConfiguration.getIn
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.getServiceAddressConfKeys()方法的一些代码示例,展示了Yarn
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.writeXml()方法的一些代码示例,展示了YarnConfiguration.wri
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.timelineServiceV1Enabled()方法的一些代码示例,展示了YarnC
本文整理了Java中org.apache.hadoop.yarn.conf.YarnConfiguration.reloadConfiguration()方法的一些代码示例,展示了YarnConfig
我是一名优秀的程序员,十分优秀!