one thing hear your system hard disk size is 500gb but you need to put the data 10TB?, solution: cluster setup , there distribution cache is it will share the data to all data nodes in a cluster configuration.
date customer name roomno doctorbill mediceinebill roombill other allowences
public static final String DATE_FORMAT_NOW = "dd-mm-yy HH- mm-ss";
public static String system_date() { Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW); return sdf.format(cal.getTime());
} public static class Map extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
private Text word = new Text();
public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
String line = value.toString();
StringTokenizer tokenizer = new StringTokenizer(line);
while (tokenizer.hasMoreTokens()) { int doctor_bill=0; int medicine_bill=0; int room_bill=0; int other_allowences=0; String cust_name=" "; String room_no=" ";
FileInputFormat.setInputPaths(conf, new Path("/home/ranga/ranga_input_and_output/hospitalbill.txt")); FileOutputFormat.setOutputPath(conf, new Path("/home/ranga/ranga_input_and_output/"+healthcare1.system_date( )+"helthcare_0utput"));