这篇文章主要介绍Hadoop的系统配置类Configuration。接着上一篇文章介绍,上一篇文章中Hadoop Job的main方法为:public static void main(String[] args) throws Exception { int res = ToolRunne...
分类:
其他好文 时间:
2014-08-03 22:57:36
阅读次数:
435
这篇文章大致介绍Hadoop Job的程序是如何启动的。通常用Java编写的Hadoop MapReduce程序是通过一个main方法作为程序的整个入口,如下:public static void main(String[] args) throws Exception { int res ...
分类:
其他好文 时间:
2014-08-03 20:30:45
阅读次数:
307
这个问题也挺让人无语的,昨天重新装了Mac OS X,然后装JDK,想都没想就装了JDK 8,然后开始实验,结果就报类似于下面这种Exception:
org.aspectj.apache.bcel.classfile.ClassFormatException: File: 'java.util.Comparator': Invalid byte tag in constant pool: 18...
分类:
Web程序 时间:
2014-08-03 12:50:35
阅读次数:
261
Deploying JSF portlets?# Some JSF portlets (like: sample-icefaces-ipc-ajax-push-portlet) can not be deployed on Resin due to following exception: com.caucho.config.ConfigException:?listener-clas...
分类:
移动开发 时间:
2014-08-02 18:33:44
阅读次数:
486
源自:http://www.en8848.com.cn/read/proseessay/lz/239065.html 1. Buy someone's coffee. 为他人买杯咖啡 It's just coffee -- no one needs coffee, so this doesn't r...
1.exception.h#ifndef __EXCEPTION_H__#define __EXCEPTION_H__#include #include class Exception : public std::exception{ public: Exception(cons...
分类:
编程语言 时间:
2014-08-01 22:32:52
阅读次数:
321
五个关键字 和两个结构两个结构:1.ThrowableError表示错误Exception异常2.ExceptionRuntimeException(包括其子类)非RuntimeException(Checked异常)5个关键字:try, catch, finally, throws , throw...
分类:
编程语言 时间:
2014-08-01 18:32:32
阅读次数:
251
public class ReflectTest { public static void main(String[] args) throws Exception { ?? ?//config.properties 与当前类在不同包下; ?? ?InputStream is=ReflectTest.class.getResourceAsStream("/co...
分类:
编程语言 时间:
2014-08-01 16:21:42
阅读次数:
210
---------------事务---当执行到commit时 事务才算是完成,不然 会执行rollback操作。
declare
v_money acount.money%type:=1223;
ex exception;
begin
update acount set money=money-v_money where id=1;
raise ex;
update acount ...
分类:
数据库 时间:
2014-08-01 13:39:21
阅读次数:
222
Java的异常处理是通过5个关键字来实现的:try,catch,throw,throws,finally。JB的在线帮助中对这几个关键字是这样解释的: Throws: Lists the exceptions a method could throw. Throw: Transfers co...
分类:
编程语言 时间:
2014-08-01 13:29:11
阅读次数:
271