@Override
    protected void setup(Context context) {
        // initialize conf
        this.conf = context.getConfiguration();

        // initialize aggregationType
        try {
            initAggregationTypeFromHadoopConf();
        } catch (CubeIdentifierNotSetException e) {
            e.printStackTrace();
            // TODO exit is not a good way
            System.exit(-1);
        } catch (AggregationTypeNotSetException e) {
            e.printStackTrace();
            // TODO exit is not a good way
            System.exit(-1);
        }

        // initialize newCubeIdentifier
        try {
            initNewCubeIdentifierFromHadoopConf();
        } catch (CubeIdentifierNotSetException e) {
            e.printStackTrace();
            // TODO exit is not a good way
            System.exit(-1);
        } catch (NewCubeIdentifierNotSetException e) {
            e.printStackTrace();
            // TODO exit is not a good way
            System.exit(-1);
        }

        // initialize operation
        initOperation();

    }