public static String getHDFSStoreName(Region aRegion) { RegionAttributes attrs = aRegion.getAttributes(); return attrs.getHDFSStoreName(); }
public static void createAndAddAsyncQueue(String regionPath, RegionAttributes regionAttributes, Cache cache) { if (!regionAttributes.getDataPolicy().withHDFS()) { return; } String leaderRegionPath = getLeaderRegionPath(regionPath, regionAttributes, cache); String defaultAsyncQueueName = HDFSStoreFactoryImpl.getEventQueueName(leaderRegionPath); if (cache.getAsyncEventQueue(defaultAsyncQueueName) == null) { if (regionAttributes.getHDFSStoreName() != null && regionAttributes.getPartitionAttributes() != null && !(regionAttributes.getPartitionAttributes().getLocalMaxMemory() == 0)) { HDFSStore store = ((GemFireCacheImpl) cache).findHDFSStore(regionAttributes.getHDFSStoreName()); if (store == null) { throw new IllegalStateException( LocalizedStrings.HOPLOG_HDFS_STORE_NOT_FOUND.toLocalizedString(regionAttributes.getHDFSStoreName())); } HDFSIntegrationUtil .createAsyncQueueForHDFS(cache, leaderRegionPath, regionAttributes.getHDFSWriteOnly(), store); } } }
buf.append("\n evictionAttributes: " + r.getEvictionAttributes()); buf.append("\n gatewaySenders: " + (new TreeSet(r.getGatewaySenderIds()))); buf.append("\n hdfsStoreName: " + r.getHDFSStoreName()); buf.append("\n hdfsWriteOnly: " + r.getHDFSWriteOnly()); buf.append("\n ignoreJTA: " + r.getIgnoreJTA());
buf.append("\n hdfsStoreName: " + r.getHDFSStoreName()); buf.append("\n hdfsWriteOnly: " + r.getHDFSWriteOnly()); buf.append("\n ignoreJTA: " + r.getIgnoreJTA());
public static void createAndAddAsyncQueue(String regionPath, RegionAttributes regionAttributes, Cache cache) { if(!regionAttributes.getDataPolicy().withHDFS()) { return; } String leaderRegionPath = getLeaderRegionPath(regionPath, regionAttributes, cache); String defaultAsyncQueueName = HDFSStoreFactoryImpl.getEventQueueName(leaderRegionPath); if (cache.getAsyncEventQueue(defaultAsyncQueueName) == null) { if (regionAttributes.getHDFSStoreName() != null && regionAttributes.getPartitionAttributes() != null && !(regionAttributes.getPartitionAttributes().getLocalMaxMemory() == 0)) { HDFSStore store = cache.findHDFSStore(regionAttributes.getHDFSStoreName()); if (store == null) { throw new IllegalStateException( LocalizedStrings.HOPLOG_HDFS_STORE_NOT_FOUND .toLocalizedString(regionAttributes.getHDFSStoreName())); } HDFSEventQueueAttributes queueAttrs = store.getHDFSEventQueueAttributes(); if(queueAttrs == null) { // no async queue is specified for region with a HDFS store. Create a async queue with default // properties and set the bucketsorted=true. HDFSIntegrationUtil.createDefaultAsyncQueueForHDFS(cache, regionAttributes.getHDFSWriteOnly(), leaderRegionPath); } else { HDFSIntegrationUtil.createAsyncQueueForHDFS(cache, leaderRegionPath, regionAttributes.getHDFSWriteOnly(), queueAttrs); } } } }
|| attrs.getHDFSStoreName() != null) { if (attrs.getHDFSStoreName() != null) { HDFSStoreImpl hdfsStore = findHDFSStore(attrs.getHDFSStoreName()); if (attrs.getPartitionAttributes().getLocalMaxMemory() != 0 && hdfsStore == null) { .toLocalizedString(attrs.getHDFSStoreName()));
|| attrs.getHDFSStoreName() != null) { if (attrs.getHDFSStoreName() != null) { HDFSStoreImpl hdfsStore = findHDFSStore(attrs.getHDFSStoreName()); if (attrs.getPartitionAttributes().getLocalMaxMemory() != 0 && hdfsStore == null) { .toLocalizedString(attrs.getHDFSStoreName()));
rd.setHDFSStoreName(ra.getHDFSStoreName()); rd.setHDFSWriteOnly(Boolean.valueOf(ra.getHDFSWriteOnly())); rd.setIgnoreJTA(Boolean.valueOf(ra.getIgnoreJTA()));
String hdfsStoreName = attr.getHDFSStoreName(); diskStoreName = HDFSStoreHelper.getHDFSStoreDescription(hdfsStoreName).getDiskStoreDescription().getName();
Cache aCache = CacheHelper.getCache(); GemFireCacheImpl cacheImpl = (GemFireCacheImpl)aCache; String hdfsStoreName = aRegion.getAttributes().getHDFSStoreName(); HDFSStoreImpl storeImpl = (HDFSStoreImpl) cacheImpl.findHDFSStore(hdfsStoreName); Log.getLogWriter().info("validate() invoked for " + hdfsStoreName);
DiskStoreHelper.createDiskStore(diskStoreConfig); String hdfsStoreConfig = attributes.getHDFSStoreName(); if (hdfsStoreConfig != null) { HDFSStoreHelper.createHDFSStore(hdfsStoreConfig);
if (dp.withPersistence()) { afact.setDiskStoreName(null); if (attrs.getHDFSStoreName() != null) {
if (dp.withPersistence()) { afact.setDiskStoreName(null); if (attrs.getHDFSStoreName() != null) {
if (container.getRegion() != null && container.isApplicationTable()) { String regionHDFSStoreName = container.getRegionAttributes() .getHDFSStoreName(); if (regionHDFSStoreName != null && regionHDFSStoreName.equalsIgnoreCase(hdfsStoreName)) {
if (container.getRegion() != null && container.isApplicationTable()) { String regionHDFSStoreName = container.getRegionAttributes() .getHDFSStoreName(); if (regionHDFSStoreName != null && regionHDFSStoreName.equalsIgnoreCase(hdfsStoreName)) {
if (container.getRegion() != null && container.isApplicationTable()) { String regionHDFSStoreName = container.getRegionAttributes() .getHDFSStoreName(); if (regionHDFSStoreName != null && regionHDFSStoreName.equalsIgnoreCase(hdfsStoreName)) {
this.gatewaySendersDescs = getDescs(attr.getGatewaySenderIds().toArray()); this.asyncEventQueueDescs = getDescs(attr.getAsyncEventQueueIds().toArray()); this.hdfsStoreName = attr.getHDFSStoreName(); this.hdfsWriteOnly = attr.getHDFSWriteOnly(); this.compressorDesc = getDesc(attr.getCompressor());
this.isGatewaySenderEnabled = true; this.hdfsStoreName = attr.getHDFSStoreName(); this.hdfsWriteOnly = attr.getHDFSWriteOnly(); this.compressorDesc = getDesc(attr.getCompressor());
} else { afact.setDataPolicy(ra.getDataPolicy()); afact.setHDFSStoreName(ra.getHDFSStoreName()); afact.setHDFSWriteOnly(ra.getHDFSWriteOnly());
store = c.findHDFSStore(r1.getAttributes().getHDFSStoreName()); assertTrue("Mismatch in attributes, actual.isRandomAccessAllowed: " + r1.getAttributes().getHDFSWriteOnly() + " and expected isRandomAccessAllowed: true", r1.getAttributes().getHDFSWriteOnly()== true); assertTrue("Mismatch in attributes, actual.getDiskStoreName: " + store.getHDFSEventQueueAttributes().getDiskStoreName() + " and expected getDiskStoreName: mydisk", store.getHDFSEventQueueAttributes().getDiskStoreName()== "mydisk"); assertTrue("Mismatch in attributes, actual.HDFSStoreName: " + r1.getAttributes().getHDFSStoreName() + " and expected getDiskStoreName: myHDFSStore", r1.getAttributes().getHDFSStoreName()== "myHDFSStore"); assertTrue("Mismatch in attributes, actual.getFolderPath: " + ((GemFireCacheImpl)this.c).findHDFSStore("myHDFSStore").getHomeDir() + " and expected getDiskStoreName: /home/hemant", ((GemFireCacheImpl)this.c).findHDFSStore("myHDFSStore").getHomeDir()== "/home/hemant"); assertTrue("Mismatch in attributes, actual.getNamenode: " + ((GemFireCacheImpl)this.c).findHDFSStore("myHDFSStore").getNameNodeURL()+ " and expected getDiskStoreName: mymachine", ((GemFireCacheImpl)this.c).findHDFSStore("myHDFSStore").getNameNodeURL()== "mymachine");