Java Code Examples for org.apache.hadoop.hive.conf.HiveConf#ConfVars

The following examples show how to use org.apache.hadoop.hive.conf.HiveConf#ConfVars . 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: AWSCatalogMetastoreClientTest.java    From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 4 votes vote down vote up
@Test
public void testGetMetaConfDefault() throws TException {
  HiveConf.ConfVars metaConfVar = ConfVars.METASTORE_TRY_DIRECT_SQL;
  String expected = metaConfVar.getDefaultValue();
  assertEquals(expected, metastoreClient.getMetaConf(metaConfVar.toString()));
}
 
Example 2
Source File: FlinkStandaloneHiveServerContext.java    From flink with Apache License 2.0 4 votes vote down vote up
private void createAndSetFolderProperty(
		HiveConf.ConfVars var, String folder, HiveConf conf,
		TemporaryFolder basedir) {
	conf.setVar(var, newFolder(basedir, folder).getAbsolutePath());
}
 
Example 3
Source File: OrcFlowFileWriter.java    From localization_nifi with Apache License 2.0 4 votes vote down vote up
private long getMemoryAvailableForORC() {
    HiveConf.ConfVars poolVar = HiveConf.ConfVars.HIVE_ORC_FILE_MEMORY_POOL;
    double maxLoad = conf.getFloat(poolVar.varname, poolVar.defaultFloatVal);
    long totalMemoryPool = Math.round(ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getMax() * maxLoad);
    return totalMemoryPool;
}
 
Example 4
Source File: BeejuCore.java    From beeju with Apache License 2.0 4 votes vote down vote up
void setHiveVar(HiveConf.ConfVars variable, String value) {
  conf.setVar(variable, value);
}
 
Example 5
Source File: BeejuCore.java    From beeju with Apache License 2.0 4 votes vote down vote up
void setHiveIntVar(HiveConf.ConfVars variable, int value) {
  conf.setIntVar(variable, value);
}
 
Example 6
Source File: HiveConfFactory.java    From dremio-oss with Apache License 2.0 4 votes vote down vote up
protected static void setConf(HiveConf configuration, HiveConf.ConfVars var, String value) {
  setConf(configuration, var.varname, value);
}
 
Example 7
Source File: HiveConfFactory.java    From dremio-oss with Apache License 2.0 4 votes vote down vote up
protected static void setConf(HiveConf configuration, HiveConf.ConfVars var, int value) {
  setConf(configuration, var.varname, Integer.toString(value));
}
 
Example 8
Source File: HiveConfFactory.java    From dremio-oss with Apache License 2.0 4 votes vote down vote up
protected static void setConf(HiveConf configuration, HiveConf.ConfVars var, boolean value) {
  setConf(configuration, var.varname, Boolean.toString(value));
}
 
Example 9
Source File: HiveConfFactory.java    From dremio-oss with Apache License 2.0 4 votes vote down vote up
protected static void setConf(HiveConf configuration, HiveConf.ConfVars var, String value) {
  setConf(configuration, var.varname, value);
}
 
Example 10
Source File: HiveConfFactory.java    From dremio-oss with Apache License 2.0 4 votes vote down vote up
protected static void setConf(HiveConf configuration, HiveConf.ConfVars var, int value) {
  setConf(configuration, var.varname, Integer.toString(value));
}
 
Example 11
Source File: HiveConfFactory.java    From dremio-oss with Apache License 2.0 4 votes vote down vote up
protected static void setConf(HiveConf configuration, HiveConf.ConfVars var, boolean value) {
  setConf(configuration, var.varname, Boolean.toString(value));
}
 
Example 12
Source File: FlinkStandaloneHiveServerContext.java    From flink with Apache License 2.0 4 votes vote down vote up
private void createAndSetFolderProperty(
		HiveConf.ConfVars var, String folder, HiveConf conf,
		TemporaryFolder basedir) {
	conf.setVar(var, newFolder(basedir, folder).getAbsolutePath());
}
 
Example 13
Source File: OrcFlowFileWriter.java    From nifi with Apache License 2.0 4 votes vote down vote up
private long getMemoryAvailableForORC() {
    HiveConf.ConfVars poolVar = HiveConf.ConfVars.HIVE_ORC_FILE_MEMORY_POOL;
    double maxLoad = conf.getFloat(poolVar.varname, poolVar.defaultFloatVal);
    long totalMemoryPool = Math.round(ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getMax() * maxLoad);
    return totalMemoryPool;
}
 
Example 14
Source File: StandaloneHiveServerContext.java    From HiveRunner with Apache License 2.0 4 votes vote down vote up
protected final void createAndSetFolderProperty(HiveConf.ConfVars var, String folder, HiveConf conf, Path basedir)
    throws IOException {
    conf.setVar(var, newFolder(basedir, folder).toAbsolutePath().toString());
}