Changes between Version 6 and Version 7 of NCHCCloudCourse100928_MYSQL
- Timestamp:
- Apr 25, 2011, 2:09:50 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NCHCCloudCourse100928_MYSQL
v6 v7 59 59 @SuppressWarnings("deprecation") 60 60 public static void main(String[] args) throws IOException { 61 62 try { 63 64 JobConf conf = new JobConf(DBAccess.class); 65 Class.forName("com.mysql.jdbc.Driver"); 66 DBConfiguration.configureDB(conf, "com.mysql.jdbc.Driver", 67 "jdbc:mysql://localhost/school", "user", "xxxxxxxx"); 61 String[] argc={"jdbc:mysql://localhost/school","root", "itri"}; argv=argc; 62 63 try { 64 65 JobConf conf = new JobConf(DBAccess.class); 66 Class.forName("com.mysql.jdbc.Driver"); 67 DBConfiguration.configureDB(conf, "com.mysql.jdbc.Driver", 68 argv[0], argv[1], argv[2]); 68 69 conf.setOutputKeyClass(LongWritable.class); 69 70 conf.setOutputValueClass(Text.class);