Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98857991
Reader_Job.java
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jan 16, 23:47
Size
1 KB
Mime Type
text/x-c
Expires
Sat, Jan 18, 23:47 (2 d)
Engine
blob
Format
Raw Data
Handle
23657414
Attached To
R3229 Genome Privacy - SHCS App
Reader_Job.java
View Options
//package raw_reader_mapreduce;
//
//import org.apache.hadoop.fs.Path;
//import org.apache.hadoop.io.IntWritable;
//import org.apache.hadoop.io.Text;
//import org.apache.hadoop.mapred.FileInputFormat;
//import org.apache.hadoop.mapred.FileOutputFormat;
//import org.apache.hadoop.mapred.JobClient;
//import org.apache.hadoop.mapred.JobConf;
//import org.apache.hadoop.mapred.Mapper;
//import org.apache.hadoop.mapred.Reducer;
//import org.apache.hadoop.mapred.TextInputFormat;
//import org.apache.hadoop.mapred.lib.db.DBConfiguration;
//import org.apache.hadoop.mapred.lib.db.DBOutputFormat;
//
//
//public class Reader_Job {
//
// public static void main(String[] args) throws Exception {
// JobConf conf = new JobConf(Reader_Job.class);
// conf.setJobName("encrypt");
//
// conf.setMapOutputKeyClass(IntWritable.class);
// conf.setMapOutputValueClass(Text.class);
//
//
// conf.setOutputKeyClass(EncWritable.class);
// conf.setOutputValueClass(IntWritable.class);
//
// conf.setMapperClass(Reader_Map.class);
//
// conf.setReducerClass(Reader_Reducer.class);
//
// conf.setInputFormat(TextInputFormat.class);
// conf.setOutputFormat(DBOutputFormat.class);
// DBConfiguration.configureDB(conf, "com.mysql.jdbc.Driver", "jdbc:mysql://localhost/pharmacogenomics_server?"
// + "user=root&password=admin");
// DBOutputFormat.setOutput(conf, "m_p", "ID_p","ID_m","enc_genotype_1","enc_genotype_2");
// FileInputFormat.setInputPaths(conf, new Path("In"));
// FileOutputFormat.setOutputPath(conf, new Path("Out"));
//
//
//
// JobClient.runJob(conf);
// }
//
//}
Event Timeline
Log In to Comment