public class HDFSUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HDFS_RESULT_REGION |
static boolean |
serverAlive
Utility methods to monitor and wait for HDFS AEQ to drain
|
| Constructor and Description |
|---|
HDFSUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configureAndStartHadoop() |
static void |
configureHadoopTask() |
static void |
configureHDFSTask() |
static void |
dumpHDFSResultRegion()
Dump the HDFSResultRegion, created by the GetAllHDFSEventsForKey() mapreduce job.
|
static void |
execMapReduceJob()
Launch the MapReduce program specified by HDFSPrms.mapReduceClass
by fgexec'ing a comand of the form:
yarn --config jar
|
static void |
execMapReduceJob(String extraArgs) |
static void |
execMapReduceJob(String mapReduceClassName,
String extraArgs) |
static void |
formatNameNodesTask() |
static void |
getAllHDFSEventsForKey(String keys)
Exec a mapReduce job to find all updates for a particular entry and write
those entries back out to a GemFire region (HDFS_RESULTS_REGION) as
("originalKey_EventNumber_Operation", value).
|
static String |
getHDFSStoreName(com.gemstone.gemfire.cache.Region aRegion) |
static void |
HydraTask_startQueueMonitor()
Starts a thread to monitor HDFS AEQ queues (may be active across multiple vms).
|
static void |
HydraTask_waitForQueuesToDrain()
Waits
Prms.maxResultWaitSec for HDFS AEQs to drain. |
static void |
loadDataFromHDFS(com.gemstone.gemfire.cache.Region aRegion,
String regionName)
Utility method invoked by HydraTask_loadDataFromHDFS() for various streaming tests (e.g.
|
static void |
loadSequenceFile(com.gemstone.gemfire.cache.Region aRegion,
org.apache.hadoop.fs.FileSystem inputFS,
org.apache.hadoop.fs.Path sequenceFileName) |
static void |
recycleDataNode() |
static void |
recycleNameNode() |
static void |
restartCluster() |
static void |
startCluster() |
static void |
startDataNodesTask() |
static void |
startHDFSCluster() |
static void |
startMapReduceCluster() |
static void |
startNameNodesTask() |
static void |
stopCluster() |
static void |
stopDataNodesTask() |
static void |
stopHDFSCluster() |
static void |
stopMapReduceCluster() |
static void |
stopNameNodesTask() |
static void |
stopStartDataNodes() |
static void |
stopStartNameNodes() |
public static final String HDFS_RESULT_REGION
public static boolean serverAlive
public static void startMapReduceCluster()
public static void stopMapReduceCluster()
public static void startCluster()
public static void stopCluster()
public static void startHDFSCluster()
public static void stopHDFSCluster()
public static void configureHDFSTask()
public static void configureHadoopTask()
public static void formatNameNodesTask()
public static void startNameNodesTask()
public static void startDataNodesTask()
public static void restartCluster()
public static void stopNameNodesTask()
public static void stopDataNodesTask()
public static void configureAndStartHadoop()
public static void stopStartDataNodes()
public static void stopStartNameNodes()
public static void recycleDataNode()
public static void recycleNameNode()
public static void loadDataFromHDFS(com.gemstone.gemfire.cache.Region aRegion,
String regionName)
public static void loadSequenceFile(com.gemstone.gemfire.cache.Region aRegion,
org.apache.hadoop.fs.FileSystem inputFS,
org.apache.hadoop.fs.Path sequenceFileName)
throws Exception
Exceptionpublic static void execMapReduceJob()
public static void execMapReduceJob(String extraArgs)
public static void getAllHDFSEventsForKey(String keys)
public static void dumpHDFSResultRegion()
public static String getHDFSStoreName(com.gemstone.gemfire.cache.Region aRegion)
public static void HydraTask_startQueueMonitor()
public static void HydraTask_waitForQueuesToDrain()
Prms.maxResultWaitSec for HDFS AEQs to drain.
Suitable for use as a helper method or hydra task.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.