Java Code Examples for org.apache.tez.runtime.library.common.ConfigUtils#extractConfigurationMap()

The following examples show how to use org.apache.tez.runtime.library.common.ConfigUtils#extractConfigurationMap() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OnFileUnorderedPartitionedKVOutputConfiguration.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
@Override
public Builder setAdditionalConfiguration(Map<String, String> confMap) {
  Preconditions.checkNotNull(confMap, "ConfMap cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(confMap,
      Lists.newArrayList(OnFileUnorderedPartitionedKVOutput.getConfigurationKeySet(),
          TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 2
Source File: OrderedGroupedKVInputConfig.java    From tez with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
@Override
public Builder setAdditionalConfiguration(Map<String, String> confMap) {
  Objects.requireNonNull(confMap, "ConfMap cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(confMap,
      Lists.newArrayList(OrderedGroupedKVInput.getConfigurationKeySet(),
          TezRuntimeConfiguration.getRuntimeAdditionalConfigKeySet()), TezRuntimeConfiguration.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 3
Source File: UnorderedKVInputConfig.java    From tez with Apache License 2.0 5 votes vote down vote up
@InterfaceAudience.Private
Builder() {
  Map<String, String> tezDefaults = ConfigUtils
      .extractConfigurationMap(TezRuntimeConfiguration.getTezRuntimeConfigDefaults(),
          UnorderedKVInput.getConfigurationKeySet());
  ConfigUtils.addConfigMapToConfiguration(this.conf, tezDefaults);
  ConfigUtils.addConfigMapToConfiguration(this.conf, TezRuntimeConfiguration.getOtherConfigDefaults());
}
 
Example 4
Source File: UnorderedKVInputConfig.java    From tez with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
@Override
public Builder setFromConfiguration(Configuration conf) {
  // Maybe ensure this is the first call ? Otherwise this can end up overriding other parameters
  Preconditions.checkArgument(conf != null, "Configuration cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(conf,
      Lists.newArrayList(UnorderedKVInput.getConfigurationKeySet(),
          TezRuntimeConfiguration.getRuntimeAdditionalConfigKeySet()), TezRuntimeConfiguration.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 5
Source File: OrderedPartitionedKVOutputConfig.java    From tez with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
@Override
public Builder setAdditionalConfiguration(Map<String, String> confMap) {
  Objects.requireNonNull(confMap, "ConfMap cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(confMap,
      Lists.newArrayList(OrderedPartitionedKVOutput.getConfigurationKeySet(),
          TezRuntimeConfiguration.getRuntimeAdditionalConfigKeySet()), TezRuntimeConfiguration.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 6
Source File: OrderedPartitionedKVOutputConfig.java    From tez with Apache License 2.0 5 votes vote down vote up
@InterfaceAudience.Private
Builder() {
  Map<String, String> tezDefaults = ConfigUtils
      .extractConfigurationMap(TezRuntimeConfiguration.getTezRuntimeConfigDefaults(),
          OrderedPartitionedKVOutput.getConfigurationKeySet());
  ConfigUtils.addConfigMapToConfiguration(this.conf, tezDefaults);
  ConfigUtils.addConfigMapToConfiguration(this.conf, TezRuntimeConfiguration.getOtherConfigDefaults());
}
 
Example 7
Source File: OnFileSortedOutputConfiguration.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
@Override
public Builder setFromConfiguration(Configuration conf) {
  // Maybe ensure this is the first call ? Otherwise this can end up overriding other parameters
  Preconditions.checkArgument(conf != null, "Configuration cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(conf,
      Lists.newArrayList(OnFileSortedOutput.getConfigurationKeySet(),
          TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 8
Source File: OnFileSortedOutputConfiguration.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
@Override
public Builder setAdditionalConfiguration(Map<String, String> confMap) {
  Preconditions.checkNotNull(confMap, "ConfMap cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(confMap,
      Lists.newArrayList(OnFileSortedOutput.getConfigurationKeySet(),
          TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 9
Source File: OnFileSortedOutputConfiguration.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
@InterfaceAudience.Private
Builder() {
  Map<String, String> tezDefaults = ConfigUtils
      .extractConfigurationMap(TezJobConfig.getTezRuntimeConfigDefaults(),
          OnFileSortedOutput.getConfigurationKeySet());
  ConfigUtils.addConfigMapToConfiguration(this.conf, tezDefaults);
  ConfigUtils.addConfigMapToConfiguration(this.conf, TezJobConfig.getOtherConfigDefaults());
}
 
Example 10
Source File: OnFileUnorderedPartitionedKVOutputConfiguration.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
@Override
public Builder setFromConfiguration(Configuration conf) {
  // Maybe ensure this is the first call ? Otherwise this can end up overriding other parameters
  Preconditions.checkArgument(conf != null, "Configuration cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(conf,
      Lists.newArrayList(OnFileUnorderedPartitionedKVOutput.getConfigurationKeySet(),
          TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 11
Source File: OnFileUnorderedKVOutputConfiguration.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
@InterfaceAudience.Private
Builder() {
  Map<String, String> tezDefaults = ConfigUtils
      .extractConfigurationMap(TezJobConfig.getTezRuntimeConfigDefaults(),
          OnFileUnorderedKVOutput.getConfigurationKeySet());
  ConfigUtils.addConfigMapToConfiguration(this.conf, tezDefaults);
  ConfigUtils.addConfigMapToConfiguration(this.conf, TezJobConfig.getOtherConfigDefaults());
}
 
Example 12
Source File: UnorderedPartitionedKVOutputConfig.java    From tez with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
@Override
public Builder setAdditionalConfiguration(Map<String, String> confMap) {
  Objects.requireNonNull(confMap, "ConfMap cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(confMap,
      Lists.newArrayList(UnorderedPartitionedKVOutput.getConfigurationKeySet(),
          TezRuntimeConfiguration.getRuntimeAdditionalConfigKeySet()), TezRuntimeConfiguration.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 13
Source File: UnorderedKVOutputConfig.java    From tez with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
@Override
public Builder setAdditionalConfiguration(Map<String, String> confMap) {
  Objects.requireNonNull(confMap, "ConfMap cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(confMap,
      Lists.newArrayList(UnorderedKVOutput.getConfigurationKeySet(),
          TezRuntimeConfiguration.getRuntimeAdditionalConfigKeySet()), TezRuntimeConfiguration.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 14
Source File: OrderedGroupedKVInputConfig.java    From tez with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
@Override
public Builder setFromConfiguration(Configuration conf) {
  // Maybe ensure this is the first call ? Otherwise this can end up overriding other parameters
  Preconditions.checkArgument(conf != null, "Configuration cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(conf,
      Lists.newArrayList(OrderedGroupedKVInput.getConfigurationKeySet(),
          TezRuntimeConfiguration.getRuntimeAdditionalConfigKeySet()), TezRuntimeConfiguration.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 15
Source File: UnorderedKVOutputConfig.java    From tez with Apache License 2.0 5 votes vote down vote up
@InterfaceAudience.Private
Builder() {
  Map<String, String> tezDefaults = ConfigUtils
      .extractConfigurationMap(TezRuntimeConfiguration.getTezRuntimeConfigDefaults(),
          UnorderedKVOutput.getConfigurationKeySet());
  ConfigUtils.addConfigMapToConfiguration(this.conf, tezDefaults);
  ConfigUtils.addConfigMapToConfiguration(this.conf, TezRuntimeConfiguration.getOtherConfigDefaults());
}
 
Example 16
Source File: ShuffledUnorderedKVInputConfiguration.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
@Override
public Builder setFromConfiguration(Configuration conf) {
  // Maybe ensure this is the first call ? Otherwise this can end up overriding other parameters
  Preconditions.checkArgument(conf != null, "Configuration cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(conf,
      Lists.newArrayList(ShuffledUnorderedKVInput.getConfigurationKeySet(),
          TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 17
Source File: ShuffledUnorderedKVInputConfiguration.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
@Override
public Builder setAdditionalConfiguration(Map<String, String> confMap) {
  Preconditions.checkNotNull(confMap, "ConfMap cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(confMap,
      Lists.newArrayList(ShuffledUnorderedKVInput.getConfigurationKeySet(),
          TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}
 
Example 18
Source File: ShuffledUnorderedKVInputConfiguration.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
@InterfaceAudience.Private
Builder() {
  Map<String, String> tezDefaults = ConfigUtils
      .extractConfigurationMap(TezJobConfig.getTezRuntimeConfigDefaults(),
          ShuffledUnorderedKVInput.getConfigurationKeySet());
  ConfigUtils.addConfigMapToConfiguration(this.conf, tezDefaults);
  ConfigUtils.addConfigMapToConfiguration(this.conf, TezJobConfig.getOtherConfigDefaults());
}
 
Example 19
Source File: UnorderedPartitionedKVOutputConfig.java    From tez with Apache License 2.0 5 votes vote down vote up
@InterfaceAudience.Private
Builder() {
  Map<String, String> tezDefaults = ConfigUtils
      .extractConfigurationMap(TezRuntimeConfiguration.getTezRuntimeConfigDefaults(),
          UnorderedPartitionedKVOutput.getConfigurationKeySet());
  ConfigUtils.addConfigMapToConfiguration(this.conf, tezDefaults);
  ConfigUtils.addConfigMapToConfiguration(this.conf, TezRuntimeConfiguration.getOtherConfigDefaults());
}
 
Example 20
Source File: OnFileUnorderedKVOutputConfiguration.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
@Override
public Builder setAdditionalConfiguration(Map<String, String> confMap) {
  Preconditions.checkNotNull(confMap, "ConfMap cannot be null");
  Map<String, String> map = ConfigUtils.extractConfigurationMap(confMap,
      Lists.newArrayList(OnFileUnorderedKVOutput.getConfigurationKeySet(),
          TezJobConfig.getRuntimeAdditionalConfigKeySet()), TezJobConfig.getAllowedPrefixes());
  ConfigUtils.addConfigMapToConfiguration(this.conf, map);
  return this;
}