How to send some data to Mapper class (running on data in a HBase database)

I need to send some information for mapper jobs running on nodes in HBase. I already have defined the data as static member in the class but it seems when the mapper is being run on the other nodes, the data is not being transferred to the nodes. Is there any way to do that?

public class GetResultFromVerticesIDMapper extends TableMapper< ResultVal, IntWritable > {

    public static HashMap<Long, Boolean> vertexIDsHashMap;
    public static int                    nResultComponents;



Above way you mentioned is one way.. Other way, if you send System properties then it will be set to context automatically.

while running the program you can pass parameters as system properties (with -D option) or accept input and set them using System.setProperty("simplificationParameters","user_entered_input")

you can take it back in mapper or reducer like the same way you did it in your answer... i.e. context.getConfiguration().get("simplificationParameters")

I did this through sending parameter to the configuration:

Configuration conf;
conf.addResource(new Path(hbaseConfigurationFile));
conf.set("simplificationParameters", simpParameters.toString());

and getting them into mapper class as follows:


Need Your Help

<option value not allowing first option to be selected

php html forms select

I have a drop down menu and when trying to select the first option it's stating that nothing is selected.