@Override
	public void setupTest(JavaSamplerContext context) {
		super.setupTest(context);
		String hbaseZK = context.getParameter("hbase.zookeeper.quorum");
		conf = HBaseConfiguration.create();
		conf.set("hbase.zookeeper.quorum", hbaseZK);
		if (table == null) {
			String tableName = context.getParameter("tableName");
			byte[] tableNamebyte = tableName.getBytes();
			boolean autoFlush = Boolean.valueOf(context.getParameter("autoFlush"));
			long  writeBufferSize = Long.valueOf(context.getParameter("writeBufferSize"));
			int poolSize = Integer.parseInt(context.getParameter("poolSize"));
			try {
				table = JMeterHTablePool.getinstancePool(conf,poolSize,tableNamebyte,autoFlush,writeBufferSize).tablePool.getTable(tableName);
			} catch (Exception e) {
				System.out.println("htable pool error");
			}
		}
		if( methedType == null ){
			methedType = context.getParameter("putOrget");
		}
		if( keyNumLength == 0){
			keyNumLength = Integer.parseInt(context.getParameter("keyNumLength"));
		}
		if(cfs == null){
			String cf = context.getParameter("cf");
			cfs = cf.split(",");
		}
		if( qualifiers == null ){
			String qualifier = context.getParameter("qualifier");
			qualifiers = qualifier.split(",");
		}		
		if( values == null ){
			String valueLength = context.getParameter("valueLength");
			values = Strings.repeat('v', Integer.parseInt(valueLength));
		}
		if( writeToWAL == true ){
			writeToWAL = Boolean.valueOf(context.getParameter("writeToWAL"));
		}
		
		if( keyRondom == true ){
			keyRondom = Boolean.valueOf(context.getParameter("keyRondom"));
		}
	}