|
|
@ -63,7 +63,7 @@ public class HadoopUtils implements Closeable { |
|
|
|
|
|
|
|
|
|
|
|
private static final LoadingCache<String, HadoopUtils> cache = CacheBuilder |
|
|
|
private static final LoadingCache<String, HadoopUtils> cache = CacheBuilder |
|
|
|
.newBuilder() |
|
|
|
.newBuilder() |
|
|
|
.expireAfterWrite(PropertyUtils.getInt(Constants.KERBEROS_EXPIRE_TIME, 7), TimeUnit.DAYS) |
|
|
|
.expireAfterWrite(PropertyUtils.getInt(Constants.KERBEROS_EXPIRE_TIME, 2), TimeUnit.HOURS) |
|
|
|
.build(new CacheLoader<String, HadoopUtils>() { |
|
|
|
.build(new CacheLoader<String, HadoopUtils>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public HadoopUtils load(String key) throws Exception { |
|
|
|
public HadoopUtils load(String key) throws Exception { |
|
|
|