protected DelegationTokenStore getTokenStore(Configuration conf) throws IOException { String tokenStoreClassName = conf.get(DELEGATION_TOKEN_STORE_CLS, ""); if (StringUtils.isBlank(tokenStoreClassName)) { return new MemoryTokenStore(); } try { Class<? extends DelegationTokenStore> storeClass = Class .forName(tokenStoreClassName).asSubclass( DelegationTokenStore.class); return ReflectionUtils.newInstance(storeClass, conf); } catch (ClassNotFoundException e) { throw new IOException("Error initializing delegation token store: " + tokenStoreClassName, e); } }
protected DelegationTokenStore getTokenStore(Configuration conf) throws IOException { String tokenStoreClassName = conf.get(DELEGATION_TOKEN_STORE_CLS, ""); if (StringUtils.isBlank(tokenStoreClassName)) { return new MemoryTokenStore(); } try { Class<? extends DelegationTokenStore> storeClass = Class .forName(tokenStoreClassName).asSubclass( DelegationTokenStore.class); return ReflectionUtils.newInstance(storeClass, conf); } catch (ClassNotFoundException e) { throw new IOException("Error initializing delegation token store: " + tokenStoreClassName, e); } }
protected DelegationTokenStore getTokenStore(Configuration conf) throws IOException { String tokenStoreClassName = conf.get(DELEGATION_TOKEN_STORE_CLS, ""); if (StringUtils.isBlank(tokenStoreClassName)) { return new MemoryTokenStore(); } try { Class<? extends DelegationTokenStore> storeClass = Class .forName(tokenStoreClassName).asSubclass( DelegationTokenStore.class); return ReflectionUtils.newInstance(storeClass, conf); } catch (ClassNotFoundException e) { throw new IOException("Error initializing delegation token store: " + tokenStoreClassName, e); } }
protected DelegationTokenStore getTokenStore(Configuration conf) throws IOException { String tokenStoreClassName = conf.get(DELEGATION_TOKEN_STORE_CLS, ""); if (StringUtils.isBlank(tokenStoreClassName)) { return new MemoryTokenStore(); } try { Class<? extends DelegationTokenStore> storeClass = Class .forName(tokenStoreClassName).asSubclass( DelegationTokenStore.class); return ReflectionUtils.newInstance(storeClass, conf); } catch (ClassNotFoundException e) { throw new IOException("Error initializing delegation token store: " + tokenStoreClassName, e); } }