Changes between Version 6 and Version 7 of NCHCCloudCourse100928_MYSQL


Ignore:
Timestamp:
Apr 25, 2011, 2:09:50 PM (14 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NCHCCloudCourse100928_MYSQL

    v6 v7  
    5959        @SuppressWarnings("deprecation")
    6060        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]);
    6869                        conf.setOutputKeyClass(LongWritable.class);
    6970                        conf.setOutputValueClass(Text.class);