close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Apr 25, 2011, 2:09:50 PM (15 years ago)
- Author:
-
waue
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
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); |